Function at 0x47947b
Capabilities:
Check http status code
Initialize winhttp library
Prepare http request
Read http header
Receive http response

Disassembly:
push 0x64
mov eax, 0x483c04
call fcn.00482f11
mov dword [ebp - 0x68], ecx
xor ebx, ebx
mov dword [ebp - 0x64], 8
mov dword [ebp - 0x18], ebx
mov dword [ebp - 0x14], ebx
mov dword [ebp - 0x60], ebx
mov dword [ebp - 0x1c], ebx
cmp dword [ebp + 0xc], ebx
jne 0x4794ac
push 0x57
pop eax
jmp 0x4796eb
mov dword [ebp - 4], ebx
lea eax, [ebp - 0x54]
mov dword [ebp - 0x5c], eax
mov dword [ebp - 0x58], eax
xor eax, eax
mov word [ebp - 0x54], ax
mov dword [ebp - 4], 1
lea eax, [ebp - 0x44]
mov dword [ebp - 0x4c], eax
mov dword [ebp - 0x48], eax
xor eax, eax
mov word [ebp - 0x44], ax
mov dword [ebp - 4], 2
lea eax, [ebp - 0x34]
mov dword [ebp - 0x3c], eax
mov dword [ebp - 0x38], eax
xor eax, eax
mov word [ebp - 0x34], ax
or dword [ebp - 4], 0xffffffff
lea eax, [ebp - 0x3c]
push dword [ebp + 0xc]
lea edx, [ebp - 0x4c]
push dword [ebp + 8]
lea ecx, [ebp - 0x5c]
push eax
call fcn.004793dc
mov ebx, eax
mov esi, 0x401a5f
test ebx, ebx
jne 0x479697
push ebx
push ebx
push ebx
push 4
push 0x465ac4
call dword [sym.imp.WINHTTP.dll_WinHttpOpen]
mov edi, eax
test edi, edi
jne 0x479535
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov ebx, eax
jmp 0x479697
push ebx
push 0x50
push dword [ebp - 0x5c]
push edi
call dword [sym.imp.WINHTTP.dll_WinHttpConnect]
mov dword [ebp - 0x6c], eax
test eax, eax
jne 0x479556
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov ebx, eax
jmp 0x479690
push ebx
push ebx
push ebx
push ebx
push dword [ebp - 0x4c]
push 0x465afc
push eax
call dword [sym.imp.WINHTTP.dll_WinHttpOpenRequest]
mov esi, eax
test esi, esi
jne 0x47957c
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov ebx, eax
jmp 0x479682
mov edx, dword [ebp - 0x3c]
lea eax, [ebp - 0x24]
mov dword [ebp - 0x2c], eax
mov dword [ebp - 0x28], eax
mov eax, dword [ebp - 0x38]
push 0x400
sub eax, edx
mov byte [ebp - 0x24], bl
push ecx
sar eax, 1
lea ecx, [ebp - 0x2c]
push eax
call fcn.00478b8b
test eax, eax
js 0x479634
mov eax, dword [ebp - 0x28]
sub eax, dword [ebp - 0x2c]
push ebx
push eax
push eax
push dword [ebp - 0x2c]
push 0xffffffffffffffff
push 0x465b08
push esi
call dword [sym.imp.WINHTTP.dll_WinHttpSendRequest]
test eax, eax
je 0x47965c
push ebx
push esi
call dword [sym.imp.WINHTTP.dll_WinHttpReceiveResponse]
test eax, eax
je 0x47965c
lea eax, [ebp - 0x60]
push eax
lea eax, [ebp - 0x64]
push eax
lea eax, [ebp - 0x18]
push eax
push ebx
push 0x13
push esi
call dword [sym.imp.WINHTTP.dll_WinHttpQueryHeaders]
test eax, eax
je 0x47965c
push 0xa
lea eax, [ebp - 0x70]
push eax
lea eax, [ebp - 0x18]
push eax
call dword [sym.imp.msvcrt.dll_strtoul]
add esp, 0xc
cmp eax, 0x190
jb 0x479613
push 0x33
jmp 0x479636
lea eax, [ebp - 0x1c]
push eax
push esi
call dword [sym.imp.WINHTTP.dll_WinHttpQueryDataAvailable]
test eax, eax
je 0x47965c
mov ebx, dword [ebp - 0x68]
push ecx
push dword [ebp - 0x1c]
mov ecx, ebx
call fcn.004791d1
test al, al
jne 0x479639
push 0xe
pop ebx
jmp 0x479664
lea eax, [ebp - 0x1c]
push eax
push dword [ebp - 0x1c]
push dword [ebx]
push esi
call dword [sym.imp.WINHTTP.dll_WinHttpReadData]
test eax, eax
je 0x47965c
push ecx
push dword [ebp - 0x1c]
mov ecx, ebx
call fcn.004791d1
xor ebx, ebx
jmp 0x479664
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov ebx, eax
lea eax, [ebp - 0x24]
cmp dword [ebp - 0x2c], eax
je 0x47967b
push 0x401a5f
push dword [ebp - 0x2c]
call fcn.004834ca
pop ecx
pop ecx
push esi
call dword [sym.imp.WINHTTP.dll_WinHttpCloseHandle]
push dword [ebp - 0x6c]
call dword [sym.imp.WINHTTP.dll_WinHttpCloseHandle]
mov esi, 0x401a5f
push edi
call dword [sym.imp.WINHTTP.dll_WinHttpCloseHandle]
mov dword [ebp - 4], 0x6f
lea eax, [ebp - 0x34]
cmp dword [ebp - 0x3c], eax
je 0x4796b1
push esi
push dword [ebp - 0x3c]
call fcn.004834ca
pop ecx
pop ecx
mov dword [ebp - 4], 0x72
lea eax, [ebp - 0x44]
cmp dword [ebp - 0x4c], eax
je 0x4796cb
push esi
push dword [ebp - 0x4c]
call fcn.004834ca
pop ecx
pop ecx
mov dword [ebp - 4], 0x75
lea eax, [ebp - 0x54]
cmp dword [ebp - 0x5c], eax
je 0x4796e5
push esi
push dword [ebp - 0x5c]
call fcn.004834ca
pop ecx
pop ecx
or dword [ebp - 4], 0xffffffff
mov eax, ebx
call fcn.00482ec0
ret 8