Function at 0x405750
Capabilities:
Connect to http server
Create http request
Send data
Send http request

Disassembly:
sub esp, 0x75c
push ebx
push esi
mov esi, dword [esp + 0x768]
xor ebx, ebx
cmp esi, ebx
mov dword [esp + 8], ebx
jne 0x405774
pop esi
xor eax, eax
pop ebx
add esp, 0x75c
ret
push ebp
push edi
mov ecx, 0x81
xor eax, eax
lea edi, [esp + 0x566]
mov word [esp + 0x564], bx
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
lea eax, [esp + 0x564]
push 0x104
push eax
call fcn.00429fe0
mov ecx, eax
call fcn.00429fc0
mov ecx, 0x40
xor eax, eax
lea edi, [esp + 0x155]
mov byte [esp + 0x154], bl
rep stosd dword es:[edi], eax
push ebx
push ebx
stosw word es:[edi], ax
lea ecx, [esp + 0x15c]
push 0x104
lea edx, [esp + 0x570]
push ecx
push edx
stosb byte es:[edi], al
call dword [sym.imp.MSVCRT.dll_wcslen]
add esp, 4
push eax
lea eax, [esp + 0x578]
push eax
push ebx
push ebx
call dword [sym.imp.KERNEL32.dll_WideCharToMultiByte]
mov ecx, dword [0x441bc4]
mov edx, dword [0x441bc8]
mov eax, dword [0x441bcc]
mov dword [esp + 0x1c], ecx
mov cx, word [0x441bd0]
push 0x1000
mov dword [esp + 0x24], edx
mov dword [esp + 0x28], eax
mov word [esp + 0x2c], cx
call sub.MFC42.DLL_operatornew
mov ebp, eax
add esp, 4
cmp ebp, ebx
je 0x4059d1
push ebx
push ebx
push ebx
push ebx
push ebx
call dword [sym.imp.WININET.dll_InternetOpenA]
mov edi, eax
cmp edi, ebx
mov dword [esp + 0x14], edi
je 0x4059c8
push ebx
push ebx
push 3
push ebx
push ebx
lea edx, [esp + 0x30]
push 0x50
push edx
push edi
call dword [sym.imp.WININET.dll_InternetConnectA]
cmp eax, ebx
mov dword [esp + 0x18], eax
je 0x4059c1
mov ecx, 0x40
xor eax, eax
lea edi, [esp + 0x35d]
mov byte [esp + 0x35c], bl
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
stosb byte es:[edi], al
mov ecx, 0x40
xor eax, eax
lea edi, [esp + 0x461]
mov byte [esp + 0x460], bl
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
stosb byte es:[edi], al
mov ecx, 0x40
xor eax, eax
lea edi, [esp + 0x259]
mov byte [esp + 0x258], bl
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
stosb byte es:[edi], al
mov ecx, 0x40
xor eax, eax
lea edi, [esp + 0x51]
mov byte [esp + 0x50], bl
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
stosb byte es:[edi], al
lea eax, [esp + 0x50]
push 0x104
push eax
call fcn.00405450
mov ecx, 8
xor eax, eax
lea edi, [esp + 0x35]
mov byte [esp + 0x34], bl
rep stosd dword es:[edi], eax
lea ecx, [esp + 0x34]
push 0x21
push ecx
lea edx, [esi + 0x5c]
push 0x10
push edx
call fcn.004028e0
mov edx, dword [esi + 0xc]
mov edi, dword [sym.imp.MSVCRT.dll__itoa]
add esp, 0x18
lea eax, [esp + 0x50]
lea ecx, [esp + 0x460]
push 0x4418e8
push eax
push 0xa
push ecx
push edx
call edi
mov edx, dword [esi + 0x10]
add esp, 0xc
lea ecx, [esp + 0x260]
push eax
lea eax, [esp + 0x38]
push eax
push 0xa
push ecx
push edx
call edi
mov edx, dword [esi + 8]
add esp, 0xc
lea ecx, [esp + 0x36c]
push eax
lea eax, [esi + 0x1c]
push eax
push 0xa
push ecx
push edx
call edi
add esp, 0xc
push eax
lea eax, [esp + 0x170]
push eax
push 0x441bd4
push 0x1000
push ebp
call fcn.0042b070
add esp, 0x2c
mov edi, dword [esp + 0x18]
push ebx
push 0x4000000
push ebx
push ebx
push 0x441b80
push ebp
push 0x441b7c
push edi
call dword [sym.imp.WININET.dll_HttpOpenRequestA]
mov esi, eax
cmp esi, ebx
je 0x4059b6
push ebx
push ebx
push ebx
push ebx
push esi
call dword [sym.imp.WININET.dll_HttpSendRequestA]
test eax, eax
je 0x4059af
mov dword [esp + 0x10], 1
push esi
call dword [sym.imp.WININET.dll_InternetCloseHandle]
push edi
call dword [sym.imp.WININET.dll_InternetCloseHandle]
mov edi, dword [esp + 0x14]
push edi
call dword [sym.imp.WININET.dll_InternetCloseHandle]
push ebp
call fcn.0042a030
add esp, 4
mov eax, dword [esp + 0x10]
pop edi
pop ebp
pop esi
pop ebx
add esp, 0x75c
ret