Function at 0x41ff30
Capabilities:
Initialize winhttp library
Make an http request with a cookie
Prepare http request
Print debug messages
Read http header
Receive http response
Send data
Send http request
Set http header
Write file on windows

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4c4d36
mov eax, dword fs:[0]
push eax
mov eax, 0x11dc
call fcn.00492020
mov eax, dword [0x4f93d4]
xor eax, ebp
mov dword [ebp - 0x10], eax
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov edi, ecx
mov dword [ebp - 0x11b4], edi
cmp dword [edi + 0x18], 0
mov eax, dword [ebp + 8]
ja 0x41ff83
mov dword [edi + 0xf8], 3
xor al, al
jmp 0x4213aa
xor ecx, ecx
mov dword [ebp - 0x10a4], 7
push 0xffffffffffffffff
push ecx
mov word [ebp - 0x10b8], cx
lea ecx, [ebp - 0x10b8]
push eax
mov dword [ebp - 0x10a8], 0
call fcn.00403270
mov dword [ebp - 4], 0
lea eax, [ebp - 0x10b8]
cmp dword [ebp - 0x10a4], 8
push 0x4e9a50
cmovae eax, dword [ebp - 0x10b8]
push eax
call fcn.0049f22a
add esp, 8
test eax, eax
jne 0x41ffe5
push 3
push 0x4e9a50
jmp 0x420016
cmp dword [ebp - 0x10a4], 8
lea eax, [ebp - 0x10b8]
push str.POST
cmovae eax, dword [ebp - 0x10b8]
push eax
call fcn.0049f22a
add esp, 8
test eax, eax
jne 0x421375
push 4
push str.POST
lea ecx, [ebp - 0x10b8]
call fcn.00403170
cmp dword [edi], 0
mov byte [ebp - 0x1199], 1
jne 0x420092
push ecx
lea edx, [edi + 0x114]
lea ecx, [ebp - 0x10d0]
call fcn.00419c30
add esp, 4
lea eax, [ebp - 0x10d0]
cmp dword [ebp - 0x10bc], 8
cmovae eax, dword [ebp - 0x10d0]
push 0
push 0
push 0
push 0
push eax
call dword [sym.imp.WINHTTP.dll_WinHttpOpen]
mov dword [edi], eax
test eax, eax
jne 0x420087
call dword [sym.imp.KERNEL32.dll_GetLastError]
lea ecx, [ebp - 0x10d0]
mov dword [edi + 0xf8], eax
call fcn.00401650
jmp 0x42137f
lea ecx, [ebp - 0x10d0]
call fcn.00401650
push dword [edi + 0x184]
push dword [edi + 0x180]
push dword [edi + 0x17c]
push dword [edi + 0x178]
push dword [edi]
call dword [sym.imp.WINHTTP.dll_WinHttpSetTimeouts]
push 0x208
lea eax, [ebp - 0x420]
push 0
push eax
call fcn.00479c70
push 0xa28
lea eax, [ebp - 0x1050]
push 0
push eax
call fcn.00479c70
push 0x3c
lea eax, [ebp - 0x1198]
push 0
push eax
call fcn.00479c70
lea eax, [ebp - 0x420]
mov dword [ebp - 0x1198], 0x3c
mov dword [ebp - 0x1188], eax
lea edx, [edi + 8]
add esp, 0x20
mov dword [ebp - 0x1184], 0x104
lea eax, [ebp - 0x1050]
mov dword [ebp - 0x1168], 0x514
lea ecx, [ebp - 0x10e8]
mov dword [ebp - 0x116c], eax
mov dword [ebp - 0x1190], 1
call fcn.00419c30
add esp, 4
lea ecx, [ebp - 0x1198]
mov byte [ebp - 4], 1
cmp dword [ebp - 0x10d4], 8
lea eax, [ebp - 0x10e8]
push ecx
cmovae eax, dword [ebp - 0x10e8]
push 0
push dword [edi + 0x18]
push eax
call dword [sym.imp.WINHTTP.dll_WinHttpCrackUrl]
test eax, eax
je 0x421338
cmp word [ebp - 0x420], 0
jne 0x42017d
xor ecx, ecx
jmp 0x420195
lea ecx, [ebp - 0x420]
lea edx, [ecx + 2]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x420186
sub ecx, edx
sar ecx, 1
push ecx
lea eax, [ebp - 0x420]
push eax
lea ecx, [edi + 0x20]
call fcn.00403170
push ecx
lea edx, [edi + 0x20]
lea ecx, [ebp - 0x10d0]
call fcn.00419c30
add esp, 4
mov byte [ebp - 4], 2
lea eax, [ebp - 0x10d0]
cmp dword [ebp - 0x10bc], 8
push 0
push dword [ebp - 0x1180]
cmovae eax, dword [ebp - 0x10d0]
push eax
push dword [edi]
call dword [sym.imp.WINHTTP.dll_WinHttpConnect]
mov dword [ebp - 0x11b0], eax
test eax, eax
je 0x42131a
xor esi, esi
lea edx, [ebp - 0x10b8]
cmp dword [ebp - 0x118c], 2
mov eax, 0x800000
push ecx
lea ecx, [ebp - 0x1118]
cmove esi, eax
call fcn.00419c30
add esp, 4
mov byte [ebp - 4], 3
lea ecx, [ebp - 0x11e8]
push dword [ebp - 0x116c]
call fcn.00403010
push ecx
lea edx, [ebp - 0x11e8]
mov byte [ebp - 4], 4
lea ecx, [ebp - 0x1100]
call fcn.00419c30
add esp, 4
lea ecx, [ebp - 0x11e8]
mov byte [ebp - 4], 6
call fcn.00401650
cmp dword [ebp - 0x10ec], 8
lea ecx, [ebp - 0x1100]
push esi
cmovae ecx, dword [ebp - 0x1100]
lea eax, [ebp - 0x1118]
cmp dword [ebp - 0x1104], 8
push 0
cmovae eax, dword [ebp - 0x1118]
push 0
push 0
push ecx
push eax
push dword [ebp - 0x11b0]
call dword [sym.imp.WINHTTP.dll_WinHttpOpenRequest]
mov esi, eax
mov dword [ebp - 0x11a0], esi
test esi, esi
je 0x4212b5
cmp byte [edi + 4], 0
jne 0x4202c9
cmp dword [ebp - 0x118c], 2
jne 0x4202c9
push 4
lea eax, [ebp - 0x1054]
mov dword [ebp - 0x1054], 0x3100
push eax
push 0x1f
push esi
call dword [sym.imp.WINHTTP.dll_WinHttpSetOption]
mov byte [ebp - 0x119a], 0
xor ecx, ecx
mov eax, ecx
inc ecx
mov dword [ebp - 0x11b8], ecx
cmp eax, 3
jae 0x421296
cmp dword [edi + 0xd8], 0
lea edx, [edi + 0xc8]
jbe 0x420344
push ecx
lea ecx, [ebp - 0x107c]
call fcn.00419c30
add esp, 4
lea eax, [ebp - 0x107c]
cmp dword [ebp - 0x1068], 8
cmovae eax, dword [ebp - 0x107c]
push 0x1000000
push dword [edi + 0xd8]
push eax
push esi
call dword [sym.imp.WINHTTP.dll_WinHttpAddRequestHeaders]
test eax, eax
jne 0x420339
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [edi + 0xf8], eax
lea ecx, [ebp - 0x107c]
call fcn.00401650
cmp dword [edi + 0xb8], 0
lea esi, [edi + 0xa8]
jbe 0x4203e9
push str.Cookie:
lea ecx, [ebp - 0x1094]
call fcn.00403010
push 0xffffffffffffffff
push 0
push esi
lea ecx, [ebp - 0x1094]
mov byte [ebp - 4], 7
call fcn.00403710
push ecx
lea edx, [ebp - 0x1094]
lea ecx, [ebp - 0x107c]
call fcn.00419c30
mov esi, dword [ebp - 0x11a0]
lea eax, [ebp - 0x107c]
add esp, 4
cmp dword [ebp - 0x1068], 8
cmovae eax, dword [ebp - 0x107c]
push 0x1000000
push dword [ebp - 0x106c]
push eax
push esi
call dword [sym.imp.WINHTTP.dll_WinHttpAddRequestHeaders]
test eax, eax
jne 0x4203cd
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [edi + 0xf8], eax
lea ecx, [ebp - 0x107c]
call fcn.00401650
lea ecx, [ebp - 0x1094]
mov byte [ebp - 4], 6
call fcn.00401650
jmp 0x4203ef
mov esi, dword [ebp - 0x11a0]
cmp dword [edi + 0xf0], 0
jbe 0x420555
push 0x208
xorps xmm0, xmm0
mov dword [ebp - 0x113c], 0
lea eax, [ebp - 0x218]
movq qword [ebp - 0x1144], xmm0
push 0
push eax
mov dword [ebp - 0x1144], 3
call fcn.00479c70
lea eax, [edi + 0xe0]
add esp, 0xc
cmp dword [eax + 0x14], 8
jb 0x42043f
mov eax, dword [eax]
push eax
lea eax, [ebp - 0x218]
push 0x104
push eax
call fcn.004a2682
add esp, 0xc
lea eax, [ebp - 0x218]
lea ecx, [ebp - 0x1094]
push eax
call fcn.00403010
push ecx
lea edx, [ebp - 0x1094]
mov byte [ebp - 4], 8
lea ecx, [ebp - 0x107c]
call fcn.00419c30
add esp, 4
mov byte [ebp - 4], 6
lea ecx, [ebp - 0x1094]
call fcn.00401650
cmp dword [ebp - 0x1068], 8
lea eax, [ebp - 0x107c]
push 0xc
cmovae eax, dword [ebp - 0x107c]
mov dword [ebp - 0x1140], eax
lea eax, [ebp - 0x1144]
push eax
push 0x26
push esi
call dword [sym.imp.WINHTTP.dll_WinHttpSetOption]
test eax, eax
jne 0x4204ca
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [edi + 0xf8], eax
cmp dword [edi + 0x140], 0
jbe 0x42054a
cmp dword [edi + 0x144], 8
lea ecx, [edi + 0x130]
mov eax, dword [edi + 0x140]
jb 0x4204ea
mov ecx, dword [ecx]
add eax, eax
push eax
push ecx
push 0x1002
push esi
call dword [sym.imp.WINHTTP.dll_WinHttpSetOption]
test eax, eax
jne 0x42050a
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [edi + 0xf8], eax
cmp dword [edi + 0x158], 0
jbe 0x42054a
cmp dword [edi + 0x15c], 8
lea ecx, [edi + 0x148]
mov eax, dword [edi + 0x158]
jb 0x42052a
mov ecx, dword [ecx]
add eax, eax
push eax
push ecx
push 0x1003
push esi
call dword [sym.imp.WINHTTP.dll_WinHttpSetOption]
test eax, eax
jne 0x42054a
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [edi + 0xf8], eax
lea ecx, [ebp - 0x107c]
call fcn.00401650
push 0
push 0
push 0
push 0
push 0
push 0
push esi
mov byte [ebp - 0x11ac], 0
call dword [sym.imp.WINHTTP.dll_WinHttpSendRequest]
test eax, eax
jne 0x4207d9
lea eax, [ebp - 0x1074]
xorps xmm0, xmm0
push eax
movups xmmword [ebp - 0x1074], xmm0
call dword [sym.imp.WINHTTP.dll_WinHttpGetIEProxyConfigForCurrentUser]
test eax, eax
je 0x421269
mov eax, dword [ebp - 0x1070]
test eax, eax
je 0x4206cf
xorps xmm0, xmm0
mov dword [ebp - 0x1124], 0
movups xmmword [ebp - 0x115c], xmm0
lea edx, [edi + 8]
mov dword [ebp - 0x115c], 3
movq qword [ebp - 0x114c], xmm0
push ecx
lea ecx, [ebp - 0x1094]
mov dword [ebp - 0x1158], 1
mov dword [ebp - 0x1154], eax
mov dword [ebp - 0x1148], 1
mov dword [ebp - 0x114c], 0
mov dword [ebp - 0x1150], 0
movq qword [ebp - 0x112c], xmm0
call fcn.00419c30
add esp, 4
lea ecx, [ebp - 0x112c]
cmp dword [ebp - 0x1080], 8
lea eax, [ebp - 0x1094]
cmovae eax, dword [ebp - 0x1094]
push ecx
lea ecx, [ebp - 0x115c]
push ecx
push eax
push dword [edi]
call dword [sym.imp.WINHTTP.dll_WinHttpGetProxyForUrl]
test eax, eax
je 0x4206b3
push 0xc
lea eax, [ebp - 0x112c]
push eax
push 0x26
push esi
call dword [sym.imp.WINHTTP.dll_WinHttpSetOption]
test eax, eax
je 0x420683
push 0
push 0
push 0
push 0
push 0
push 0
push esi
call dword [sym.imp.WINHTTP.dll_WinHttpSendRequest]
mov ecx, dword [ebp - 0x11ac]
test eax, eax
movzx ecx, cl
mov eax, 1
cmovne ecx, eax
mov dword [ebp - 0x11ac], ecx
mov eax, dword [ebp - 0x1128]
mov esi, dword [sym.imp.KERNEL32.dll_GlobalFree]
test eax, eax
je 0x420696
push eax
call esi
mov eax, dword [ebp - 0x1124]
test eax, eax
je 0x4206bf
push eax
call esi
lea ecx, [ebp - 0x1094]
call fcn.00401650
jmp 0x420795
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [edi + 0xf8], eax
lea ecx, [ebp - 0x1094]
call fcn.00401650
jmp 0x420795
mov esi, dword [ebp - 0x106c]
test esi, esi
je 0x4207b5
push 0x208
xorps xmm0, xmm0
mov dword [ebp - 0x1130], 0
lea eax, [ebp - 0x218]
movq qword [ebp - 0x1138], xmm0
push 0
push eax
mov dword [ebp - 0x1138], 3
call fcn.00479c70
push esi
lea eax, [ebp - 0x218]
push 0x104
push eax
call fcn.004a2682
mov esi, dword [ebp - 0x1068]
lea eax, [ebp - 0x218]
add esp, 0x18
mov dword [ebp - 0x1134], eax
test esi, esi
je 0x42076e
push 0x208
lea eax, [ebp - 0x628]
push 0
push eax
call fcn.00479c70
push esi
lea eax, [ebp - 0x628]
push 0x104
push eax
call fcn.004a2682
lea eax, [ebp - 0x628]
add esp, 0x18
mov dword [ebp - 0x1130], eax
push 0xc
lea eax, [ebp - 0x1138]
push eax
push 0x26
push dword [ebp - 0x11a0]
call dword [sym.imp.WINHTTP.dll_WinHttpSetOption]
test eax, eax
jne 0x420795
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [edi + 0xf8], eax
mov eax, dword [ebp - 0x1070]
mov esi, dword [sym.imp.KERNEL32.dll_GlobalFree]
test eax, eax
je 0x4207a8
push eax
call esi
mov eax, dword [ebp - 0x106c]
test eax, eax
je 0x4207b5
push eax
call esi
mov eax, dword [ebp - 0x1068]
test eax, eax
je 0x4207c6
push eax
call dword [sym.imp.KERNEL32.dll_GlobalFree]
cmp byte [ebp - 0x11ac], 0
mov esi, dword [ebp - 0x11a0]
je 0x421275
mov eax, dword [edi + 0xc0]
test eax, eax
je 0x420812
lea ecx, [ebp - 0x1054]
mov dword [ebp - 0x1054], 0
push ecx
push dword [edi + 0xc4]
push eax
push esi
call dword [sym.imp.WINHTTP.dll_WinHttpWriteData]
test eax, eax
jne 0x420812
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [edi + 0xf8], eax
push 0
push esi
call dword [sym.imp.WINHTTP.dll_WinHttpReceiveResponse]
test eax, eax
je 0x421269
push 0
lea eax, [ebp - 0x111c]
mov dword [ebp - 0x111c], 0
push eax
push 0
push 0
push 0x16
push esi
call dword [sym.imp.WINHTTP.dll_WinHttpQueryHeaders]
test eax, eax
jne 0x420856
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0x7a
jne 0x420c40
mov eax, dword [ebp - 0x111c]
xor ecx, ecx
mov edx, 2
mul edx
seto cl
neg ecx
or ecx, eax
push ecx
call fcn.00491834
mov esi, eax
add esp, 4
mov dword [ebp - 0x11a4], esi
test esi, esi
je 0x420c3a
mov ecx, dword [ebp - 0x111c]
add ecx, ecx
push ecx
push 0
push esi
call fcn.00479c70
add esp, 0xc
lea eax, [ebp - 0x111c]
push 0
push eax
push esi
push 0
push 0x16
push dword [ebp - 0x11a0]
call dword [sym.imp.WINHTTP.dll_WinHttpQueryHeaders]
test eax, eax
je 0x420c31
push esi
lea ecx, [ebp - 0x1094]
call fcn.00403010
push ecx
lea edx, [ebp - 0x1094]
mov byte [ebp - 4], 9
lea ecx, [ebp - 0x11d0]
call fcn.00419c30
mov ecx, eax
lea esi, [edi + 0x38]
add esp, 4
mov dword [ebp - 0x1054], ecx
cmp esi, ecx
je 0x420930
cmp dword [esi + 0x14], 8
jb 0x420909
mov eax, dword [esi + 0x14]
mov ecx, esi
inc eax
push eax
push dword [esi]
call fcn.004017c0
mov ecx, dword [ebp - 0x1054]
mov dword [esi + 0x14], 7
cmp dword [esi + 0x14], 8
mov dword [esi + 0x10], 0
jb 0x420921
mov eax, dword [esi]
jmp 0x420923
mov eax, esi
xor edx, edx
push ecx
mov ecx, esi
mov word [eax], dx
call fcn.004034c0
lea ecx, [ebp - 0x11d0]
call fcn.00401650
lea ecx, [ebp - 0x1094]
call fcn.00401650
xorps xmm0, xmm0
mov dword [ebp - 0x105c], 0
movq qword [ebp - 0x1064], xmm0
mov dword [ebp - 0x1064], 0
mov dword [ebp - 0x1060], 0
mov dword [ebp - 0x105c], 0
push 0x4e77c0
lea ecx, [ebp - 0x107c]
mov byte [ebp - 4], 0xb
call fcn.00403010
mov byte [ebp - 4], 0xc
cmp byte [edi + 0x12c], 0
jne 0x4209fc
push str.charset_A_Za_z0_9___
lea ecx, [ebp - 0x107c]
call fcn.00402f40
push ecx
lea eax, [ebp - 0x1064]
push eax
push esi
push ecx
lea ecx, [ebp - 0x107c]
call fcn.0041f2e0
add esp, 0x10
test al, al
je 0x4209fc
mov ecx, dword [ebp - 0x1060]
mov eax, 0x2aaaaaab
sub ecx, dword [ebp - 0x1064]
imul ecx
sar edx, 2
mov eax, edx
shr eax, 0x1f
add eax, edx
je 0x4209fc
mov eax, dword [ebp - 0x1064]
lea ecx, [edi + 0x68]
cmp ecx, eax
je 0x4209fc
push 0xffffffffffffffff
push 0
push eax
call fcn.00403270
push str.Content_Length:__0_9_
lea ecx, [ebp - 0x107c]
call fcn.00402f40
push ecx
lea eax, [ebp - 0x1064]
push eax
push esi
push ecx
lea ecx, [ebp - 0x107c]
call fcn.0041f2e0
add esp, 0x10
test al, al
je 0x420a6c
mov eax, dword [ebp - 0x1064]
mov ecx, dword [ebp - 0x1060]
mov dword [ebp - 0x1054], eax
sub ecx, eax
mov eax, 0x2aaaaaab
imul ecx
sar edx, 2
mov eax, edx
shr eax, 0x1f
add eax, edx
je 0x420a6c
mov eax, dword [ebp - 0x1054]
cmp dword [eax + 0x14], 8
jb 0x420a5d
mov eax, dword [eax]
push eax
call fcn.004a0bda
add esp, 4
mov dword [edi + 0x8c], eax
push str.Location:_https_:.__n
lea ecx, [ebp - 0x107c]
call fcn.00402f40
push ecx
lea eax, [ebp - 0x1064]
push eax
push esi
push ecx
lea ecx, [ebp - 0x107c]
call fcn.0041f2e0
add esp, 0x10
test al, al
je 0x420ad1
mov ecx, dword [ebp - 0x1060]
mov eax, 0x2aaaaaab
sub ecx, dword [ebp - 0x1064]
imul ecx
sar edx, 2
mov eax, edx
shr eax, 0x1f
add eax, edx
je 0x420ad1
mov eax, dword [ebp - 0x1064]
lea ecx, [edi + 0x160]
cmp ecx, eax
je 0x420ad1
push 0xffffffffffffffff
push 0
push eax
call fcn.00403270
push str.Set_Cookie:_b.__n
lea ecx, [ebp - 0x107c]
call fcn.00402f40
push ecx
lea eax, [ebp - 0x1064]
push eax
push esi
push ecx
lea ecx, [ebp - 0x107c]
call fcn.0041f2e0
add esp, 0x10
test al, al
je 0x420c11
mov eax, dword [ebp - 0x1064]
mov ecx, dword [ebp - 0x1060]
mov dword [ebp - 0x1058], eax
sub ecx, eax
mov eax, 0x2aaaaaab
imul ecx
sar edx, 2
mov eax, edx
shr eax, 0x1f
add eax, edx
mov dword [ebp - 0x1054], eax
je 0x420c11
xor esi, esi
test eax, eax
je 0x420b8f
lea eax, [edi + 0x90]
mov edi, dword [ebp - 0x1058]
mov dword [ebp - 0x11a8], eax
nop word [eax + eax]
push 0xffffffffffffffff
push 0
push edi
mov ecx, eax
call fcn.00403710
mov eax, dword [ebp - 0x1054]
dec eax
cmp esi, eax
je 0x420b77
mov ecx, dword [ebp - 0x11a8]
push 0x4ea0b0
call fcn.00402ef0
mov eax, dword [ebp - 0x11a8]
inc esi
add edi, 0x18
cmp esi, dword [ebp - 0x1054]
jb 0x420b50
mov edi, dword [ebp - 0x11b4]
push 0x4e85cc
lea ecx, [ebp - 0x1094]
call fcn.00403010
lea eax, [ebp - 0x1094]
mov byte [ebp - 4], 0xd
lea esi, [edi + 0x90]
push eax
mov edx, esi
lea ecx, [ebp - 0x11d0]
call fcn.0041f670
add esp, 4
mov ecx, esi
push eax
call fcn.00402f90
lea ecx, [ebp - 0x11d0]
call fcn.00401650
lea ecx, [ebp - 0x1094]
mov byte [ebp - 4], 0xc
call fcn.00401650
cmp dword [edi + 0xa0], 0
jbe 0x420c11
cmp dword [esi + 0x14], 8
mov ecx, dword [edi + 0xa0]
jb 0x420bfb
mov eax, dword [esi]
jmp 0x420bfd
mov eax, esi
cmp word [eax + ecx*2 - 2], 0x3b
je 0x420c11
push 0x4ea0b8
mov ecx, esi
call fcn.00402ef0
lea ecx, [ebp - 0x107c]
call fcn.00401650
lea ecx, [ebp - 0x1064]
mov byte [ebp - 4], 6
call fcn.00406460
mov esi, dword [ebp - 0x11a4]
push esi
call fcn.004914f3
add esp, 4
mov esi, dword [ebp - 0x11a0]
push 0
lea eax, [ebp - 0x111c]
mov dword [ebp - 0x111c], 0
push eax
push 0
push 0
push 0x13
push esi
call dword [sym.imp.WINHTTP.dll_WinHttpQueryHeaders]
test eax, eax
jne 0x420c73
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0x7a
jne 0x420d22
mov eax, dword [ebp - 0x111c]
xor ecx, ecx
mov edx, 2
mul edx
seto cl
neg ecx
or ecx, eax
push ecx
call fcn.00491834
mov esi, eax
add esp, 4
test esi, esi
je 0x420d22
mov ecx, dword [ebp - 0x111c]
add ecx, ecx
push ecx
push 0
push esi
call fcn.00479c70
add esp, 0xc
lea eax, [ebp - 0x111c]
push 0
push eax
push esi
push 0
push 0x13
push dword [ebp - 0x11a0]
call dword [sym.imp.WINHTTP.dll_WinHttpQueryHeaders]
test eax, eax
je 0x420d19
push esi
lea ecx, [ebp - 0x1094]
call fcn.00403010
push ecx
lea edx, [ebp - 0x1094]
mov byte [ebp - 4], 0xe
lea ecx, [ebp - 0x11d0]
call fcn.00419c30
add esp, 4
lea ecx, [edi + 0xfc]
push eax
call fcn.00402f90
lea ecx, [ebp - 0x11d0]
call fcn.00401650
lea ecx, [ebp - 0x1094]
mov byte [ebp - 4], 6
call fcn.00401650
push esi
call fcn.004914f3
add esp, 4
mov eax, dword [edi + 0x80]
xor esi, esi
mov dword [ebp - 0x11a8], 0x2800
mov dword [ebp - 0x11a4], esi
test eax, eax
je 0x420d4d
push eax
call fcn.004914f3
add esp, 4
mov dword [edi + 0x80], esi
push 0x2800
call fcn.00491834
add esp, 4
mov dword [edi + 0x80], eax
test eax, eax
je 0x421289
push 0x2800
push 0
push eax
call fcn.00479c70
add esp, 0xc
nop dword [eax + eax]
lea eax, [ebp - 0x111c]
mov dword [ebp - 0x111c], 0
push eax
push dword [ebp - 0x11a0]
call dword [sym.imp.WINHTTP.dll_WinHttpQueryDataAvailable]
test eax, eax
je 0x420ff5
mov edx, dword [edi + 0x88]
test edx, edx
je 0x420dfc
mov ecx, dword [edi + 0x8c]
test ecx, ecx
je 0x420dfc
movd xmm1, esi
mov eax, esi
cvtdq2pd xmm1, xmm1
shr eax, 0x1f
sub esp, 8
movd xmm0, ecx
addsd xmm1, qword [eax*8 + 0x4ea5a0]
cvtdq2pd xmm0, xmm0
shr ecx, 0x1f
mulsd xmm1, qword [0x4ea560]
addsd xmm0, qword [ecx*8 + 0x4ea5a0]
divsd xmm1, xmm0
movsd qword [esp], xmm1
call edx
add esp, 8
mov eax, dword [ebp - 0x111c]
inc eax
push eax
call fcn.00491834
mov esi, eax
add esp, 4
mov dword [ebp - 0x1054], esi
test esi, esi
je 0x420fb7
mov ecx, dword [ebp - 0x111c]
inc ecx
push ecx
push 0
push esi
call fcn.00479c70
add esp, 0xc
mov dword [ebp - 0x1058], 0
lea eax, [ebp - 0x1058]
push eax
push dword [ebp - 0x111c]
push esi
push dword [ebp - 0x11a0]
call dword [sym.imp.WINHTTP.dll_WinHttpReadData]
test eax, eax
je 0x420fae
cmp dword [edi + 0x198], 0
jne 0x420f0f
mov ecx, dword [ebp - 0x1058]
mov edx, dword [ebp - 0x11a4]
lea eax, [ecx + edx]
cmp eax, dword [ebp - 0x11a8]
jbe 0x420ee5
mov eax, dword [ebp - 0x11a8]
mov esi, dword [edi + 0x80]
add eax, eax
push eax
mov dword [ebp - 0x11a8], eax
call fcn.00491834
add esp, 4
mov dword [edi + 0x80], eax
test eax, eax
je 0x421003
push dword [ebp - 0x11a8]
push 0
push eax
call fcn.00479c70
push dword [ebp - 0x11a4]
push esi
push dword [edi + 0x80]
call fcn.004796f0
push esi
call fcn.004914f3
mov ecx, dword [ebp - 0x1058]
add esp, 0x1c
mov esi, dword [ebp - 0x1054]
mov edx, dword [ebp - 0x11a4]
mov eax, dword [edi + 0x80]
push ecx
add eax, edx
push esi
push eax
call fcn.004796f0
mov eax, dword [ebp - 0x11a4]
add esp, 0xc
add eax, dword [ebp - 0x1058]
mov dword [ebp - 0x11a4], eax
jmp 0x420fae
cmp byte [edi + 0x1a0], 0
je 0x421012
cmp dword [edi + 0x19c], 8
lea eax, [edi + 0x188]
mov dword [ebp - 0x1120], 0
jb 0x420f37
mov eax, dword [eax]
push 0x4ea0bc
push eax
lea eax, [ebp - 0x1120]
push eax
call fcn.0049b4dd
add esp, 0xc
test eax, eax
jne 0x420fcc
mov eax, dword [ebp - 0x1120]
test eax, eax
je 0x420fcc
push eax
push dword [ebp - 0x1058]
push 1
push esi
call fcn.00498c49
push dword [ebp - 0x1120]
mov esi, eax
call fcn.0049b59a
add esp, 0x14
cmp esi, dword [ebp - 0x1058]
je 0x420fa8
push dword [edi + 0xf8]
lea eax, [ebp - 0x210]
push str.Failed_to_write_response_data._Error_code:__d
push eax
call fcn.00423350
add esp, 0xc
lea eax, [ebp - 0x210]
push eax
call dword [sym.imp.KERNEL32.dll_OutputDebugStringW]
mov esi, dword [ebp - 0x1054]
push esi
call fcn.004914f3
add esp, 4
mov esi, dword [ebp - 0x11a4]
cmp dword [ebp - 0x111c], 0
ja 0x420d80
jmp 0x42101b
push dword [edi + 0xf8]
lea eax, [ebp - 0x210]
push str.Failed_to_open_response_file._Error_code:__d
push eax
call fcn.00423350
add esp, 0xc
lea eax, [ebp - 0x210]
push eax
call dword [sym.imp.KERNEL32.dll_OutputDebugStringW]
jmp 0x420fae
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [edi + 0xf8], eax
jmp 0x420fbd
mov dword [edi + 0x80], esi
mov byte [ebp - 0x1199], 0
jmp 0x42101b
push esi
call fcn.004914f3
add esp, 4
mov edx, dword [edi + 0x88]
test edx, edx
je 0x421076
mov ecx, dword [edi + 0x8c]
test ecx, ecx
je 0x421076
mov eax, dword [ebp - 0x11a4]
sub esp, 8
movd xmm0, ecx
cvtdq2pd xmm0, xmm0
shr ecx, 0x1f
movd xmm1, eax
addsd xmm0, qword [ecx*8 + 0x4ea5a0]
cvtdq2pd xmm1, xmm1
shr eax, 0x1f
addsd xmm1, qword [eax*8 + 0x4ea5a0]
mulsd xmm1, qword [0x4ea560]
divsd xmm1, xmm0
movsd qword [esp], xmm1
call edx
add esp, 8
mov eax, dword [ebp - 0x11a4]
xor esi, esi
mov dword [edi + 0x84], eax
lea eax, [edi + 0x68]
cmp dword [eax + 0x14], 8
mov dword [ebp - 0x1054], 1
jb 0x421099
mov eax, dword [eax]
push 5
push str.utf_8
push eax
call fcn.004a48bb
add esp, 0xc
test eax, eax
jne 0x4210b8
mov esi, 0xfde9
mov dword [ebp - 0x1054], eax
mov eax, dword [edi + 0x84]
push 0
push 0
inc eax
push eax
push dword [edi + 0x80]
push dword [ebp - 0x1054]
push esi
call dword [sym.imp.KERNEL32.dll_MultiByteToWideChar]
test eax, eax
jg 0x4210fa
mov eax, dword [edi + 0x84]
xor esi, esi
push esi
push esi
inc eax
push eax
push dword [edi + 0x80]
push 1
push esi
call dword [sym.imp.KERNEL32.dll_MultiByteToWideChar]
test eax, eax
jle 0x421147
push dword [edi + 0x80]
lea ecx, [ebp - 0x1094]
call fcn.004041d0
push esi
lea edx, [ebp - 0x1094]
mov byte [ebp - 4], 0xf
lea ecx, [ebp - 0x11d0]
call fcn.00419b50
add esp, 4
lea ecx, [edi + 0x50]
push eax
call fcn.00402f90
lea ecx, [ebp - 0x11d0]
call fcn.00401650
lea ecx, [ebp - 0x1094]
mov byte [ebp - 4], 6
call fcn.00404190
push 0x4e9a50
lea ecx, [ebp - 0x10b8]
mov byte [ebp - 0x119a], 1
call fcn.00403a40
test eax, eax
jne 0x421290
push str._html_
lea ecx, [ebp - 0x1094]
call fcn.00403010
xorps xmm0, xmm0
mov dword [ebp - 0x1098], 0
movq qword [ebp - 0x10a0], xmm0
mov dword [ebp - 0x10a0], 0
mov dword [ebp - 0x109c], 0
mov dword [ebp - 0x1098], 0
push ecx
lea eax, [ebp - 0x10a0]
mov byte [ebp - 4], 0x11
push eax
lea esi, [edi + 0x50]
push esi
push ecx
lea ecx, [ebp - 0x1094]
call fcn.0041f2e0
add esp, 0x10
test al, al
je 0x421247
mov ecx, dword [ebp - 0x109c]
mov eax, 0x2aaaaaab
sub ecx, dword [ebp - 0x10a0]
imul ecx
sar edx, 2
mov eax, edx
shr eax, 0x1f
add eax, edx
je 0x421247
push str.__html_
lea ecx, [ebp - 0x1094]
call fcn.00402f40
push ecx
lea eax, [ebp - 0x10a0]
push eax
push esi
push ecx
lea ecx, [ebp - 0x1094]
call fcn.0041f2e0
add esp, 0x10
test al, al
je 0x421236
mov ecx, dword [ebp - 0x109c]
mov eax, 0x2aaaaaab
sub ecx, dword [ebp - 0x10a0]
imul ecx
sar edx, 2
mov eax, edx
shr eax, 0x1f
add eax, edx
jne 0x421247
mov dword [edi + 0xf8], 0xd
mov byte [ebp - 0x119a], 0
lea ecx, [ebp - 0x10a0]
call fcn.00406460
lea ecx, [ebp - 0x1094]
mov byte [ebp - 4], 6
call fcn.00401650
mov esi, dword [ebp - 0x11a0]
jmp 0x421275
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [edi + 0xf8], eax
cmp byte [ebp - 0x119a], 0
jne 0x421296
mov ecx, dword [ebp - 0x11b8]
jmp 0x4202d2
mov byte [ebp - 0x1199], 0
mov esi, dword [ebp - 0x11a0]
push esi
call dword [sym.imp.WINHTTP.dll_WinHttpCloseHandle]
movzx eax, byte [ebp - 0x1199]
xor ecx, ecx
cmp byte [ebp - 0x119a], cl
cmovne ecx, eax
mov byte [ebp - 0x1199], cl
push dword [ebp - 0x11b0]
call dword [sym.imp.WINHTTP.dll_WinHttpCloseHandle]
mov eax, dword [ebp - 0x10ec]
cmp eax, 8
jb 0x4212df
inc eax
lea ecx, [ebp - 0x1100]
push eax
push dword [ebp - 0x1100]
call fcn.004017c0
xor eax, eax
mov dword [ebp - 0x10ec], 7
mov word [ebp - 0x1100], ax
mov eax, dword [ebp - 0x1104]
mov dword [ebp - 0x10f0], 0
cmp eax, 8
jb 0x42131a
inc eax
lea ecx, [ebp - 0x1118]
push eax
push dword [ebp - 0x1118]
call fcn.004017c0
mov eax, dword [ebp - 0x10bc]
cmp eax, 8
jb 0x421338
inc eax
lea ecx, [ebp - 0x10d0]
push eax
push dword [ebp - 0x10d0]
call fcn.004017c0
mov eax, dword [ebp - 0x10d4]
cmp eax, 8
jb 0x421356
inc eax
lea ecx, [ebp - 0x10e8]
push eax
push dword [ebp - 0x10e8]
call fcn.004017c0
xor eax, eax
mov dword [ebp - 0x10d4], 7
mov dword [ebp - 0x10d8], 0
mov word [ebp - 0x10e8], ax
jmp 0x421386
mov dword [edi + 0xf8], 0x57
mov byte [ebp - 0x1199], 0
mov ecx, dword [ebp - 0x10a4]
cmp ecx, 8
jb 0x4213a4
inc ecx
push ecx
push dword [ebp - 0x10b8]
lea ecx, [ebp - 0x10b8]
call fcn.004017c0
mov al, byte [ebp - 0x1199]
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.0049120e
mov esp, ebp
pop ebp
ret 8