Function at 0x403990
Capabilities:
Check http status code
Connect to http server
Create http request
Parse url
Query remote server for available data
Send data
Send http request

Disassembly:
sub esp, 0x7c
push ebx
push ebp
push esi
push edi
lea eax, [esp + 0x50]
push 0x3c
push eax
call fcn.00404400
add esp, 8
lea ecx, [esp + 0x50]
push ecx
xor ebx, ebx
push ebx
lea ecx, [esp + 0x98]
mov dword [esp + 0x58], 0x3c
call fcn.00404420
push eax
lea ecx, [esp + 0x9c]
call fcn.004047a0
mov esi, dword [sym.imp.WININET.dll_InternetCrackUrlA]
push eax
call esi
test eax, eax
je 0x403d54
mov eax, 0x8000
push eax
mov dword [esp + 0x8c], eax
mov dword [esp + 0x68], eax
mov dword [esp + 0x5c], eax
mov dword [esp + 0x84], eax
call fcn.00404320
mov edx, dword [esp + 0x68]
push edx
mov dword [esp + 0x8c], eax
call fcn.00404320
mov dword [esp + 0x68], eax
mov eax, dword [esp + 0x60]
push eax
call fcn.00404320
mov ecx, dword [esp + 0x8c]
push ecx
mov dword [esp + 0x64], eax
call fcn.00404320
add esp, 0x10
lea edx, [esp + 0x50]
push edx
push ebx
lea ecx, [esp + 0x98]
mov dword [esp + 0x84], eax
call fcn.00404420
push eax
lea ecx, [esp + 0x9c]
call fcn.004047a0
push eax
call esi
test eax, eax
jne 0x403a97
mov eax, dword [esp + 0x84]
push eax
call fcn.00404340
mov ecx, dword [esp + 0x64]
push ecx
call fcn.00404340
mov edx, dword [esp + 0x5c]
push edx
call fcn.00404340
mov eax, dword [esp + 0x88]
push eax
call fcn.00404340
add esp, 0x10
jmp 0x403d54
mov ecx, dword [esp + 0x84]
push ecx
lea ecx, [esp + 0x20]
call fcn.00404880
mov edx, dword [esp + 0x60]
push edx
lea ecx, [esp + 0x1c]
call fcn.00404880
mov eax, dword [esp + 0x54]
push eax
lea ecx, [esp + 0x28]
call fcn.00404880
mov ecx, dword [esp + 0x7c]
push ecx
lea ecx, [esp + 0x18]
call fcn.00404880
mov edx, dword [esp + 0x84]
push edx
call fcn.00404340
mov eax, dword [esp + 0x64]
push eax
call fcn.00404340
mov ecx, dword [esp + 0x5c]
push ecx
call fcn.00404340
mov edx, dword [esp + 0x88]
push edx
call fcn.00404340
add esp, 0x10
push ebx
push ebx
push ebx
push ebx
push ebx
call dword [sym.imp.WININET.dll_InternetOpenA]
mov ebp, eax
cmp ebp, ebx
mov dword [esp + 0x44], ebp
je 0x403d30
push ebx
push ebx
push 3
push ebx
push ebx
push 0x50
lea ecx, [esp + 0x30]
call fcn.004047a0
push eax
push ebp
call dword [sym.imp.WININET.dll_InternetConnectA]
mov esi, eax
cmp esi, ebx
mov dword [esp + 0x40], esi
jne 0x403b4b
push ebp
call dword [sym.imp.WININET.dll_InternetCloseHandle]
jmp 0x403d30
lea ecx, [esp + 0x10]
call fcn.004047b0
mov al, byte [esp + 0x9c]
test al, al
jne 0x403b73
xor eax, eax
mov al, byte [0x408640]
lea ecx, [esp + 0x38]
push eax
push 0x4066c0
push ecx
jmp 0x403b8a
cmp al, 1
jne 0x403bac
xor edx, edx
mov dl, byte [0x408640]
lea eax, [esp + 0x38]
push edx
push 0x4066b4
push eax
call fcn.00403460
mov ecx, eax
add esp, 0xc
call fcn.004047a0
lea ecx, [esp + 0x10]
push eax
call fcn.00404b60
lea ecx, [esp + 0x38]
call fcn.00404930
xor ecx, ecx
mov cl, byte [0x408640]
lea edx, [esp + 0x38]
push ecx
push 0x4066a4
push edx
call fcn.00403460
add esp, 0xc
mov ecx, eax
call fcn.004047a0
push eax
lea ecx, [esp + 0x2c]
call fcn.00404880
lea ecx, [esp + 0x38]
call fcn.00404930
lea ecx, [esp + 0x28]
call fcn.004047a0
mov dword [esp + 0x48], eax
xor eax, eax
mov al, byte [0x408640]
lea ecx, [esp + 0x38]
mov dword [esp + 0x4c], ebx
push eax
push 0x406670
push ecx
call fcn.00403460
add esp, 0xc
mov ecx, eax
call fcn.004047a0
push eax
lea ecx, [esp + 0x24]
call fcn.00404880
lea ecx, [esp + 0x38]
call fcn.00404930
push ebx
push 0x84000100
lea edx, [esp + 0x50]
push edx
push ebx
push ebx
push ecx
lea eax, [esp + 0x34]
mov ecx, esp
push eax
call fcn.00404820
lea ecx, [esp + 0x50]
push ecx
lea ecx, [esp + 0x30]
call fcn.00404af0
mov ecx, eax
call fcn.004047a0
push eax
lea ecx, [esp + 0x28]
call fcn.004047a0
push eax
push esi
call dword [sym.imp.WININET.dll_HttpOpenRequestA]
lea ecx, [esp + 0x38]
mov edi, eax
call fcn.00404930
cmp edi, ebx
jne 0x403c87
push esi
mov esi, dword [sym.imp.WININET.dll_InternetCloseHandle]
call esi
push ebp
call esi
jmp 0x403d15
mov al, byte [esp + 0x9c]
test al, al
jne 0x403c98
xor ecx, ecx
xor eax, eax
jmp 0x403cb8
lea ecx, [esp + 0xa0]
call fcn.00404420
lea ecx, [esp + 0xa0]
mov dword [esp + 0x38], eax
call fcn.004047a0
mov ecx, dword [esp + 0x38]
push ecx
push eax
lea ecx, [esp + 0x28]
call fcn.00404420
push eax
lea ecx, [esp + 0x2c]
call fcn.004047a0
push eax
push edi
call dword [sym.imp.WININET.dll_HttpSendRequestA]
test eax, eax
je 0x403d06
push ebx
lea edx, [esp + 0x40]
push edx
lea eax, [esp + 0x38]
push eax
push 0x20000013
push edi
mov dword [esp + 0x44], ebx
mov dword [esp + 0x50], 4
call dword [sym.imp.WININET.dll_HttpQueryInfoA]
cmp dword [esp + 0x30], 0xc8
je 0x403d76
push edi
mov edi, dword [sym.imp.WININET.dll_InternetCloseHandle]
call edi
push esi
call edi
push ebp
call edi
lea ecx, [esp + 0x20]
call fcn.00404930
lea ecx, [esp + 0x28]
call fcn.00404930
lea ecx, [esp + 0x10]
call fcn.00404930
lea ecx, [esp + 0x14]
call fcn.00404930
lea ecx, [esp + 0x24]
call fcn.00404930
lea ecx, [esp + 0x18]
call fcn.00404930
lea ecx, [esp + 0x1c]
call fcn.00404930
lea ecx, [esp + 0x90]
call fcn.00404930
lea ecx, [esp + 0xa0]
call fcn.00404930
xor eax, eax
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x7c
ret
xor ecx, ecx
mov cl, byte [0x408640]
lea edx, [esp + 0x34]
mov dword [esp + 0x2c], ebx
mov dword [esp + 0x38], ebx
push ecx
push 0x406488
push edx
call fcn.00403460
add esp, 0xc
mov ecx, eax
call fcn.004047a0
push eax
call fcn.00405290
add esp, 4
lea ecx, [esp + 0x34]
mov esi, eax
call fcn.00404930
xor eax, eax
mov al, byte [0x408640]
lea ecx, [esp + 0x34]
push eax
push 0x40645c
push ecx
call fcn.00403460
add esp, 0xc
mov ecx, eax
call fcn.004047a0
push eax
push esi
call dword [sym.imp.KERNEL32.DLL_GetProcAddress]
lea ecx, [esp + 0x34]
mov ebx, eax
call fcn.00404930
xor ebp, ebp
push ebp
push ebp
call dword [sym.imp.KERNEL32.DLL_GetProcessHeap]
push eax
call dword [sym.imp.KERNEL32.DLL_HeapAlloc]
push ebp
push ebp
lea edx, [esp + 0x34]
push edx
push edi
mov esi, eax
call dword [sym.imp.WININET.dll_InternetQueryDataAvailable]
test eax, eax
je 0x403e78
lea ecx, [ecx]
mov eax, dword [esp + 0x2c]
test eax, eax
je 0x403e78
add eax, ebp
push eax
push esi
push 0
mov dword [esp + 0x40], 0
call dword [sym.imp.KERNEL32.DLL_GetProcessHeap]
push eax
call dword [sym.imp.KERNEL32.DLL_HeapReAlloc]
mov edx, dword [esp + 0x2c]
lea ecx, [esp + 0x34]
push ecx
mov esi, eax
push edx
lea eax, [esi + ebp]
push eax
push edi
call ebx
test eax, eax
je 0x403e4e
add ebp, dword [esp + 0x34]
mov eax, dword [esp + 0x38]
inc eax
cmp eax, 0x64
mov dword [esp + 0x38], eax
jg 0x403e78
push 0xa
call dword [sym.imp.KERNEL32.DLL_Sleep]
push 0
push 0
lea ecx, [esp + 0x34]
push ecx
push edi
call dword [sym.imp.WININET.dll_InternetQueryDataAvailable]
test eax, eax
jne 0x403e10
mov edx, dword [esp + 0x94]
mov eax, dword [esp + 0x98]
mov dword [edx], esi
mov esi, dword [sym.imp.WININET.dll_InternetCloseHandle]
push edi
mov dword [eax], ebp
call esi
mov ecx, dword [esp + 0x40]
push ecx
call esi
mov edx, dword [esp + 0x44]
push edx
call esi
lea ecx, [esp + 0x20]
call fcn.00404930
lea ecx, [esp + 0x28]
call fcn.00404930
lea ecx, [esp + 0x10]
call fcn.00404930
lea ecx, [esp + 0x14]
call fcn.00404930
lea ecx, [esp + 0x24]
call fcn.00404930
lea ecx, [esp + 0x18]
call fcn.00404930
lea ecx, [esp + 0x1c]
call fcn.00404930
lea ecx, [esp + 0x90]
call fcn.00404930
lea ecx, [esp + 0xa0]
call fcn.00404930
pop edi
pop esi
pop ebp
mov eax, 1
pop ebx
add esp, 0x7c
ret