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

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x28
mov eax, dword [0x5c0290]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 0x1c]
push ebx
mov ebx, dword [ebp + 0x2c]
push esi
mov esi, dword [ebp + 0x18]
push edi
xor edi, edi
mov dword [ebp - 0x24], eax
mov eax, dword [ebp + 0x20]
push edi
push edi
push edi
push edi
push dword [0x5c4300]
mov dword [ebp - 0x18], eax
mov eax, dword [ebp + 0x28]
mov dword [ebp - 0x1c], eax
call dword [sym.imp.WINHTTP.dll_WinHttpOpen]
mov dword [ebp - 0x28], eax
test eax, eax
jne 0x483781
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov edi, eax
jmp 0x4838eb
push 0
push 0
push dword [ebp + 8]
push eax
call dword [sym.imp.WINHTTP.dll_WinHttpConnect]
mov ecx, eax
mov dword [ebp - 0x20], ecx
test ecx, ecx
jne 0x4837ab
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov esi, dword [sym.imp.WINHTTP.dll_WinHttpCloseHandle]
mov edi, eax
jmp 0x4838e6
cmp dword [ebp + 0x14], edi
mov edx, 0x800100
mov eax, 0x100
cmovne eax, edx
push eax
push esi
push 0
push 0
push dword [ebp + 0xc]
push dword [ebp + 0x10]
push ecx
call dword [sym.imp.WINHTTP.dll_WinHttpOpenRequest]
mov esi, eax
test esi, esi
je 0x4838c4
mov ecx, dword [ebp + 0x24]
push 0
push ecx
push ecx
push dword [ebp - 0x18]
push 0xffffffffffffffff
push dword [ebp - 0x24]
push esi
call dword [sym.imp.WINHTTP.dll_WinHttpSendRequest]
test eax, eax
je 0x4838c4
push 0
push esi
call dword [sym.imp.WINHTTP.dll_WinHttpReceiveResponse]
test eax, eax
je 0x4838c4
push 0
lea eax, [ebp - 0x14]
mov dword [ebp - 0x14], 4
push eax
lea eax, [ebp - 0xc]
mov dword [ebp - 0xc], edi
push eax
push 0
push 0x20000013
push esi
call dword [sym.imp.WINHTTP.dll_WinHttpQueryHeaders]
test eax, eax
je 0x4838c4
cmp dword [ebp - 0xc], 0xc8
je 0x483844
mov edi, 1
jmp 0x4838cc
push 0
lea eax, [ebp - 0x14]
mov dword [ebp - 0x14], 4
push eax
push ebx
push 0
push 0x20000005
push esi
call dword [sym.imp.WINHTTP.dll_WinHttpQueryHeaders]
test eax, eax
je 0x4838c4
mov eax, dword [ebx]
test eax, eax
je 0x4838cc
push eax
mov dword [ebp - 0x14], edi
mov dword [ebp - 8], edi
mov dword [ebp - 0x10], edi
call fcn.0053ac46
mov edi, dword [ebp - 0x1c]
mov dword [edi], eax
push dword [ebx]
push 0
push eax
call fcn.0053e0b0
mov ebx, dword [sym.imp.WINHTTP.dll_WinHttpQueryDataAvailable]
add esp, 0x10
lea eax, [ebp - 8]
push eax
push esi
call ebx
test eax, eax
je 0x4838ba
lea eax, [ebp - 0x10]
push eax
push dword [ebp - 8]
mov eax, dword [edi]
add eax, dword [ebp - 0x14]
push eax
push esi
call dword [sym.imp.WINHTTP.dll_WinHttpReadData]
test eax, eax
je 0x4838ba
mov eax, dword [ebp - 0x10]
add dword [ebp - 0x14], eax
cmp dword [ebp - 8], 0
jne 0x483891
xor edi, edi
jmp 0x4838cc
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov edi, eax
test esi, esi
je 0x4838db
push esi
mov esi, dword [sym.imp.WINHTTP.dll_WinHttpCloseHandle]
call esi
jmp 0x4838e1
mov esi, dword [sym.imp.WINHTTP.dll_WinHttpCloseHandle]
push dword [ebp - 0x20]
call esi
push dword [ebp - 0x28]
call esi
mov edx, dword [ebp + 8]
or esi, 0xffffffff
add edx, 0xfffffff0
mov eax, esi
lea ecx, [edx + 0xc]
lock xadd dword [ecx], eax
dec eax
test eax, eax
jg 0x48390a
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
mov edx, dword [ebp + 0xc]
mov ecx, esi
add edx, 0xfffffff0
lea eax, [edx + 0xc]
lock xadd dword [eax], ecx
dec ecx
test ecx, ecx
jg 0x483926
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
mov edx, dword [ebp + 0x10]
add edx, 0xfffffff0
lea eax, [edx + 0xc]
lock xadd dword [eax], esi
dec esi
test esi, esi
jg 0x483940
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
mov ecx, dword [ebp - 4]
mov eax, edi
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.0053d3a0
mov esp, ebp
pop ebp
ret