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

Disassembly:
push 0x64
mov eax, 0x4c9ede
call fcn.004c5467
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 0x4c18fb
push 0x57
pop eax
jmp 0x4c1b3a
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.004c182b
mov ebx, eax
mov esi, 0x40af50
test ebx, ebx
jne 0x4c1ae6
push ebx
push ebx
push ebx
push 4
push 0x474724
call dword [sym.imp.WINHTTP.dll_WinHttpOpen]
mov edi, eax
test edi, edi
jne 0x4c1984
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov ebx, eax
jmp 0x4c1ae6
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 0x4c19a5
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov ebx, eax
jmp 0x4c1adf
push ebx
push ebx
push ebx
push ebx
push dword [ebp - 0x4c]
push 0x474718
push eax
call dword [sym.imp.WINHTTP.dll_WinHttpOpenRequest]
mov esi, eax
test esi, esi
jne 0x4c19cb
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov ebx, eax
jmp 0x4c1ad1
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.004c1520
test eax, eax
js 0x4c1a83
mov eax, dword [ebp - 0x28]
sub eax, dword [ebp - 0x2c]
push ebx
push eax
push eax
push dword [ebp - 0x2c]
push 0xffffffffffffffff
push 0x474760
push esi
call dword [sym.imp.WINHTTP.dll_WinHttpSendRequest]
test eax, eax
je 0x4c1aab
push ebx
push esi
call dword [sym.imp.WINHTTP.dll_WinHttpReceiveResponse]
test eax, eax
je 0x4c1aab
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 0x4c1aab
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 0x4c1a62
push 0x33
jmp 0x4c1a85
lea eax, [ebp - 0x1c]
push eax
push esi
call dword [sym.imp.WINHTTP.dll_WinHttpQueryDataAvailable]
test eax, eax
je 0x4c1aab
mov ebx, dword [ebp - 0x68]
push ecx
push dword [ebp - 0x1c]
mov ecx, ebx
call fcn.004c2487
test al, al
jne 0x4c1a88
push 0xe
pop ebx
jmp 0x4c1ab3
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 0x4c1aab
push ecx
push dword [ebp - 0x1c]
mov ecx, ebx
call fcn.004c2487
xor ebx, ebx
jmp 0x4c1ab3
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov ebx, eax
lea eax, [ebp - 0x24]
cmp dword [ebp - 0x2c], eax
je 0x4c1aca
push 0x40af50
push dword [ebp - 0x2c]
call fcn.004c51f0
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, 0x40af50
push edi
call dword [sym.imp.WINHTTP.dll_WinHttpCloseHandle]
mov dword [ebp - 4], 0x6f
lea eax, [ebp - 0x34]
cmp dword [ebp - 0x3c], eax
je 0x4c1b00
push esi
push dword [ebp - 0x3c]
call fcn.004c51f0
pop ecx
pop ecx
mov dword [ebp - 4], 0x72
lea eax, [ebp - 0x44]
cmp dword [ebp - 0x4c], eax
je 0x4c1b1a
push esi
push dword [ebp - 0x4c]
call fcn.004c51f0
pop ecx
pop ecx
mov dword [ebp - 4], 0x75
lea eax, [ebp - 0x54]
cmp dword [ebp - 0x5c], eax
je 0x4c1b34
push esi
push dword [ebp - 0x5c]
call fcn.004c51f0
pop ecx
pop ecx
or dword [ebp - 4], 0xffffffff
mov eax, ebx
call fcn.004c5416
ret 8