Function at 0x412050
Capabilities:
Initialize winhttp library
Make an http request with a cookie
Prepare http request
Read http header
Receive http response
Send data
Send http request
Set http header

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x46f848
mov eax, dword fs:[0]
push eax
mov eax, 0x11c8
call fcn.0045ec10
mov eax, dword [0x48b370]
xor eax, ebp
mov dword [ebp - 0x14], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov eax, dword [ebp + 8]
mov edi, ecx
xor esi, esi
mov dword [ebp - 0x1130], edi
cmp dword [edi + 0x18], esi
ja 0x4120a3
mov dword [edi + 0x11c], 3
jmp 0x4130ba
xor ecx, ecx
push 0xffffffffffffffff
mov word [ebp - 0x1070], cx
push esi
lea ecx, [ebp - 0x1070]
mov dword [ebp - 0x105c], 7
mov dword [ebp - 0x1060], esi
call fcn.00403f7d
mov dword [ebp - 4], esi
mov eax, dword [ebp - 0x1070]
mov ebx, 8
cmp dword [ebp - 0x105c], ebx
jae 0x4120e6
lea eax, [ebp - 0x1070]
push 0x4773c8
push eax
call fcn.0044eb71
add esp, 8
test eax, eax
jne 0x412104
mov eax, 3
mov ecx, 0x4773c8
jmp 0x412138
mov eax, dword [ebp - 0x1070]
cmp dword [ebp - 0x105c], ebx
jae 0x412118
lea eax, [ebp - 0x1070]
push 0x4773d0
push eax
call fcn.0044eb71
add esp, 8
test eax, eax
jne 0x41309e
mov eax, 4
mov ecx, 0x4773d0
lea esi, [ebp - 0x1070]
call fcn.00404017
cmp dword [edi], 0
mov byte [ebp - 0x10fe], 1
jne 0x412185
cmp dword [edi + 0x150], ebx
lea eax, [edi + 0x13c]
jb 0x41215f
mov eax, dword [eax]
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 0x412185
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [edi + 0x11c], eax
jmp 0x4130a8
mov edx, dword [edi + 0x1bc]
mov eax, dword [edi + 0x1b8]
mov ecx, dword [edi + 0x1b4]
push edx
mov edx, dword [edi + 0x1b0]
push eax
mov eax, dword [edi]
push ecx
push edx
push eax
call dword [sym.imp.WINHTTP.dll_WinHttpSetTimeouts]
xor ecx, ecx
push 0x206
push ecx
lea edx, [ebp - 0x422]
push edx
mov word [ebp - 0x424], cx
call fcn.004556a0
add esp, 0xc
xor eax, eax
push 0xa26
push eax
lea ecx, [ebp - 0x1052]
push ecx
mov word [ebp - 0x1054], ax
call fcn.004556a0
add esp, 0xc
push 0x3c
lea edx, [ebp - 0x11d4]
push 0
push edx
call fcn.004556a0
lea ecx, [ebp - 0x1054]
lea eax, [ebp - 0x424]
mov dword [ebp - 0x11a8], ecx
lea ecx, [edi + 8]
add esp, 0xc
mov dword [ebp - 0x11c4], eax
mov eax, dword [edi + 0x18]
mov dword [ebp - 0x11d4], 0x3c
mov dword [ebp - 0x11c0], 0x104
mov dword [ebp - 0x11a4], 0x514
mov dword [ebp - 0x11cc], 1
mov dword [ebp - 0x1194], ecx
cmp dword [ecx + 0x14], ebx
jb 0x41224c
mov ecx, dword [ecx]
lea edx, [ebp - 0x11d4]
push edx
push 0
push eax
push ecx
call dword [sym.imp.WINHTTP.dll_WinHttpCrackUrl]
test eax, eax
je 0x413084
lea eax, [ebp - 0x424]
lea edx, [eax + 2]
mov edi, edi
mov cx, word [eax]
add eax, 2
test cx, cx
jne 0x412270
sub eax, edx
sar eax, 1
lea esi, [edi + 0x24]
lea ecx, [ebp - 0x424]
call fcn.00404017
mov eax, dword [ebp - 0x11bc]
mov edx, dword [edi]
push 0
push eax
lea ecx, [ebp - 0x424]
push ecx
push edx
call dword [sym.imp.WINHTTP.dll_WinHttpConnect]
mov esi, eax
mov dword [ebp - 0x1190], esi
test esi, esi
je 0x413084
mov eax, dword [ebp - 0x1070]
xor ecx, ecx
mov ebx, 2
cmp dword [ebp - 0x11c8], ebx
setne cl
dec ecx
and ecx, 0x800000
cmp dword [ebp - 0x105c], 8
jae 0x4122e2
lea eax, [ebp - 0x1070]
push ecx
mov ecx, dword [ebp - 0x11a8]
push 0
push 0
push 0
push ecx
push eax
push esi
call dword [sym.imp.WINHTTP.dll_WinHttpOpenRequest]
mov dword [ebp - 0x1108], eax
test eax, eax
je 0x41307d
cmp byte [edi + 4], 0
jne 0x412345
cmp dword [ebp - 0x11c8], ebx
jne 0x412345
push 4
lea edx, [ebp - 0x1118]
push edx
push 0x1f
mov ebx, eax
push ebx
mov dword [ebp - 0x1118], 0x3100
call dword [sym.imp.WINHTTP.dll_WinHttpSetOption]
mov byte [ebp - 0x10fd], 0
mov dword [ebp - 0x1118], 0
jmp 0x412366
mov ebx, dword [ebp - 0x1108]
mov byte [ebp - 0x10fd], 0
mov dword [ebp - 0x1118], 0
jmp 0x412366
mov ebx, dword [ebp - 0x1108]
mov eax, dword [ebp - 0x1118]
mov ecx, eax
inc eax
mov dword [ebp - 0x1118], eax
cmp ecx, 3
jae 0x41305a
mov ecx, dword [edi + 0xf4]
test ecx, ecx
je 0x4123b7
cmp dword [edi + 0xf8], 8
lea eax, [edi + 0xe4]
jb 0x412399
mov eax, dword [eax]
push 0x1000000
push ecx
push eax
push ebx
call dword [sym.imp.WINHTTP.dll_WinHttpAddRequestHeaders]
test eax, eax
jne 0x4123b7
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [edi + 0x11c], eax
cmp dword [edi + 0xd0], 0
jbe 0x412435
push str.Cookie:
lea esi, [ebp - 0x10a8]
call fcn.00402684
push 0
lea edx, [edi + 0xc0]
push edx
or eax, 0xffffffff
mov byte [ebp - 4], 1
call fcn.00405ea5
cmp dword [ebp - 0x1094], 8
mov eax, dword [ebp - 0x10a8]
jae 0x4123f6
mov eax, esi
mov ecx, dword [ebp - 0x1098]
mov edx, dword [ebp - 0x1108]
push 0x1000000
push ecx
push eax
push edx
call dword [sym.imp.WINHTTP.dll_WinHttpAddRequestHeaders]
test eax, eax
jne 0x412420
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [edi + 0x11c], eax
lea esi, [ebp - 0x10a8]
mov byte [ebp - 4], 0
call fcn.004026c0
mov ebx, dword [ebp - 0x1108]
cmp dword [edi + 0x110], 0
jbe 0x41253e
xor eax, eax
push 0x206
push eax
lea ecx, [ebp - 0x21a]
mov dword [ebp - 0x118c], eax
push ecx
mov dword [ebp - 0x1188], eax
mov dword [ebp - 0x1184], eax
mov dword [ebp - 0x118c], 3
mov word [ebp - 0x21c], ax
call fcn.004556a0
lea eax, [edi + 0x100]
add esp, 0xc
cmp dword [eax + 0x14], 8
jb 0x41248a
mov eax, dword [eax]
push eax
lea edx, [ebp - 0x21c]
push 0x104
push edx
call fcn.0044da11
mov esi, dword [sym.imp.WINHTTP.dll_WinHttpSetOption]
add esp, 0xc
push 0xc
lea ecx, [ebp - 0x118c]
push ecx
push 0x26
lea eax, [ebp - 0x21c]
push ebx
mov dword [ebp - 0x1188], eax
call esi
test eax, eax
jne 0x4124cf
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [edi + 0x11c], eax
mov ecx, dword [edi + 0x16c]
test ecx, ecx
je 0x41253e
cmp dword [edi + 0x170], 8
lea eax, [edi + 0x15c]
jb 0x4124ea
mov eax, dword [eax]
lea edx, [ecx + ecx]
push edx
push eax
push 0x1002
push ebx
call esi
test eax, eax
jne 0x412507
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [edi + 0x11c], eax
mov ecx, dword [edi + 0x188]
test ecx, ecx
je 0x41253e
cmp dword [edi + 0x18c], 8
lea eax, [edi + 0x178]
jb 0x412522
mov eax, dword [eax]
add ecx, ecx
push ecx
push eax
push 0x1003
push ebx
call esi
test eax, eax
jne 0x41253e
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [edi + 0x11c], eax
mov esi, dword [sym.imp.WINHTTP.dll_WinHttpSendRequest]
push 0
push 0
push 0
push 0
push 0
push 0
push ebx
mov byte [ebp - 0x1111], 0
call esi
test eax, eax
jne 0x4127a7
lea edx, [ebp - 0x1140]
push edx
mov dword [ebp - 0x1140], eax
mov dword [ebp - 0x113c], eax
mov dword [ebp - 0x1138], eax
mov dword [ebp - 0x1134], eax
call dword [sym.imp.WINHTTP.dll_WinHttpGetIEProxyConfigForCurrentUser]
test eax, eax
je 0x413038
mov ecx, dword [ebp - 0x113c]
xor eax, eax
cmp ecx, eax
je 0x41268b
mov dword [ebp - 0x1174], eax
mov dword [ebp - 0x1170], eax
mov dword [ebp - 0x1180], eax
mov dword [ebp - 0x117c], eax
mov dword [ebp - 0x1178], eax
mov dword [ebp - 0x116c], eax
mov dword [ebp - 0x1170], eax
mov dword [ebp - 0x1174], eax
mov dword [ebp - 0x1168], eax
mov dword [ebp - 0x1164], eax
mov dword [ebp - 0x1160], eax
mov eax, dword [ebp - 0x1194]
cmp dword [eax + 0x14], 8
mov edx, 1
mov dword [ebp - 0x1180], 3
mov dword [ebp - 0x117c], edx
mov dword [ebp - 0x1178], ecx
mov dword [ebp - 0x116c], edx
jb 0x412610
mov eax, dword [eax]
lea ecx, [ebp - 0x1168]
push ecx
lea edx, [ebp - 0x1180]
push edx
push eax
mov eax, dword [edi]
push eax
call dword [sym.imp.WINHTTP.dll_WinHttpGetProxyForUrl]
test eax, eax
je 0x41275b
push 0xc
lea ecx, [ebp - 0x1168]
push ecx
push 0x26
push ebx
call dword [sym.imp.WINHTTP.dll_WinHttpSetOption]
test eax, eax
je 0x412660
push 0
push 0
push 0
push 0
push 0
push 0
push ebx
call esi
test eax, eax
je 0x412660
mov byte [ebp - 0x1111], 1
mov eax, dword [ebp - 0x1164]
test eax, eax
je 0x412671
push eax
call dword [sym.imp.KERNEL32.dll_GlobalFree]
mov eax, dword [ebp - 0x1160]
test eax, eax
je 0x412767
push eax
call dword [sym.imp.KERNEL32.dll_GlobalFree]
jmp 0x412767
mov esi, dword [ebp - 0x1138]
test esi, esi
je 0x412789
xor eax, eax
xor edx, edx
mov dword [ebp - 0x115c], eax
push 0x206
mov dword [ebp - 0x1158], eax
mov dword [ebp - 0x1154], eax
push edx
lea eax, [ebp - 0x21a]
push eax
mov dword [ebp - 0x115c], 3
mov word [ebp - 0x21c], dx
call fcn.004556a0
add esp, 0xc
push esi
lea ecx, [ebp - 0x21c]
push 0x104
push ecx
call fcn.0044da11
mov esi, dword [ebp - 0x1134]
add esp, 0xc
lea edx, [ebp - 0x21c]
mov dword [ebp - 0x1158], edx
test esi, esi
je 0x41273f
xor eax, eax
push 0x206
push eax
lea ecx, [ebp - 0x62a]
push ecx
mov word [ebp - 0x62c], ax
call fcn.004556a0
add esp, 0xc
push esi
lea edx, [ebp - 0x62c]
push 0x104
push edx
call fcn.0044da11
lea eax, [ebp - 0x62c]
add esp, 0xc
mov dword [ebp - 0x1154], eax
mov edx, dword [ebp - 0x1108]
push 0xc
lea ecx, [ebp - 0x115c]
push ecx
push 0x26
push edx
call dword [sym.imp.WINHTTP.dll_WinHttpSetOption]
test eax, eax
jne 0x412767
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [edi + 0x11c], eax
mov eax, dword [ebp - 0x113c]
test eax, eax
je 0x412778
push eax
call dword [sym.imp.KERNEL32.dll_GlobalFree]
mov eax, dword [ebp - 0x1138]
test eax, eax
je 0x412789
push eax
call dword [sym.imp.KERNEL32.dll_GlobalFree]
mov eax, dword [ebp - 0x1134]
test eax, eax
je 0x41279a
push eax
call dword [sym.imp.KERNEL32.dll_GlobalFree]
cmp byte [ebp - 0x1111], 0
je 0x413044
mov eax, dword [edi + 0xdc]
test eax, eax
je 0x4127e7
mov edx, dword [edi + 0xe0]
lea ecx, [ebp - 0x110c]
push ecx
push edx
push eax
mov eax, dword [ebp - 0x1108]
push eax
mov dword [ebp - 0x110c], 0
call dword [sym.imp.WINHTTP.dll_WinHttpWriteData]
test eax, eax
jne 0x4127e7
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [edi + 0x11c], eax
mov ecx, dword [ebp - 0x1108]
push 0
push ecx
call dword [sym.imp.WINHTTP.dll_WinHttpReceiveResponse]
test eax, eax
je 0x413038
mov eax, dword [ebp - 0x1108]
mov ebx, dword [sym.imp.WINHTTP.dll_WinHttpQueryHeaders]
push 0
lea edx, [ebp - 0x1104]
push edx
push 0
push 0
push 0x16
push eax
mov dword [ebp - 0x1104], 0
call ebx
test eax, eax
jne 0x412839
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0x7a
jne 0x412bcc
mov eax, dword [ebp - 0x1104]
xor ecx, ecx
mov edx, 2
mul edx
seto cl
neg ecx
or ecx, eax
push ecx
call fcn.0044d4ae
mov esi, eax
add esp, 4
mov dword [ebp - 0x112c], esi
test esi, esi
je 0x412bcc
mov eax, dword [ebp - 0x1104]
lea ecx, [eax + eax]
push ecx
push 0
push esi
call fcn.004556a0
mov eax, dword [ebp - 0x1108]
add esp, 0xc
push 0
lea edx, [ebp - 0x1104]
push edx
push esi
push 0
push 0x16
push eax
call ebx
test eax, eax
je 0x412bc3
push esi
lea ebx, [edi + 0x40]
push ebx
call fcn.00404092
xor eax, eax
mov dword [ebp - 0x1128], eax
mov dword [ebp - 0x1124], eax
mov dword [ebp - 0x1120], eax
push 0x476ee0
lea esi, [ebp - 0x108c]
mov byte [ebp - 4], 2
call fcn.00402684
mov byte [ebp - 4], 3
cmp byte [edi + 0x158], 0
jne 0x41292e
mov ecx, esi
push ecx
mov ecx, str.charset_A_Za_z0_9___
call fcn.0040b340
push ebx
lea edx, [ebp - 0x1128]
mov ecx, esi
call fcn.00411d40
add esp, 4
test al, al
je 0x41292e
mov ecx, dword [ebp - 0x1124]
mov esi, dword [ebp - 0x1128]
sub ecx, esi
mov eax, 0x92492493
imul ecx
add edx, ecx
sar edx, 4
mov eax, edx
shr eax, 0x1f
add eax, edx
je 0x41292e
push 0xffffffffffffffff
lea ecx, [edi + 0x78]
push 0
mov eax, esi
call fcn.00403f7d
lea ecx, [ebp - 0x108c]
push ecx
mov ecx, str.Content_Length:__0_9_
call fcn.0040b340
push ebx
lea edx, [ebp - 0x1128]
lea ecx, [ebp - 0x108c]
call fcn.00411d40
add esp, 4
test al, al
je 0x412992
mov ecx, dword [ebp - 0x1124]
mov esi, dword [ebp - 0x1128]
sub ecx, esi
mov eax, 0x92492493
imul ecx
add edx, ecx
sar edx, 4
mov eax, edx
shr eax, 0x1f
add eax, edx
je 0x412992
cmp dword [esi + 0x14], 8
jb 0x412983
mov esi, dword [esi]
push esi
call fcn.0044f3f0
add esp, 4
mov dword [edi + 0xa0], eax
lea ecx, [ebp - 0x108c]
push ecx
mov ecx, str.Location:__0_9_
call fcn.0040b340
push ebx
lea edx, [ebp - 0x1128]
lea ecx, [ebp - 0x108c]
call fcn.00411d40
add esp, 4
test al, al
je 0x4129f0
mov ecx, dword [ebp - 0x1124]
mov esi, dword [ebp - 0x1128]
sub ecx, esi
mov eax, 0x92492493
imul ecx
add edx, ecx
sar edx, 4
mov eax, edx
shr eax, 0x1f
add eax, edx
je 0x4129f0
push 0xffffffffffffffff
push 0
lea ecx, [edi + 0x194]
mov eax, esi
call fcn.00403f7d
lea ecx, [ebp - 0x108c]
push ecx
mov ecx, str.Set_Cookie:_b.__n
call fcn.0040b340
push ebx
lea edx, [ebp - 0x1128]
lea ecx, [ebp - 0x108c]
call fcn.00411d40
add esp, 4
test al, al
je 0x412b99
mov ecx, dword [ebp - 0x1124]
sub ecx, dword [ebp - 0x1128]
mov eax, 0x92492493
imul ecx
add edx, ecx
sar edx, 4
mov ebx, edx
shr ebx, 0x1f
add ebx, edx
je 0x412b99
mov dword [ebp - 0x110c], 0
test ebx, ebx
je 0x412aae
mov edx, dword [ebp - 0x1128]
lea esi, [edi + 0xa4]
mov dword [ebp - 0x1110], edx
mov eax, dword [ebp - 0x1110]
push 0
push eax
or eax, 0xffffffff
call fcn.00405ea5
lea eax, [ebx - 1]
cmp dword [ebp - 0x110c], eax
je 0x412a96
push 0x4774ac
mov edi, 2
mov eax, esi
call fcn.0040504b
mov edi, dword [ebp - 0x1130]
mov eax, dword [ebp - 0x110c]
add dword [ebp - 0x1110], 0x1c
inc eax
mov dword [ebp - 0x110c], eax
cmp eax, ebx
jb 0x412a63
push 0x4773c0
lea esi, [ebp - 0x10e0]
call fcn.00402684
mov ecx, esi
push ecx
lea ebx, [edi + 0xa4]
push ebx
lea edx, [ebp - 0x10fc]
mov byte [ebp - 4], 4
call fcn.0040f7d0
add esp, 8
mov esi, eax
mov byte [ebp - 4], 5
cmp ebx, esi
je 0x412b46
cmp dword [ebx + 0x14], 8
jb 0x412af5
mov eax, dword [ebx]
push eax
call fcn.0044cdbc
add esp, 4
xor edx, edx
mov dword [ebx + 0x14], 7
mov dword [ebx + 0x10], 0
mov word [ebx], dx
cmp dword [esi + 0x14], 8
jae 0x412b21
mov eax, dword [esi + 0x10]
inc eax
add eax, eax
push eax
push esi
push ebx
call fcn.0044cf60
add esp, 0xc
jmp 0x412b27
mov ecx, dword [esi]
mov dword [ebx], ecx
mov dword [esi], edx
mov edx, dword [esi + 0x10]
mov dword [ebx + 0x10], edx
mov eax, dword [esi + 0x14]
mov dword [ebx + 0x14], eax
xor ecx, ecx
mov dword [esi + 0x14], 7
mov dword [esi + 0x10], 0
mov word [esi], cx
lea esi, [ebp - 0x10fc]
mov byte [ebp - 4], 4
call fcn.004026c0
lea esi, [ebp - 0x10e0]
mov byte [ebp - 4], 3
call fcn.004026c0
mov eax, dword [edi + 0xb4]
test eax, eax
je 0x412b99
cmp dword [ebx + 0x14], 8
jb 0x412b78
mov ecx, dword [ebx]
jmp 0x412b7a
mov ecx, ebx
cmp word [ecx + eax*2 - 2], 0x3b
je 0x412b99
push 0x4774b4
mov edi, 1
mov eax, ebx
call fcn.0040504b
mov edi, dword [ebp - 0x1130]
lea esi, [ebp - 0x108c]
mov byte [ebp - 4], 2
call fcn.004026c0
lea ebx, [ebp - 0x1128]
mov byte [ebp - 4], 0
call fcn.004083a0
mov ebx, dword [sym.imp.WINHTTP.dll_WinHttpQueryHeaders]
mov esi, dword [ebp - 0x112c]
push esi
call fcn.0044cf4c
add esp, 4
mov eax, dword [ebp - 0x1108]
push 0
lea edx, [ebp - 0x1104]
push edx
push 0
push 0
push 0x13
push eax
mov dword [ebp - 0x1104], 0
call ebx
test eax, eax
jne 0x412bfd
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0x7a
jne 0x412c69
mov eax, dword [ebp - 0x1104]
xor ecx, ecx
mov edx, 2
mul edx
seto cl
neg ecx
or ecx, eax
push ecx
call fcn.0044d4ae
mov esi, eax
add esp, 4
test esi, esi
je 0x412c69
mov eax, dword [ebp - 0x1104]
lea ecx, [eax + eax]
push ecx
push 0
push esi
call fcn.004556a0
mov eax, dword [ebp - 0x1108]
add esp, 0xc
push 0
lea edx, [ebp - 0x1104]
push edx
push esi
push 0
push 0x13
push eax
call ebx
test eax, eax
je 0x412c60
lea ecx, [edi + 0x120]
push ecx
mov ecx, esi
call fcn.0040b340
push esi
call fcn.0044cf4c
add esp, 4
mov eax, dword [edi + 0x94]
xor esi, esi
mov dword [ebp - 0x110c], 0x2800
cmp eax, esi
je 0x412c8e
push eax
call fcn.0044cf4c
add esp, 4
mov dword [edi + 0x94], esi
push 0x2800
call fcn.0044d4ae
add esp, 4
mov dword [edi + 0x94], eax
cmp eax, esi
je 0x413053
push 0x2800
push esi
push eax
call fcn.004556a0
add esp, 0xc
jmp 0x412cc0
mov eax, dword [ebp - 0x1108]
lea edx, [ebp - 0x1104]
push edx
push eax
mov dword [ebp - 0x1104], 0
call dword [sym.imp.WINHTTP.dll_WinHttpQueryDataAvailable]
test eax, eax
je 0x412dec
push esi
mov edx, edi
call fcn.0040f9a0
mov ecx, dword [ebp - 0x1104]
inc ecx
push ecx
call fcn.0044d4ae
mov ebx, eax
add esp, 4
mov dword [ebp - 0x1198], ebx
test ebx, ebx
je 0x412df8
mov edx, dword [ebp - 0x1104]
inc edx
push edx
push 0
push ebx
call fcn.004556a0
mov ecx, dword [ebp - 0x1104]
mov edx, dword [ebp - 0x1108]
add esp, 0xc
lea eax, [ebp - 0x1110]
push eax
push ecx
push ebx
push edx
mov dword [ebp - 0x1110], 0
call dword [sym.imp.WINHTTP.dll_WinHttpReadData]
test eax, eax
je 0x412de1
mov eax, dword [ebp - 0x1110]
add eax, esi
cmp eax, dword [ebp - 0x110c]
jbe 0x412dc2
mov eax, dword [ebp - 0x110c]
mov ebx, dword [edi + 0x94]
add eax, eax
push eax
mov dword [ebp - 0x112c], eax
call fcn.0044d4ae
add esp, 4
mov dword [edi + 0x94], eax
test eax, eax
je 0x412e07
mov ecx, dword [ebp - 0x112c]
push ecx
push 0
push eax
mov dword [ebp - 0x110c], ecx
call fcn.004556a0
mov ecx, dword [edi + 0x94]
add esp, 0xc
push esi
push ebx
push ecx
call fcn.00454a60
add esp, 0xc
push ebx
call fcn.0044cf4c
mov ebx, dword [ebp - 0x1198]
add esp, 4
mov edx, dword [ebp - 0x1110]
mov eax, dword [edi + 0x94]
push edx
add eax, esi
push ebx
push eax
call fcn.00454a60
add esp, 0xc
add esi, dword [ebp - 0x1110]
push ebx
call fcn.0044cf4c
add esp, 4
jmp 0x412df8
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [edi + 0x11c], eax
cmp dword [ebp - 0x1104], 0
ja 0x412cc0
jmp 0x412e14
mov dword [edi + 0x94], ebx
mov byte [ebp - 0x10fe], 0
push esi
mov edx, edi
call fcn.0040f9a0
lea eax, [edi + 0x78]
mov dword [edi + 0x98], esi
xor ebx, ebx
cmp dword [eax + 0x14], 8
mov dword [ebp - 0x1110], 1
jb 0x412e39
mov eax, dword [eax]
push 5
push 0x4774b8
push eax
call fcn.0044ee5b
add esp, 0xc
test eax, eax
jne 0x412e58
mov ebx, 0xfde9
mov dword [ebp - 0x1110], eax
mov ecx, dword [edi + 0x98]
mov edx, dword [edi + 0x94]
mov eax, dword [ebp - 0x1110]
push 0
push 0
inc ecx
push ecx
push edx
push eax
push ebx
call dword [sym.imp.KERNEL32.dll_MultiByteToWideChar]
mov esi, eax
test esi, esi
jg 0x412eaf
mov ecx, dword [edi + 0x98]
mov edx, dword [edi + 0x94]
xor ebx, ebx
push ebx
push ebx
inc ecx
push ecx
push edx
push 1
push ebx
mov dword [ebp - 0x1110], 1
call dword [sym.imp.KERNEL32.dll_MultiByteToWideChar]
mov esi, eax
test esi, esi
jle 0x412f30
xor ecx, ecx
mov eax, esi
mov edx, 2
mul edx
seto cl
neg ecx
or ecx, eax
push ecx
call fcn.0044d4ae
add esp, 4
mov dword [ebp - 0x110c], eax
test eax, eax
je 0x412f30
mov ecx, dword [ebp - 0x110c]
lea eax, [esi + esi]
push eax
push 0
push ecx
call fcn.004556a0
mov edx, dword [ebp - 0x110c]
mov eax, dword [edi + 0x98]
mov ecx, dword [edi + 0x94]
add esp, 0xc
push esi
push edx
mov edx, dword [ebp - 0x1110]
inc eax
push eax
push ecx
push edx
push ebx
call dword [sym.imp.KERNEL32.dll_MultiByteToWideChar]
test eax, eax
jle 0x412f21
mov ecx, dword [ebp - 0x110c]
lea eax, [edi + 0x5c]
push eax
call fcn.0040b340
mov ecx, dword [ebp - 0x110c]
push ecx
call fcn.0044cf4c
add esp, 4
mov esi, 0x4773c8
lea ecx, [ebp - 0x1070]
mov byte [ebp - 0x10fd], 1
call fcn.0040fa00
test al, al
je 0x41306a
push str._html_
lea esi, [ebp - 0x10c4]
call fcn.00402684
xor eax, eax
mov bl, 6
mov byte [ebp - 4], bl
mov dword [ebp - 0x1150], eax
mov dword [ebp - 0x114c], eax
mov dword [ebp - 0x1148], eax
lea esi, [edi + 0x5c]
push esi
lea edx, [ebp - 0x1150]
lea ecx, [ebp - 0x10c4]
mov byte [ebp - 4], 7
call fcn.00411d40
add esp, 4
test al, al
je 0x413019
mov ecx, dword [ebp - 0x114c]
sub ecx, dword [ebp - 0x1150]
mov eax, 0x92492493
imul ecx
add edx, ecx
sar edx, 4
mov eax, edx
shr eax, 0x1f
add eax, edx
je 0x413019
lea ecx, [ebp - 0x10c4]
push ecx
mov ecx, str.__html_
call fcn.0040b340
push esi
lea edx, [ebp - 0x1150]
lea ecx, [ebp - 0x10c4]
call fcn.00411d40
add esp, 4
test al, al
je 0x413008
mov ecx, dword [ebp - 0x114c]
sub ecx, dword [ebp - 0x1150]
mov eax, 0x92492493
imul ecx
add edx, ecx
sar edx, 4
mov eax, edx
shr eax, 0x1f
add eax, edx
jne 0x413019
mov dword [edi + 0x11c], 0xd
mov byte [ebp - 0x10fd], 0
mov byte [ebp - 4], bl
lea ebx, [ebp - 0x1150]
call fcn.004083a0
lea esi, [ebp - 0x10c4]
mov byte [ebp - 4], 0
call fcn.004026c0
jmp 0x413044
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [edi + 0x11c], eax
cmp byte [ebp - 0x10fd], 0
je 0x412360
jmp 0x41306a
mov byte [ebp - 0x10fe], 0
cmp byte [ebp - 0x10fd], 0
jne 0x41306a
mov byte [ebp - 0x10fe], 0
mov ecx, dword [ebp - 0x1108]
push ecx
call dword [sym.imp.WINHTTP.dll_WinHttpCloseHandle]
mov esi, dword [ebp - 0x1190]
push esi
call dword [sym.imp.WINHTTP.dll_WinHttpCloseHandle]
lea esi, [ebp - 0x1070]
mov dword [ebp - 4], 0xffffffff
call fcn.004026c0
mov al, byte [ebp - 0x10fe]
jmp 0x4130bc
mov dword [edi + 0x11c], 0x57
lea esi, [ebp - 0x1070]
mov dword [ebp - 4], 0xffffffff
call fcn.004026c0
xor al, al
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 0x14]
xor ecx, ebp
call fcn.0044cdc7
mov esp, ebp
pop ebp
ret 4