Function at 0x403210
Capabilities:
Connect to http server
Create http request
Parse url
Send data
Send http request

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x54b5d3
mov eax, dword fs:[0]
push eax
mov eax, 0x1b70
call fcn.0052c730
mov eax, dword [0x5acf20]
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 esi, dword [ebp + 0x20]
xor ebx, ebx
mov dword [ebp - 4], 0
push 0xff
lea eax, [ebp - 0x28f]
mov byte [ebp - 0x290], bl
push ebx
xor edi, edi
push eax
mov dword [ebp - 0x1b38], edi
call fcn.0052cdb0
push 0x7f
lea eax, [ebp - 0x10f]
mov byte [ebp - 0x110], bl
push ebx
push eax
call fcn.0052cdb0
push 0x7f
lea eax, [ebp - 0x8f]
mov byte [ebp - 0x90], bl
push ebx
push eax
call fcn.0052cdb0
push 0x823
lea eax, [ebp - 0x1afb]
mov byte [ebp - 0x1afc], bl
push ebx
push eax
call fcn.0052cdb0
push 0x823
lea eax, [ebp - 0xab3]
mov byte [ebp - 0xab4], bl
push ebx
push eax
call fcn.0052cdb0
push 0x38
lea eax, [ebp - 0x1b74]
push ebx
push eax
call fcn.0052cdb0
lea eax, [ebp - 0x290]
mov dword [ebp - 0x1b78], 0x3c
mov dword [ebp - 0x1b68], eax
lea ecx, [ebp - 0x1b78]
add esp, 0x48
mov dword [ebp - 0x1b64], 0x100
cmp dword [ebp + 0x1c], 0x10
lea eax, [ebp - 0x110]
mov dword [ebp - 0x1b5c], eax
lea eax, [ebp - 0x90]
mov dword [ebp - 0x1b54], eax
lea eax, [ebp - 0x1afc]
push ecx
mov dword [ebp - 0x1b4c], eax
lea eax, [ebp + 8]
cmovae eax, dword [ebp + 8]
push ebx
push ebx
push eax
mov dword [ebp - 0x1b58], 0x80
mov dword [ebp - 0x1b50], 0x80
mov dword [ebp - 0x1b48], 0x824
call dword [sym.imp.WININET.dll_InternetCrackUrlA]
test eax, eax
je 0x403636
cmp dword [ebp - 0x1b6c], 3
jne 0x403636
push ebx
push ebx
push ebx
push ebx
push str.down
call dword [sym.imp.WININET.dll_InternetOpenA]
mov edi, eax
test edi, edi
je 0x403636
push ebx
push ebx
push 3
lea eax, [ebp - 0x90]
push eax
lea eax, [ebp - 0x110]
push eax
push dword [ebp - 0x1b60]
lea eax, [ebp - 0x290]
push eax
push edi
call dword [sym.imp.WININET.dll_InternetConnectA]
mov dword [ebp - 0x1b38], eax
test eax, eax
je 0x403636
cmp dword [ebp - 0x1b48], ebx
je 0x4033e5
mov ecx, dword [ebp - 0x1b4c]
lea edx, [ebp - 0xab4]
sub edx, ecx
nop
mov al, byte [ecx]
lea ecx, [ecx + 1]
mov byte [edx + ecx - 1], al
test al, al
jne 0x4033d0
mov eax, dword [ebp - 0x1b38]
jmp 0x4033f1
mov ecx, 0x2f
mov word [ebp - 0xab4], cx
push 0
push 0x80200000
push 0
push 0x55bce0
push str.HTTP_1.1
lea ecx, [ebp - 0xab4]
push ecx
push str.HEAD
push eax
call dword [sym.imp.WININET.dll_HttpOpenRequestA]
push 0
push 0
push 0
mov ebx, eax
push 0
push ebx
call dword [sym.imp.WININET.dll_HttpSendRequestA]
test eax, eax
je 0x403636
push 0x823
lea eax, [ebp - 0x12d7]
mov byte [ebp - 0x12d8], 0
push 0
push eax
call fcn.0052cdb0
add esp, 0xc
mov dword [ebp - 0x1b3c], 0x824
lea eax, [ebp - 0x1b3c]
push 0
push eax
lea eax, [ebp - 0x12d8]
push eax
push 0x16
push ebx
call dword [sym.imp.WININET.dll_HttpQueryInfoA]
test eax, eax
je 0x403636
lea eax, [ebp - 0x12d8]
push eax
lea ecx, [ebp - 0x1b2c]
call fcn.00401f10
push 0
push str.filename
lea ecx, [ebp - 0x1b2c]
mov byte [ebp - 4], 1
call fcn.00405480
push eax
push 0x55bfe0
lea ecx, [ebp - 0x1b2c]
mov dword [ebp - 0x1b34], eax
call fcn.00405480
mov ecx, eax
mov eax, dword [ebp - 0x1b34]
cmp eax, 0xffffffff
je 0x403587
sub ecx, eax
push ecx
push eax
lea eax, [ebp - 0x1b14]
push eax
lea ecx, [ebp - 0x1b2c]
call fcn.00405b60
push eax
mov ecx, esi
call fcn.004024c0
lea ecx, [ebp - 0x1b14]
call fcn.004022c0
mov eax, dword [esi + 0x10]
mov ecx, esi
add eax, 0xfffffff7
push eax
push 9
lea eax, [ebp - 0x1b14]
push eax
call fcn.00405b60
push eax
mov ecx, esi
call fcn.004024c0
lea ecx, [ebp - 0x1b14]
call fcn.004022c0
mov ecx, dword [esi + 0x14]
cmp ecx, 0x10
jb 0x403527
mov eax, dword [esi]
jmp 0x403529
mov eax, esi
cmp byte [eax], 0x22
jne 0x403548
cmp ecx, 0x10
jb 0x403537
mov eax, dword [esi]
jmp 0x403539
mov eax, esi
push eax
lea eax, [ebp - 0x1b34]
mov ecx, esi
push eax
call fcn.004053a0
cmp dword [esi + 0x14], 0x10
mov ecx, dword [esi + 0x10]
jb 0x403555
mov eax, dword [esi]
jmp 0x403557
mov eax, esi
cmp byte [eax + ecx - 1], 0x22
jne 0x40362b
lea eax, [ebp - 0x1b34]
mov ecx, esi
push eax
call fcn.00405310
mov ecx, esi
dec dword [eax]
push dword [eax]
lea eax, [ebp - 0x1b7c]
push eax
call fcn.004053a0
jmp 0x40362b
push 1
push 0xffffffffffffffff
lea eax, [ebp - 0x1b30]
mov byte [ebp - 0x1b30], 0x2f
push eax
lea ecx, [ebp + 8]
call fcn.00405880
cmp eax, 0xffffffff
je 0x4035d3
mov ecx, dword [ebp + 0x18]
sub ecx, eax
inc eax
dec ecx
push ecx
push eax
lea eax, [ebp - 0x1b14]
push eax
lea ecx, [ebp + 8]
call fcn.00405b60
push eax
mov ecx, esi
call fcn.004024c0
lea ecx, [ebp - 0x1b14]
call fcn.004022c0
jmp 0x40362b
push 0
call fcn.0052c11a
push eax
call fcn.0052c040
push 0x7f
lea eax, [ebp - 0x18f]
mov byte [ebp - 0x190], 0
push 0
push eax
call fcn.0052cdb0
add esp, 0x14
lea eax, [ebp - 0x190]
push 0xa
push eax
call fcn.0052c01f
push eax
call fcn.0054aca0
add esp, 0xc
lea eax, [ebp - 0x190]
mov ecx, esi
push eax
call fcn.00402500
push str..exe
mov ecx, esi
call fcn.00402580
lea ecx, [ebp - 0x1b2c]
call fcn.004022c0
push 0
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov esi, dword [sym.imp.WININET.dll_InternetCloseHandle]
test ebx, ebx
je 0x40364b
push ebx
call esi
mov eax, dword [ebp - 0x1b38]
test eax, eax
je 0x403658
push eax
call esi
test edi, edi
je 0x40365f
push edi
call esi
cmp dword [ebp + 0x1c], 0x10
jb 0x403670
push dword [ebp + 8]
call fcn.00406027
add esp, 4
mov eax, 1
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.0052c2cf
mov esp, ebp
pop ebp
ret