Function at 0x41b46c
Capabilities:
Initialize winhttp library
Prepare http request
Receive http response

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x24
mov dword [ebp - 0x24], 0
mov dword [ebp - 0x20], 0
mov dword [ebp - 0x1c], 0
mov dword [ebp - 8], 0
push ebx
mov dword [ebp - 0x10], 0
mov dword [ebp - 8], 0
push 0
push 0
push 0
push 1
push 0x42b658
call dword [sym.imp.WINHTTP.DLL_WinHttpOpen]
mov dword [ebp - 0x24], eax
test eax, eax
jne 0x41b4d3
push 0
push 0x41b756
push 0x41b736
push dword [0x4251e8]
call fcn.00407edb
jmp 0x41b6ca
push 0
push 0
push 0x41b724
push dword [ebp - 0x24]
call dword [sym.imp.WINHTTP.DLL_WinHttpConnect]
mov dword [ebp - 0x20], eax
test eax, eax
jne 0x41b50b
push 0x41b724
push 0x41b76e
push 0x41b736
push dword [0x4251e8]
call fcn.00407edb
jmp 0x41b6ca
push 0
push 0x41b706
push 0
push 0
push dword [0x431388]
push 0x41b6fe
push dword [ebp - 0x20]
call dword [sym.imp.WINHTTP.DLL_WinHttpOpenRequest]
mov dword [ebp - 0x1c], eax
test eax, eax
jne 0x41b551
push dword [0x431388]
push 0x41b78c
push 0x41b736
push dword [0x4251e8]
call fcn.00407edb
jmp 0x41b6ca
push 0
push 0
push 0
push 0
push 0
push 0
push dword [ebp - 0x1c]
call dword [sym.imp.WINHTTP.DLL_WinHttpSendRequest]
mov dword [ebp - 0x18], eax
test eax, eax
jne 0x41b58c
push 0x41b724
push 0x41b7b2
push 0x41b736
push dword [0x4251e8]
call fcn.00407edb
jmp 0x41b6ca
push 0
push dword [ebp - 0x1c]
call dword [sym.imp.WINHTTP.DLL_WinHttpReceiveResponse]
mov dword [ebp - 0x18], eax
test eax, eax
jne 0x41b5ba
push 0
push 0x41b7d8
push 0x41b736
push dword [0x4251e8]
call fcn.00407edb
jmp 0x41b6ca
mov dword [ebp - 8], 0
mov dword [ebp - 0xc], 8
push dword [ebp - 0xc]
push 0x42
call dword [sym.imp.KERNEL32.DLL_LocalAlloc]
test eax, eax
jne 0x41b5f3
push 0
push 0x41b83a
push 0x41b736
push dword [0x4251e8]
call fcn.00407edb
jmp 0x41b6ca
mov dword [ebp - 0x10], eax
lea ebx, [ebp - 0x14]
mov dword [ebx], 0
push ebx
push dword [ebp - 0x1c]
call dword [sym.imp.WINHTTP.DLL_WinHttpQueryDataAvailable]
test eax, eax
jne 0x41b629
push 0
push 0x41b806
push 0x41b736
push dword [0x4251e8]
call fcn.00407edb
jmp 0x41b6ca
mov eax, dword [ebx]
add eax, dword [ebp - 0xc]
mov dword [ebp - 0xc], eax
push 0x42
push eax
push dword [ebp - 0x10]
call dword [sym.imp.KERNEL32.DLL_LocalReAlloc]
test eax, eax
jne 0x41b663
push 0
push 0x41b850
push 0x41b736
push dword [0x4251e8]
call fcn.00407edb
push dword [ebp - 0x10]
call dword [sym.imp.KERNEL32.DLL_LocalFree]
jmp 0x41b6ca
mov dword [ebp - 0x10], eax
push dword [ebp - 0x10]
call dword [sym.imp.KERNEL32.DLL_LocalLock]
add eax, dword [ebp - 8]
lea ecx, [ebp - 4]
push ecx
push dword [ebx]
push eax
push dword [ebp - 0x1c]
call dword [sym.imp.WINHTTP.DLL_WinHttpReadData]
test eax, eax
jne 0x41b6b1
push 0
push 0x41b86a
push 0x41b736
push dword [0x4251e8]
call fcn.00407edb
push dword [ebp - 0x10]
call dword [sym.imp.KERNEL32.DLL_LocalUnlock]
push dword [ebp - 0x10]
call dword [sym.imp.KERNEL32.DLL_LocalFree]
jmp 0x41b6ca
push dword [ebp - 0x10]
call dword [sym.imp.KERNEL32.DLL_LocalUnlock]
mov eax, dword [ebp - 4]
add dword [ebp - 8], eax
mov eax, dword [ebx]
test eax, eax
jne 0x41b5f9
mov eax, dword [ebp - 0x1c]
test eax, eax
je 0x41b6d8
push eax
call dword [sym.imp.WINHTTP.DLL_WinHttpCloseHandle]
mov eax, dword [ebp - 0x20]
test eax, eax
je 0x41b6e6
push eax
call dword [sym.imp.WINHTTP.DLL_WinHttpCloseHandle]
mov eax, dword [ebp - 0x24]
test eax, eax
je 0x41b6f4
push eax
call dword [sym.imp.WINHTTP.DLL_WinHttpCloseHandle]
pop ebx
mov eax, dword [ebp - 0x10]
mov edx, dword [ebp - 8]
leave
ret