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

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x421540
mov eax, dword fs:[0]
push eax
sub esp, 0x44
mov eax, dword [0x42c00c]
xor eax, ebp
mov dword [ebp - 0x10], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov dword [ebp - 0x48], ecx
mov edx, dword [ebp + 8]
mov ecx, edx
mov dword [ebp - 0x2c], edx
mov dword [ebp - 0x18], 0
mov dword [ebp - 0x14], 0xf
mov byte [ebp - 0x28], 0
lea esi, [ecx + 1]
nop dword [eax + eax]
mov al, byte [ecx]
inc ecx
test al, al
jne 0x402650
sub ecx, esi
push ecx
push edx
lea ecx, [ebp - 0x28]
call fcn.00402bb0
mov dword [ebp - 4], 0
lea ecx, [ebp - 0x28]
mov ebx, dword [ebp - 0x14]
cmp ebx, 0x10
mov esi, dword [ebp - 0x18]
mov edx, esi
cmovae ecx, dword [ebp - 0x28]
push 7
push str.http:__
push ecx
call fcn.00402d00
mov edi, eax
add esp, 0xc
cmp edi, 0xffffffff
je 0x4026ce
cmp esi, edi
jb 0x4028ce
mov eax, esi
lea ecx, [ebp - 0x28]
sub eax, edi
mov edx, 7
cmp eax, edx
cmovb edx, eax
cmp ebx, 0x10
cmovae ecx, dword [ebp - 0x28]
sub esi, edx
add ecx, edi
mov dword [ebp - 0x18], esi
sub esi, edi
inc esi
push esi
lea eax, [ecx + edx]
push eax
push ecx
call fcn.0040f0f0
mov esi, dword [ebp - 0x18]
add esp, 0xc
cmp dword [ebp - 0x14], 0x10
lea ebx, [ebp - 0x28]
cmovae ebx, dword [ebp - 0x28]
test esi, esi
je 0x4026f3
push esi
push 0x2f
push ebx
call fcn.00421410
mov edi, eax
add esp, 0xc
test edi, edi
je 0x4026f3
sub edi, ebx
jmp 0x4026f6
or edi, 0xffffffff
cmp esi, edi
mov dword [ebp - 0x34], 0
mov ecx, edi
mov dword [ebp - 0x30], 0xf
cmovb ecx, esi
mov byte [ebp - 0x44], 0
cmp dword [ebp - 0x14], 0x10
lea eax, [ebp - 0x28]
push ecx
cmovae eax, dword [ebp - 0x28]
lea ecx, [ebp - 0x44]
push eax
call fcn.00402bb0
mov byte [ebp - 4], 1
lea ecx, [ebp - 0x28]
mov eax, dword [ebp - 0x18]
cmp eax, edi
cmovb edi, eax
cmp dword [ebp - 0x14], 0x10
cmovae ecx, dword [ebp - 0x28]
sub eax, edi
mov dword [ebp - 0x18], eax
inc eax
push eax
lea eax, [ecx + edi]
push eax
push ecx
call fcn.0040f0f0
mov ebx, dword [ebp - 0x48]
push 0x103
push dword [ebp - 0x2c]
mov dword [ebp - 0x4c], 0
lea eax, [ebx + 0x44]
push 0x104
push eax
call fcn.00410017
mov eax, dword [ebx + 0x38]
add esp, 0x1c
push 0
push 0
push eax
neg eax
sbb eax, eax
and eax, 3
push eax
push dword [ebx + 0xc]
call dword [sym.imp.WININET.dll_InternetOpenA]
mov esi, eax
mov dword [ebp - 0x50], esi
test esi, esi
je 0x402834
push 4
lea eax, [ebp - 0x2c]
mov dword [ebp - 0x2c], 1
push eax
push 0x41
push esi
call dword [sym.imp.WININET.dll_InternetSetOptionA]
cmp dword [ebp - 0x30], 0x10
lea eax, [ebp - 0x44]
push 1
cmovae eax, dword [ebp - 0x44]
push 0
push 3
push dword [ebx + 0x40]
push dword [ebx + 0x3c]
push 0x50
push eax
push esi
call dword [sym.imp.WININET.dll_InternetConnectA]
mov edi, dword [sym.imp.WININET.dll_InternetCloseHandle]
mov ebx, eax
test ebx, ebx
je 0x402831
cmp dword [ebp - 0x14], 0x10
lea ecx, [ebp - 0x28]
push 1
cmovae ecx, dword [ebp - 0x28]
push 0x80400000
push 0
push 0
push 0
push ecx
push 0x428f2c
push ebx
call dword [sym.imp.WININET.dll_HttpOpenRequestA]
mov esi, eax
test esi, esi
je 0x40282b
push esi
call fcn.00401ff0
push 0
push 0
push 0
push 0
push esi
call dword [sym.imp.WININET.dll_HttpSendRequestA]
test eax, eax
je 0x402828
mov ecx, dword [ebp - 0x48]
push esi
call fcn.00402130
mov dword [ebp - 0x4c], eax
push esi
call edi
push ebx
call edi
mov esi, dword [ebp - 0x50]
push esi
call edi
mov edx, dword [ebp - 0x30]
xor ebx, ebx
cmp dword [ebp - 0x4c], ebx
setg bl
cmp edx, 0x10
jb 0x40286c
mov ecx, dword [ebp - 0x44]
inc edx
mov eax, ecx
cmp edx, 0x1000
jb 0x402862
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x4028d3
push edx
push ecx
call fcn.0040c1fd
add esp, 8
mov edx, dword [ebp - 0x14]
mov dword [ebp - 0x34], 0
mov dword [ebp - 0x30], 0xf
mov byte [ebp - 0x44], 0
cmp edx, 0x10
jb 0x4028ae
mov ecx, dword [ebp - 0x28]
inc edx
mov eax, ecx
cmp edx, 0x1000
jb 0x4028a4
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x4028d8
push edx
push ecx
call fcn.0040c1fd
add esp, 8
mov eax, ebx
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.0040c096
mov esp, ebp
pop ebp
ret 4
call fcn.00402cf0
call fcn.0040fee0
call fcn.0040fee0
int3