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

Disassembly:
push ebp
mov ebp, esp
push ecx
mov ecx, 0x243
push 0
push 0
dec ecx
jne 0x46f9d9
push ecx
xchg dword [ebp - 4], ecx
push ebx
push esi
mov dword [ebp - 8], ecx
mov dword [ebp - 4], edx
mov ebx, eax
mov eax, dword [ebp - 4]
call fcn.00404f44
mov eax, dword [ebp - 8]
call fcn.00404f44
mov eax, dword [ebp + 0xc]
call fcn.00404f44
xor eax, eax
push ebp
push 0x4701f8
push dword fs:[eax]
mov dword fs:[eax], esp
mov byte [ebp - 9], 0
lea eax, [ebp - 0x18]
mov edx, dword [ebp - 4]
call fcn.00404b2c
mov edx, 0x102
mov eax, dword [ebx + 0x64]
call fcn.0043f63c
mov edx, dword [0x481668]
mov eax, dword [ebx + 0x64]
call fcn.0043f5e8
mov dl, 1
mov eax, dword [ebx + 0x64]
call fcn.0043f3ac
lea edx, [ebp - 0x14]
mov eax, dword [ebp - 4]
call fcn.0046ef68
lea ecx, [ebp - 0x11ac]
mov edx, dword [ebp - 4]
mov eax, ebx
call fcn.0046f694
mov edx, dword [ebp - 0x11ac]
lea eax, [ebp - 4]
call fcn.00404b2c
mov eax, dword [ebx + 0x94]
call fcn.0041ab50
dec eax
jle 0x46fae4
lea edx, [ebp - 0x11b4]
mov eax, dword [ebx + 0x34]
call fcn.00408eb0
push dword [ebp - 0x11b4]
push 0x470214
push dword [ebx + 0xfc]
push 0x470214
mov eax, dword [ebx + 0x94]
call fcn.00475324
lea edx, [ebp - 0x11b8]
call fcn.00408eb0
push dword [ebp - 0x11b8]
push 0x470220
lea eax, [ebp - 0x11b0]
mov edx, 6
call fcn.00404e14
mov edx, dword [ebp - 0x11b0]
mov eax, dword [ebx + 0x48]
call fcn.0044c614
jmp 0x46faee
xor edx, edx
mov eax, dword [ebx + 0x48]
call fcn.0044c614
cmp byte [ebx + 0x10d], 0
je 0x46fb5d
push dword [ebx + 0x78]
push 0x470214
lea edx, [ebp - 0x11c0]
mov esi, dword [ebx + 0x48]
mov eax, esi
call fcn.0044c5e4
push dword [ebp - 0x11c0]
push dword [ebp - 0x14]
push 0x470214
push dword [ebx + 0x100]
push 0x470214
lea ecx, [ebp - 0x11c4]
mov edx, dword [ebp - 4]
mov eax, ebx
call fcn.0046f794
push dword [ebp - 0x11c4]
lea eax, [ebp - 0x11bc]
mov edx, 8
call fcn.00404e14
mov edx, dword [ebp - 0x11bc]
mov eax, esi
call fcn.0044c614
jmp 0x46fb9b
push dword [ebx + 0x78]
push 0x470214
lea edx, [ebp - 0x11cc]
mov esi, dword [ebx + 0x48]
mov eax, esi
call fcn.0044c5e4
push dword [ebp - 0x11cc]
push dword [ebp - 0x14]
lea eax, [ebp - 0x11c8]
mov edx, 4
call fcn.00404e14
mov edx, dword [ebp - 0x11c8]
mov eax, esi
call fcn.0044c614
cmp dword [ebp + 0xc], 0
je 0x46fbae
lea eax, [ebp - 0x14]
mov edx, dword [ebp + 0xc]
call fcn.00404b2c
jmp 0x46fbb9
lea edx, [ebp - 0x14]
mov eax, dword [ebp - 4]
call fcn.0046ef68
lea ecx, [ebp - 0x11d0]
mov edx, dword [ebp - 0x14]
mov eax, dword [ebp - 8]
call fcn.0046f45c
mov edx, dword [ebp - 0x11d0]
lea eax, [ebp - 0x14]
call fcn.00404b2c
mov eax, dword [ebp - 0x14]
call fcn.004093c4
test al, al
je 0x470172
mov eax, dword [0x480798]
mov eax, dword [eax]
call fcn.0046bfc0
lea ecx, [ebp - 0x1c]
mov edx, dword [ebp - 4]
mov eax, ebx
call fcn.0046f794
lea ecx, [ebp - 0x11d4]
mov edx, dword [ebp - 4]
mov eax, ebx
call fcn.0046f8b4
mov edx, dword [ebp - 0x11d4]
lea eax, [ebp - 4]
call fcn.00404b2c
push 0
push 0
push 3
push 0
push 0
push 0x50
mov eax, dword [ebp - 0x1c]
call fcn.00404f54
push eax
mov eax, dword [ebx + 0x98]
push eax
call sub.wininet.dll_InternetConnectA
mov dword [ebp - 0x24], eax
cmp byte [ebp + 8], 0
jne 0x46fc72
push 0
push 0x4000000
push 0
push 0
push 0
mov eax, dword [ebp - 4]
call fcn.00404f54
push eax
push 0x470224
mov eax, dword [ebp - 0x24]
push eax
call sub.wininet.dll_HttpOpenRequestA
mov dword [ebp - 0x28], eax
jmp 0x46fc99
push 0
push 0x4000000
push 0
push 0
push 0
mov eax, dword [ebp - 4]
call fcn.00404f54
push eax
push 0x47022c
mov eax, dword [ebp - 0x24]
push eax
call sub.wininet.dll_HttpOpenRequestA
mov dword [ebp - 0x28], eax
cmp dword [ebp - 0x28], 0
jne 0x46fcfc
cmp word [ebx + 0xa2], 0
je 0x46fcbc
mov ecx, 6
mov edx, ebx
mov eax, dword [ebx + 0xa4]
call dword [ebx + 0xa0]
cmp word [ebx + 0xaa], 0
je 0x470172
lea eax, [ebp - 0x11d8]
mov ecx, dword [ebp - 0x1c]
mov edx, 0x470238
call fcn.00404da0
mov eax, dword [ebp - 0x11d8]
push eax
mov ecx, 6
mov edx, ebx
mov eax, dword [ebx + 0xac]
call dword [ebx + 0xa8]
jmp 0x470172
mov dword [ebp - 0x10], 0x1000
cmp dword [ebp - 0x28], 0
je 0x470172
mov edx, dword [ebp - 0x14]
lea eax, [ebp - 0x1180]
call fcn.004031bc
mov edx, 1
lea eax, [ebp - 0x1180]
call fcn.00403630
call fcn.00402c4c
lea eax, [ebp - 0x1180]
call fcn.004034bc
call fcn.00402c4c
mov dword [ebp - 0x20], eax
mov dword [ebp - 0x10], 0x1000
xor esi, esi
lea eax, [ebp - 0x11a8]
xor ecx, ecx
mov edx, 0x28
call fcn.00403508
mov dword [ebp - 0x11a8], 0x28
mov eax, dword [ebp - 0x20]
mov dword [ebp - 0x118c], eax
push 0
push 8
push 0
lea eax, [ebp - 0x11a8]
push eax
mov eax, dword [ebp - 0x28]
push eax
call sub.wininet.dll_HttpSendRequestExA
test eax, eax
jne 0x46fe09
call sub.kernel32.dll_GetLastError_1
mov dword [ebp - 0x34], eax
lea eax, [ebp - 0x1180]
call fcn.00403354
call fcn.00402c4c
mov eax, dword [ebp - 0x28]
push eax
call sub.wininet.dll_InternetCloseHandle
mov eax, dword [ebp - 0x24]
push eax
call sub.wininet.dll_InternetCloseHandle
cmp word [ebx + 0xa2], 0
je 0x46fdd0
mov ecx, dword [ebp - 0x34]
mov edx, ebx
mov eax, dword [ebx + 0xa4]
call dword [ebx + 0xa0]
cmp word [ebx + 0xaa], 0
je 0x470172
lea edx, [ebp - 0x11dc]
mov eax, dword [ebp - 0x34]
call fcn.0046f614
mov eax, dword [ebp - 0x11dc]
push eax
mov ecx, dword [ebp - 0x34]
mov edx, ebx
mov eax, dword [ebx + 0xac]
call dword [ebx + 0xa8]
jmp 0x470172
call sub.kernel32.dll_GetTickCount
mov dword [ebp - 0x30], eax
jmp 0x4700d0
lea eax, [ebp - 0x10]
push eax
lea edx, [ebp - 0x1034]
mov ecx, 0x1000
lea eax, [ebp - 0x1180]
call fcn.00403314
call fcn.00402c4c
lea eax, [ebp - 0x2c]
push eax
mov eax, dword [ebp - 0x10]
push eax
lea eax, [ebp - 0x1034]
push eax
mov eax, dword [ebp - 0x28]
push eax
call sub.wininet.dll_InternetWriteFile
test eax, eax
jne 0x46fead
call sub.kernel32.dll_GetLastError_1
mov dword [ebp - 0x34], eax
cmp word [ebx + 0xa2], 0
je 0x46fe74
mov ecx, dword [ebp - 0x34]
mov edx, ebx
mov eax, dword [ebx + 0xa4]
call dword [ebx + 0xa0]
cmp word [ebx + 0xaa], 0
je 0x4700e3
lea edx, [ebp - 0x11e0]
mov eax, dword [ebp - 0x34]
call fcn.0046f614
mov eax, dword [ebp - 0x11e0]
push eax
mov ecx, dword [ebp - 0x34]
mov edx, ebx
mov eax, dword [ebx + 0xac]
call dword [ebx + 0xa8]
jmp 0x4700e3
add esi, dword [ebp - 0x10]
cmp dword [ebp - 0x2c], 0
jbe 0x46ff58
imul eax, esi, 0x64
mov dword [ebp - 0x11e8], eax
xor eax, eax
mov dword [ebp - 0x11e4], eax
fild qword [ebp - 0x11e8]
mov eax, dword [ebp - 0x2c]
mov dword [ebp - 0x11f0], eax
xor eax, eax
mov dword [ebp - 0x11ec], eax
fild qword [ebp - 0x11f0]
fdivp st(1)
call fcn.00402f18
mov edx, eax
mov eax, dword [ebx + 0x44]
call fcn.00438f04
push dword [ebx + 0x7c]
push 0x470214
lea edx, [ebp - 0x11f8]
mov eax, esi
call fcn.0046f02c
push dword [ebp - 0x11f8]
push 0x470214
push dword [ebx + 0xfc]
push 0x470214
lea edx, [ebp - 0x11fc]
mov eax, dword [ebp - 0x20]
call fcn.0046f02c
push dword [ebp - 0x11fc]
lea eax, [ebp - 0x11f4]
mov edx, 7
call fcn.00404e14
mov edx, dword [ebp - 0x11f4]
mov eax, dword [ebx + 0x4c]
call fcn.0044c614
jmp 0x46ff91
push dword [ebx + 0x7c]
push 0x470214
lea edx, [ebp - 0x1204]
mov eax, esi
call fcn.0046f02c
push dword [ebp - 0x1204]
lea eax, [ebp - 0x1200]
mov edx, 3
call fcn.00404e14
mov edx, dword [ebp - 0x1200]
mov eax, dword [ebx + 0x4c]
call fcn.0044c614
cmp word [ebx + 0xea], 0
je 0x46ffb1
push esi
mov eax, dword [ebp - 0x20]
push eax
mov ecx, dword [ebx + 0x34]
mov edx, ebx
mov eax, dword [ebx + 0xec]
call dword [ebx + 0xe8]
cmp byte [ebx + 0x10c], 0
je 0x470004
push dword [ebx + 0x74]
push 0x470220
mov eax, dword [ebx + 0x44]
call fcn.00438d54
lea edx, [ebp - 0x120c]
call fcn.00408eb0
push dword [ebp - 0x120c]
push 0x47025c
push dword [ebx + 0x110]
lea eax, [ebp - 0x1208]
mov edx, 5
call fcn.00404e14
mov edx, dword [ebp - 0x1208]
mov eax, dword [ebx + 0x3c]
call fcn.0044c614
push dword [ebx + 0x80]
push 0x470214
call sub.kernel32.dll_GetTickCount
sub eax, dword [ebp - 0x30]
inc eax
mov dword [ebp - 0x11e8], eax
xor eax, eax
mov dword [ebp - 0x11e4], eax
fild qword [ebp - 0x11e8]
mov dword [ebp - 0x11f0], esi
xor eax, eax
mov dword [ebp - 0x11ec], eax
fild qword [ebp - 0x11f0]
fdivrp st(1)
fmul dword [0x470260]
call fcn.00402f18
lea edx, [ebp - 0x1214]
call fcn.0046f180
push dword [ebp - 0x1214]
lea eax, [ebp - 0x1210]
mov edx, 3
call fcn.00404e14
mov edx, dword [ebp - 0x1210]
mov eax, dword [ebx + 0x50]
call fcn.0044c614
push dword [ebx + 0x84]
push 0x470214
lea eax, [ebp - 0x121c]
push eax
call sub.kernel32.dll_GetTickCount
sub eax, dword [ebp - 0x30]
mov ecx, dword [ebp - 0x20]
mov edx, esi
call fcn.0046f2d4
push dword [ebp - 0x121c]
lea eax, [ebp - 0x1218]
mov edx, 3
call fcn.00404e14
mov edx, dword [ebp - 0x1218]
mov eax, dword [ebx + 0x54]
call fcn.0044c614
mov eax, dword [0x480798]
mov eax, dword [eax]
call fcn.0046bfc0
cmp dword [ebp - 0x10], 0x1000
jne 0x4700e3
cmp byte [ebx + 0x38], 0
je 0x46fe16
push 0
push 0
push 0
mov eax, dword [ebp - 0x28]
push eax
call sub.wininet.dll_HttpEndRequestA
test eax, eax
jne 0x470149
call sub.kernel32.dll_GetLastError_1
mov dword [ebp - 0x34], eax
cmp word [ebx + 0xa2], 0
je 0x470119
mov ecx, dword [ebp - 0x34]
mov edx, ebx
mov eax, dword [ebx + 0xa4]
call dword [ebx + 0xa0]
cmp word [ebx + 0xaa], 0
je 0x470149
lea edx, [ebp - 0x1220]
mov eax, dword [ebp - 0x34]
call fcn.0046f614
mov eax, dword [ebp - 0x1220]
push eax
mov ecx, dword [ebp - 0x34]
mov edx, ebx
mov eax, dword [ebx + 0xac]
call dword [ebx + 0xa8]
lea eax, [ebp - 0x1180]
call fcn.00403354
call fcn.00402c4c
mov eax, dword [ebp - 0x28]
push eax
call sub.wininet.dll_InternetCloseHandle
mov eax, dword [ebp - 0x24]
push eax
call sub.wininet.dll_InternetCloseHandle
cmp esi, dword [ebp - 0x20]
sete byte [ebp - 9]
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x4701ff
lea eax, [ebp - 0x1220]
mov edx, 0xc
call fcn.00404ab8
lea eax, [ebp - 0x11e0]
mov edx, 5
call fcn.00404ab8
lea eax, [ebp - 0x11cc]
call fcn.00404a94
lea eax, [ebp - 0x11c8]
mov edx, 2
call fcn.00404ab8
lea eax, [ebp - 0x11c0]
call fcn.00404a94
lea eax, [ebp - 0x11bc]
mov edx, 5
call fcn.00404ab8
lea eax, [ebp - 0x1c]
mov edx, 3
call fcn.00404ab8
lea eax, [ebp - 8]
mov edx, 2
call fcn.00404ab8
lea eax, [ebp + 0xc]
call fcn.00404a94
ret