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

Disassembly:
sub esp, 0x73c
push ebx
push ebp
mov ebp, dword [esp + 0x748]
xor ebx, ebx
cmp ebp, ebx
mov dword [esp + 0xc], ebx
jne 0x405504
pop ebp
xor eax, eax
pop ebx
add esp, 0x73c
ret
push edi
mov ecx, 0x81
xor eax, eax
lea edi, [esp + 0x542]
mov word [esp + 0x540], bx
push 0x104
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
lea eax, [esp + 0x544]
push eax
call fcn.00429fe0
mov ecx, eax
call fcn.00429fc0
mov ecx, 0x40
xor eax, eax
lea edi, [esp + 0x131]
mov byte [esp + 0x130], bl
rep stosd dword es:[edi], eax
push ebx
push ebx
stosw word es:[edi], ax
lea ecx, [esp + 0x138]
push 0x104
lea edx, [esp + 0x54c]
push ecx
push edx
stosb byte es:[edi], al
call dword [sym.imp.MSVCRT.dll_wcslen]
add esp, 4
push eax
lea eax, [esp + 0x554]
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 edi, eax
add esp, 4
cmp edi, ebx
mov dword [esp + 0xc], edi
je 0x405742
push esi
push ebx
push ebx
push ebx
push ebx
push ebx
call dword [sym.imp.WININET.dll_InternetOpenA]
mov esi, eax
cmp esi, ebx
mov dword [esp + 0x1c], esi
je 0x405738
push ebx
push ebx
push 3
push ebx
push ebx
lea edx, [esp + 0x34]
push 0x50
push edx
push esi
call dword [sym.imp.WININET.dll_InternetConnectA]
cmp eax, ebx
mov dword [esp + 0x18], eax
je 0x405731
mov ecx, 0x40
xor eax, eax
lea edi, [esp + 0x33d]
mov byte [esp + 0x33c], 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 + 0x239]
mov byte [esp + 0x238], 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 + 0x441]
mov byte [esp + 0x440], 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 + 0x31]
mov byte [esp + 0x30], bl
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
stosb byte es:[edi], al
lea eax, [esp + 0x30]
push 0x104
push eax
call fcn.00405450
mov eax, dword [ebp + 8]
mov esi, dword [sym.imp.MSVCRT.dll__itoa]
add esp, 8
lea ecx, [esp + 0x30]
lea edx, [esp + 0x440]
push 0x4418e8
push ecx
push 0xa
push edx
push eax
call esi
mov edx, dword [ebp + 4]
add esp, 0xc
lea ecx, [esp + 0x240]
push eax
push 0xa
push ecx
push edx
call esi
mov ecx, dword [ebp]
add esp, 0xc
push eax
lea eax, [esp + 0x34c]
push 0xa
push eax
push ecx
call esi
mov esi, dword [esp + 0x2c]
add esp, 0xc
lea edx, [esp + 0x144]
push eax
push edx
push 0x441b8c
push 0x1000
push esi
call fcn.0042b070
add esp, 0x24
mov edi, dword [esp + 0x18]
push ebx
push 0x4000000
push ebx
push ebx
push 0x441b80
push esi
push 0x441b7c
push edi
call dword [sym.imp.WININET.dll_HttpOpenRequestA]
mov esi, eax
cmp esi, ebx
je 0x405722
push ebx
push ebx
push ebx
push ebx
push esi
call dword [sym.imp.WININET.dll_HttpSendRequestA]
test eax, eax
je 0x40571b
mov dword [esp + 0x14], 1
push esi
call dword [sym.imp.WININET.dll_InternetCloseHandle]
push edi
call dword [sym.imp.WININET.dll_InternetCloseHandle]
mov edi, dword [esp + 0x10]
mov esi, dword [esp + 0x1c]
push esi
call dword [sym.imp.WININET.dll_InternetCloseHandle]
push edi
call fcn.0042a030
add esp, 4
pop esi
mov eax, dword [esp + 0x10]
pop edi
pop ebp
pop ebx
add esp, 0x73c
ret