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

Disassembly:
push ebp
mov ebp, esp
mov ecx, 0xa
push 0
push 0
dec ecx
jne 0x47c664
push ebx
mov dword [ebp - 0x24], eax
xor eax, eax
push ebp
push 0x47cad3
push dword fs:[eax]
mov dword fs:[eax], esp
lea edx, [ebp - 0x3c]
mov eax, dword [ebp - 0x24]
mov eax, dword [eax + 4]
mov ecx, dword [eax]
call dword [ecx + 0x10]
mov edx, dword [ebp - 0x3c]
lea eax, [ebp - 0x14]
call fcn.00405248
mov eax, dword [ebp - 0x24]
mov eax, dword [eax + 8]
mov edx, dword [eax]
call dword [edx + 0xc]
mov eax, dword [ebp - 0x24]
mov eax, dword [eax + 0x10]
push eax
lea eax, [ebp - 0x20]
mov ecx, 1
mov edx, dword [0x47c638]
call fcn.00405d58
add esp, 4
lea eax, [ebp - 4]
mov edx, dword [ebp - 0x24]
mov ebx, dword [edx + 4]
mov edx, dword [ebx + 0xc]
call fcn.00405248
lea edx, [ebp - 0x40]
mov eax, dword [ebx + 8]
call fcn.0047cc54
mov edx, dword [ebp - 0x40]
lea eax, [ebp - 8]
call fcn.00405248
mov eax, dword [ebp - 0x24]
mov eax, dword [eax + 4]
mov eax, dword [eax + 8]
call fcn.0047ccc0
mov ebx, eax
lea edx, [ebp - 0x44]
mov eax, dword [ebp - 0x24]
mov eax, dword [eax + 4]
mov eax, dword [eax + 8]
call fcn.0047cd10
mov edx, dword [ebp - 0x44]
lea eax, [ebp - 0xc]
call fcn.00405248
lea eax, [ebp - 0x10]
mov edx, dword [ebp - 0x24]
mov edx, dword [edx + 4]
mov edx, dword [edx + 0x10]
call fcn.00405248
push 0x10000000
push 0
push 0
push 0
mov eax, dword [ebp - 4]
call fcn.00405258
push eax
call sub.winhttp.dll_WinHttpOpen
mov dword [ebp - 0x28], eax
xor edx, edx
push ebp
push 0x47ca96
push dword fs:[edx]
mov dword fs:[edx], esp
push 0xea60
push 0xea60
push 0xea60
push 0
mov eax, dword [ebp - 0x28]
push eax
call sub.winhttp.dll_WinHttpSetTimeouts
call fcn.0040e134
push 0
push ebx
mov eax, dword [ebp - 8]
call fcn.00405258
push eax
mov eax, dword [ebp - 0x28]
push eax
call sub.winhttp.dll_WinHttpConnect
mov dword [ebp - 0x2c], eax
cmp dword [ebp - 0x2c], 0
setne al
neg al
sbb eax, eax
call fcn.0040e134
xor edx, edx
push ebp
push 0x47ca6c
push dword fs:[edx]
mov dword fs:[edx], esp
push 0
push 0
push 0
push 0
mov eax, dword [ebp - 0xc]
call fcn.00405258
push eax
mov eax, dword [ebp - 0x10]
call fcn.00405258
push eax
mov eax, dword [ebp - 0x2c]
push eax
call sub.winhttp.dll_WinHttpOpenRequest
mov ebx, eax
mov eax, dword [ebp - 0x24]
mov dword [eax + 0x18], ebx
test ebx, ebx
setne al
neg al
sbb eax, eax
call fcn.0040e134
xor edx, edx
push ebp
push 0x47ca4e
push dword fs:[edx]
mov dword fs:[edx], esp
mov eax, dword [ebp - 0x24]
mov eax, dword [eax + 0x20]
push eax
call sub.kernel32.dll_ResetEvent
push 0
push 0xffffff3f
push 0x47c57c
mov eax, dword [ebp - 0x24]
mov eax, dword [eax + 0x18]
push eax
call sub.winhttp.dll_WinHttpSetStatusCallback
cmp eax, 0xffffffff
setne al
neg al
sbb eax, eax
call fcn.0040e134
mov eax, dword [ebp - 0x24]
push eax
mov eax, dword [ebp - 0x24]
mov eax, dword [eax + 4]
mov eax, dword [eax + 0x14]
mov edx, dword [eax]
call dword [edx]
push eax
mov eax, dword [ebp - 0x24]
mov eax, dword [eax + 4]
mov ebx, dword [eax + 0x14]
mov eax, ebx
mov edx, dword [eax]
call dword [edx]
push eax
mov eax, dword [ebx + 4]
push eax
mov eax, dword [ebp - 0x14]
call fcn.00405268
push eax
mov eax, dword [ebp - 0x14]
call fcn.00405258
push eax
mov eax, dword [ebp - 0x24]
mov eax, dword [eax + 0x18]
push eax
call sub.winhttp.dll_WinHttpSendRequest
call fcn.0040e134
mov eax, dword [ebp - 0x24]
mov ecx, dword [eax + 0xc]
mov eax, dword [ebp - 0x24]
mov edx, dword [eax + 0x20]
mov eax, dword [ebp - 0x24]
call fcn.0047c528
test al, al
jne 0x47c88d
mov dl, 1
mov eax, dword [0x47b9cc]
call fcn.0047cd94
call fcn.00404260
mov eax, dword [ebp - 0x24]
mov eax, dword [eax + 0x1c]
test eax, eax
je 0x47c89c
call fcn.0040e09c
mov eax, dword [ebp - 0x20]
call fcn.00405b9c
mov dword [ebp - 0x30], eax
xor eax, eax
mov dword [ebp - 0x34], eax
lea eax, [ebp - 0x34]
push eax
lea eax, [ebp - 0x30]
push eax
mov eax, dword [ebp - 0x20]
push eax
push 0
push 0x16
mov eax, dword [ebp - 0x24]
mov eax, dword [eax + 0x18]
push eax
call sub.winhttp.dll_WinHttpQueryHeaders
call fcn.0040e134
lea edx, [ebp - 0x48]
mov eax, dword [ebp - 0x20]
call fcn.004057e8
mov edx, dword [ebp - 0x48]
lea eax, [ebp - 0x18]
call fcn.00405248
lea eax, [ebp - 0x4c]
mov edx, dword [ebp - 0x18]
call fcn.00404b74
mov edx, dword [ebp - 0x4c]
mov eax, dword [ebp - 0x24]
mov eax, dword [eax + 8]
mov ecx, dword [eax]
call dword [ecx + 0x14]
mov dword [ebp - 0x30], 4
xor eax, eax
mov dword [ebp - 0x34], eax
lea eax, [ebp - 0x34]
push eax
lea eax, [ebp - 0x30]
push eax
lea eax, [ebp - 0x38]
push eax
push 0
push 0x20000013
mov eax, dword [ebp - 0x24]
mov eax, dword [eax + 0x18]
push eax
call sub.winhttp.dll_WinHttpQueryHeaders
call fcn.0040e134
mov eax, dword [ebp - 0x24]
mov eax, dword [eax + 8]
mov edx, dword [ebp - 0x38]
mov dword [eax + 8], edx
mov eax, dword [ebp - 0x20]
call fcn.00405b9c
mov dword [ebp - 0x30], eax
xor eax, eax
mov dword [ebp - 0x34], eax
lea eax, [ebp - 0x34]
push eax
lea eax, [ebp - 0x30]
push eax
mov eax, dword [ebp - 0x20]
push eax
push 0
push 0x14
mov eax, dword [ebp - 0x24]
mov eax, dword [eax + 0x18]
push eax
call sub.winhttp.dll_WinHttpQueryHeaders
test eax, eax
je 0x47c98f
lea edx, [ebp - 0x50]
mov eax, dword [ebp - 0x20]
call fcn.004057e8
mov edx, dword [ebp - 0x50]
lea eax, [ebp - 0x1c]
call fcn.00405248
mov eax, dword [ebp - 0x24]
mov eax, dword [eax + 8]
add eax, 0xc
mov edx, dword [ebp - 0x1c]
call fcn.00404b74
xor eax, eax
mov dword [ebp - 0x30], eax
mov eax, dword [ebp - 0x24]
cmp word [eax + 0x2a], 0
je 0x47ca22
xor eax, eax
mov dword [ebp - 0x34], eax
lea eax, [ebp - 0x34]
push eax
mov eax, dword [ebp - 0x20]
call fcn.00405b9c
push eax
mov eax, dword [ebp - 0x20]
push eax
mov eax, dword [ebp - 0x24]
mov eax, dword [eax + 0x18]
push eax
call sub.winhttp.dll_WinHttpReadData
call fcn.0040e134
mov eax, dword [ebp - 0x24]
mov ecx, dword [eax + 0xc]
mov eax, dword [ebp - 0x24]
mov edx, dword [eax + 0x20]
mov eax, dword [ebp - 0x24]
call fcn.0047c528
test al, al
jne 0x47c9f2
mov dl, 1
mov eax, dword [0x47b9cc]
call fcn.0047cd94
call fcn.00404260
mov eax, dword [ebp - 0x24]
mov eax, dword [eax + 0x1c]
test eax, eax
je 0x47ca01
call fcn.0040e09c
inc dword [ebp - 0x30]
mov eax, dword [ebp - 0x24]
mov ecx, dword [eax + 0x24]
mov edx, dword [ebp - 0x20]
mov eax, dword [ebp - 0x24]
call fcn.0047c4f8
test al, al
je 0x47ca22
mov eax, dword [ebp - 0x24]
cmp dword [eax + 0x24], 0
jne 0x47c9a2
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x47ca55
push 0
push 0
push 0
mov eax, dword [ebp - 0x24]
mov eax, dword [eax + 0x18]
push eax
call sub.winhttp.dll_WinHttpSetStatusCallback
mov eax, dword [ebp - 0x24]
mov eax, dword [eax + 0x18]
push eax
call sub.winhttp.dll_WinHttpCloseHandle
ret