Function at 0x403bd0
Capabilities:
Initialize winhttp library
Prepare http request
Read http header
Receive http response

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x426762
mov eax, dword fs:[0]
push eax
sub esp, 0x1b4
mov eax, dword [0x43574c]
xor eax, ebp
mov dword [ebp - 0x10], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov edi, ecx
mov dword [ebp - 0x18c], edi
mov dword [ebp - 0x158], 0
mov dword [ebp - 4], 1
mov dword [edi + 0x14], 0xf
mov dword [edi + 0x10], 0
mov byte [edi], 0
push 2
push 0
push 0x42dd6c
lea ecx, [ebp + 8]
mov dword [ebp - 0x158], 1
call fcn.00404250
push 1
lea ecx, [ebp + 8]
lea esi, [eax + 2]
push esi
push 0x42dd74
call fcn.00404250
push 1
push esi
push 0x42dd78
lea ecx, [ebp + 8]
mov dword [ebp - 0x130], eax
call fcn.00404250
mov ebx, eax
mov dword [ebp - 0xfc], 7
xor eax, eax
mov dword [ebp - 0x100], 0
mov word [ebp - 0x110], ax
mov byte [ebp - 4], 2
lea ecx, [ebp + 8]
cmp ebx, 0xffffffff
je 0x403ded
mov eax, ebx
sub eax, esi
push eax
push esi
lea eax, [ebp - 0x14c]
push eax
call fcn.00404210
xor ecx, ecx
mov byte [ebp - 4], 3
push 0xffffffffffffffff
push ecx
mov word [ebp - 0x188], cx
lea ecx, [ebp - 0x188]
push eax
mov dword [ebp - 0x174], 7
mov dword [ebp - 0x178], 0
call fcn.00401810
push 0xffffffffffffffff
push 0
lea eax, [ebp - 0x188]
mov byte [ebp - 4], 4
push eax
lea ecx, [ebp - 0x110]
call fcn.00401810
cmp dword [ebp - 0x174], 8
jb 0x403d0e
push dword [ebp - 0x188]
call fcn.0041003b
add esp, 4
xor eax, eax
mov byte [ebp - 4], 2
cmp dword [ebp - 0x138], 8
mov dword [ebp - 0x174], 7
mov dword [ebp - 0x178], 0
mov word [ebp - 0x188], ax
jb 0x403d46
push dword [ebp - 0x14c]
call fcn.0041003b
add esp, 4
mov eax, dword [ebp - 0x130]
lea ecx, [ebp + 8]
sub eax, ebx
dec eax
push eax
lea eax, [ebx + 1]
push eax
lea eax, [ebp - 0x14c]
push eax
call fcn.00404210
xor ecx, ecx
mov byte [ebp - 4], 5
push 0xffffffffffffffff
push ecx
mov word [ebp - 0xf0], cx
lea ecx, [ebp - 0xf0]
push eax
mov dword [ebp - 0xdc], 7
mov dword [ebp - 0xe0], 0
call fcn.00401810
mov byte [ebp - 4], 2
cmp dword [ebp - 0x138], 8
jb 0x403dae
push dword [ebp - 0x14c]
call fcn.0041003b
add esp, 4
cmp dword [ebp - 0xdc], 8
lea eax, [ebp - 0xf0]
cmovae eax, dword [ebp - 0xf0]
push eax
call fcn.00410278
add esp, 4
mov esi, eax
cmp dword [ebp - 0xdc], 8
jb 0x403ea1
push dword [ebp - 0xf0]
call fcn.0041003b
add esp, 4
jmp 0x403ea1
mov eax, dword [ebp - 0x130]
sub eax, esi
push eax
push esi
lea eax, [ebp - 0x14c]
push eax
call fcn.00404210
xor ecx, ecx
mov byte [ebp - 4], 6
push 0xffffffffffffffff
push ecx
mov word [ebp - 0x170], cx
lea ecx, [ebp - 0x170]
push eax
mov dword [ebp - 0x15c], 7
mov dword [ebp - 0x160], 0
call fcn.00401810
push 0xffffffffffffffff
push 0
lea eax, [ebp - 0x170]
mov byte [ebp - 4], 7
push eax
lea ecx, [ebp - 0x110]
call fcn.00401810
cmp dword [ebp - 0x15c], 8
jb 0x403e64
push dword [ebp - 0x170]
call fcn.0041003b
add esp, 4
xor eax, eax
mov byte [ebp - 4], 2
cmp dword [ebp - 0x138], 8
mov dword [ebp - 0x15c], 7
mov dword [ebp - 0x160], 0
mov word [ebp - 0x170], ax
jb 0x403e9c
push dword [ebp - 0x14c]
call fcn.0041003b
add esp, 4
mov esi, 0x50
push 0xffffffffffffffff
push dword [ebp - 0x130]
lea eax, [ebp - 0x1a4]
push eax
lea ecx, [ebp + 8]
call fcn.00404210
xor ecx, ecx
mov byte [ebp - 4], 8
push 0xffffffffffffffff
push ecx
mov word [ebp - 0x128], cx
lea ecx, [ebp - 0x128]
push eax
mov dword [ebp - 0x114], 7
mov dword [ebp - 0x118], 0
call fcn.00401810
mov byte [ebp - 4], 0xa
cmp dword [ebp - 0x190], 8
jb 0x403f03
push dword [ebp - 0x1a4]
call fcn.0041003b
add esp, 4
xor eax, eax
mov dword [ebp - 0x190], 7
push eax
push eax
push eax
push eax
push 0x42dd7c
mov dword [ebp - 0x194], 0
mov word [ebp - 0x1a4], ax
call dword [sym.imp.WINHTTP.dll_WinHttpOpen]
mov ebx, eax
mov dword [ebp - 0x150], ebx
test ebx, ebx
je 0x404139
lea eax, [ebp - 0x1bc]
push eax
lea ecx, [ebp - 0x110]
call fcn.00403b90
cmp dword [eax + 0x14], 8
jb 0x403f59
mov eax, dword [eax]
push 0
push esi
push eax
push ebx
call dword [sym.imp.WINHTTP.dll_WinHttpConnect]
cmp dword [ebp - 0x1a8], 8
mov esi, eax
mov dword [ebp - 0x154], esi
jb 0x403f83
push dword [ebp - 0x1bc]
call fcn.0041003b
add esp, 4
mov ebx, dword [sym.imp.WINHTTP.dll_WinHttpCloseHandle]
xor eax, eax
mov dword [ebp - 0x1a8], 7
mov dword [ebp - 0x1ac], 0
mov word [ebp - 0x1bc], ax
test esi, esi
je 0x404131
lea eax, [ebp - 0x14c]
push eax
lea ecx, [ebp - 0x128]
call fcn.00403b90
cmp dword [eax + 0x14], 8
jb 0x403fc8
mov eax, dword [eax]
push 0
push 0
push 0
push 0
push eax
push 0x42dd94
push esi
call dword [sym.imp.WINHTTP.dll_WinHttpOpenRequest]
cmp dword [ebp - 0x138], 8
mov esi, eax
mov dword [ebp - 0x134], esi
jb 0x403ffc
push dword [ebp - 0x14c]
call fcn.0041003b
add esp, 4
xor eax, eax
mov dword [ebp - 0x138], 7
mov dword [ebp - 0x13c], 0
mov word [ebp - 0x14c], ax
test esi, esi
je 0x404129
push eax
push eax
push eax
push eax
push eax
push eax
push esi
call dword [sym.imp.WINHTTP.dll_WinHttpSendRequest]
push 0
push esi
call dword [sym.imp.WINHTTP.dll_WinHttpReceiveResponse]
lea eax, [ebp - 0xf8]
mov dword [ebp - 0xf4], 0x64
push eax
lea eax, [ebp - 0xf4]
mov dword [ebp - 0xf8], 0
push eax
lea eax, [ebp - 0xd8]
push eax
push 0
push 5
push esi
call dword [sym.imp.WINHTTP.dll_WinHttpQueryHeaders]
lea eax, [ebp - 0xd8]
push eax
call fcn.00410278
mov esi, eax
push esi
call fcn.0040f03c
add esp, 8
mov dword [ebp - 0x130], eax
lea ecx, [ebp - 0x12c]
push ecx
push esi
mov esi, dword [ebp - 0x134]
push eax
push esi
call dword [sym.imp.WINHTTP.dll_WinHttpReadData]
push dword [ebp - 0x12c]
lea ecx, [ebp - 0xf0]
mov dword [ebp - 0x134], eax
push dword [ebp - 0x130]
mov dword [ebp - 0xdc], 0xf
mov dword [ebp - 0xe0], 0
mov byte [ebp - 0xf0], 0
call fcn.00401a30
lea eax, [ebp - 0xf0]
mov ecx, edi
push eax
call fcn.004041d0
cmp dword [ebp - 0xdc], 0x10
jb 0x4040fb
push dword [ebp - 0xf0]
call fcn.0041003b
add esp, 4
push dword [ebp - 0x130]
call fcn.00410014
add esp, 4
cmp dword [ebp - 0x134], 0
jne 0x404126
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
push str.Error__d_has_occurred._n
call fcn.004102aa
add esp, 8
push esi
call ebx
push dword [ebp - 0x154]
call ebx
push dword [ebp - 0x150]
call ebx
cmp dword [ebp - 0x114], 8
jb 0x404150
push dword [ebp - 0x128]
call fcn.0041003b
add esp, 4
xor eax, eax
mov dword [ebp - 0x114], 7
cmp dword [ebp - 0xfc], 8
mov dword [ebp - 0x118], 0
mov word [ebp - 0x128], ax
jb 0x404184
push dword [ebp - 0x110]
call fcn.0041003b
add esp, 4
xor eax, eax
mov dword [ebp - 0xfc], 7
cmp dword [ebp + 0x1c], 8
mov dword [ebp - 0x100], 0
mov word [ebp - 0x110], ax
jb 0x4041b2
push dword [ebp + 8]
call fcn.0041003b
add esp, 4
mov eax, edi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.0040f87b
mov esp, ebp
pop ebp
ret