Function at 0x40b377
Capabilities:
Check http status code
Connect to http server
Create http request
Read data from internet
Receive data
Send data
Send http request

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x24
push ebx
xor ebx, ebx
cmp dword [ebp + 8], ebx
push esi
push edi
mov dword [ebp - 0xc], ebx
mov dword [ebp - 0x10], ebx
mov dword [ebp - 0x14], ebx
mov dword [ebp - 8], ebx
mov dword [ebp - 0x24], ebx
je 0x40b3f4
push ebx
push ebx
push ebx
push ebx
push ebx
call dword [sym.imp.WININET.dll_InternetOpenA]
cmp eax, ebx
mov dword [ebp - 0x20], eax
jne 0x40b3b0
call dword [sym.imp.KERNEL32.dll_GetLastError]
jmp 0x40b3f4
push dword [ebp + 8]
mov edi, dword [sym.imp.KERNEL32.dll_lstrlenA]
call edi
mov esi, dword [sym.imp.KERNEL32.dll_GetProcessHeap]
shl eax, 1
push eax
push 8
mov dword [ebp - 0x14], eax
call esi
push eax
call dword [sym.imp.KERNEL32.dll_HeapAlloc]
lea ecx, [ebp - 0x14]
push ebx
push ecx
push eax
push dword [ebp + 8]
mov dword [ebp - 4], eax
call dword [sym.imp.WININET.dll_InternetCanonicalizeUrlA]
push dword [ebp - 4]
call fcn.0040bc93
cmp eax, ebx
pop ecx
mov dword [ebp - 0x18], eax
jne 0x40b3fb
xor eax, eax
jmp 0x40b5c9
cmp dword [ebp - 4], ebx
je 0x40b410
push dword [ebp - 4]
push ebx
call esi
push eax
call dword [sym.imp.KERNEL32.dll_HeapFree]
mov dword [ebp - 4], ebx
mov eax, dword [ebp - 0x18]
push ebx
push ebx
push 3
push ebx
push ebx
push 0x50
push dword [eax + 0x10]
push dword [ebp - 0x20]
call dword [sym.imp.WININET.dll_InternetConnectA]
cmp eax, ebx
mov dword [ebp - 0x1c], eax
jne 0x40b43d
call dword [sym.imp.KERNEL32.dll_GetLastError]
or dword [ebp - 0x10], 0xffffffff
jmp 0x40b58c
mov ecx, dword [ebp - 0x18]
push ebx
push 0x44000100
push ebx
push ebx
push ebx
push dword [ecx + 0x2c]
push 0x402e8c
push eax
call dword [sym.imp.WININET.dll_HttpOpenRequestA]
cmp eax, ebx
mov dword [ebp - 0xc], eax
je 0x40b42e
push dword [ebp + 0xc]
call fcn.0040b30b
mov dword [ebp + 8], eax
mov eax, dword [ebp + 0x10]
cmp eax, ebx
pop ecx
jne 0x40b477
call fcn.004094a9
push dword [ebp + 8]
mov dword [ebp + 0xc], eax
call edi
push eax
push dword [ebp + 0xc]
push 0x4039c0
call fcn.0040934d
push dword [0x412628]
mov dword [ebp + 0xc], eax
push dword [ebp - 0xc]
call fcn.0040b196
add esp, 0x14
push dword [ebp + 8]
call edi
push eax
push dword [ebp + 8]
push dword [ebp + 0xc]
call edi
push eax
push dword [ebp + 0xc]
push dword [ebp - 0xc]
call dword [sym.imp.WININET.dll_HttpSendRequestA]
cmp dword [ebp + 8], ebx
mov dword [ebp - 8], eax
je 0x40b4d1
push dword [ebp + 8]
push ebx
call esi
push eax
call dword [sym.imp.KERNEL32.dll_HeapFree]
cmp dword [ebp + 0xc], ebx
je 0x40b4e3
push dword [ebp + 0xc]
push ebx
call esi
push eax
call dword [sym.imp.KERNEL32.dll_HeapFree]
cmp dword [ebp - 8], ebx
je 0x40b42e
lea eax, [ebp - 0x14]
push ebx
push eax
lea eax, [ebp - 8]
push eax
push 0x20000013
push dword [ebp - 0xc]
mov dword [ebp - 8], ebx
mov dword [ebp - 0x14], 4
call dword [sym.imp.WININET.dll_HttpQueryInfoA]
cmp dword [ebp - 8], 0xc8
je 0x40b524
cmp dword [ebp - 8], 0x194
je 0x40b58c
jmp 0x40b434
cmp dword [ebp - 4], ebx
je 0x40b536
push dword [ebp - 4]
push ebx
call esi
push eax
call dword [sym.imp.KERNEL32.dll_HeapFree]
mov eax, 0x1000
push eax
push 8
mov dword [ebp - 0x14], eax
call esi
push eax
call dword [sym.imp.KERNEL32.dll_HeapAlloc]
lea ecx, [ebp - 0x24]
mov dword [ebp - 4], eax
push ecx
push dword [ebp - 0x14]
push eax
push dword [ebp - 0xc]
call dword [sym.imp.WININET.dll_InternetReadFile]
cmp eax, ebx
mov dword [ebp - 8], eax
je 0x40b434
push dword [ebp + 0x2c]
push dword [ebp + 0x28]
push dword [ebp + 0x24]
push dword [ebp + 0x20]
push dword [ebp + 0x1c]
push dword [ebp + 0x18]
push dword [ebp + 0x14]
push dword [ebp - 4]
call fcn.0040b231
add esp, 0x20
mov dword [ebp - 0x10], eax
push dword [ebp - 0x18]
call fcn.0040bd40
cmp dword [ebp - 4], ebx
pop ecx
je 0x40b5a7
push dword [ebp - 4]
push ebx
call esi
push eax
call dword [sym.imp.KERNEL32.dll_HeapFree]
cmp dword [ebp - 0xc], ebx
mov esi, dword [sym.imp.WININET.dll_InternetCloseHandle]
je 0x40b5b7
push dword [ebp - 0xc]
call esi
cmp dword [ebp - 0x1c], ebx
je 0x40b5c1
push dword [ebp - 0x1c]
call esi
push dword [ebp - 0x20]
call esi
mov eax, dword [ebp - 0x10]
pop edi
pop esi
pop ebx
leave
ret