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

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x54e7a3
mov eax, dword fs:[0]
push eax
mov eax, 0x1c88
call fcn.005380d0
mov eax, dword [0x5afec0]
xor eax, ebp
mov dword [ebp - 0x10], eax
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov dword [ebp - 4], 0
mov dword [ebp - 0x1bec], 0
mov dword [ebp - 0x1be8], 0
mov dword [ebp - 0x1be4], 0
mov dword [ebp - 0x1bfc], 0
mov dword [ebp - 0x1c00], 0
mov dword [ebp - 0x1bf8], 0
mov dword [ebp - 0x1c70], 0xa
mov dword [ebp - 0x1c7c], 0
mov dword [ebp - 0x1c84], 0
mov dword [ebp - 0x1c8c], 0
mov byte [ebp - 0x210], 0
push 0x7f
push 0
lea eax, [ebp - 0x20f]
push eax
call fcn.005370a0
add esp, 0xc
mov dword [ebp - 0x1c94], 0x80
mov dword [ebp - 0x1c20], 0
mov dword [ebp - 0x1c78], 0
mov dword [ebp - 0x1c30], 4
mov byte [ebp - 0x310], 0
push 0xff
push 0
lea ecx, [ebp - 0x30f]
push ecx
call fcn.005370a0
add esp, 0xc
mov byte [ebp - 0x90], 0
push 0x7f
push 0
lea edx, [ebp - 0x8f]
push edx
call fcn.005370a0
add esp, 0xc
mov byte [ebp - 0x190], 0
push 0x7f
push 0
lea eax, [ebp - 0x18f]
push eax
call fcn.005370a0
add esp, 0xc
mov byte [ebp - 0x1358], 0
push 0x823
push 0
lea ecx, [ebp - 0x1357]
push ecx
call fcn.005370a0
add esp, 0xc
mov byte [ebp - 0xb34], 0
push 0x823
push 0
lea edx, [ebp - 0xb33]
push edx
call fcn.005370a0
add esp, 0xc
mov dword [ebp - 0x1c6c], 0
push 0x38
push 0
lea eax, [ebp - 0x1c68]
push eax
call fcn.005370a0
add esp, 0xc
mov dword [ebp - 0x1c6c], 0x3c
lea ecx, [ebp - 0x310]
mov dword [ebp - 0x1c5c], ecx
mov dword [ebp - 0x1c58], 0x100
lea edx, [ebp - 0x90]
mov dword [ebp - 0x1c50], edx
mov dword [ebp - 0x1c4c], 0x80
lea eax, [ebp - 0x190]
mov dword [ebp - 0x1c48], eax
mov dword [ebp - 0x1c44], 0x80
lea ecx, [ebp - 0x1358]
mov dword [ebp - 0x1c40], ecx
mov dword [ebp - 0x1c3c], 0x824
lea edx, [ebp - 0x1c6c]
push edx
push 0
push 0
lea ecx, [ebp + 8]
call fcn.004086a0
push eax
call dword [sym.imp.WININET.dll_InternetCrackUrlA]
mov dword [ebp - 0x1be0], eax
cmp dword [ebp - 0x1be0], 0
je 0x4061c4
cmp dword [ebp - 0x1c60], 3
jne 0x4061c4
mov dword [ebp - 0x1c04], 1
jmp 0x4061ce
mov dword [ebp - 0x1c04], 0
mov eax, dword [ebp - 0x1c04]
mov dword [ebp - 0x1be0], eax
cmp dword [ebp - 0x1be0], 0
jne 0x4061e8
jmp 0x4065c0
push 0
push 0
push 0
push 0
push str.down
call dword [sym.imp.WININET.dll_InternetOpenA]
mov dword [ebp - 0x1bec], eax
cmp dword [ebp - 0x1bec], 0
jne 0x406219
mov dword [ebp - 0x1be0], 0
jmp 0x4065c0
push 0
push 0
push 3
lea ecx, [ebp - 0x190]
push ecx
lea edx, [ebp - 0x90]
push edx
movzx eax, word [ebp - 0x1c54]
push eax
lea ecx, [ebp - 0x310]
push ecx
mov edx, dword [ebp - 0x1bec]
push edx
call dword [sym.imp.WININET.dll_InternetConnectA]
mov dword [ebp - 0x1be8], eax
cmp dword [ebp - 0x1be8], 0
jne 0x406267
mov dword [ebp - 0x1be0], 0
jmp 0x4065c0
cmp dword [ebp - 0x1c3c], 0
je 0x406288
mov eax, dword [ebp - 0x1c40]
push eax
lea ecx, [ebp - 0xb34]
push ecx
call fcn.00537e10
add esp, 8
jmp 0x40629c
push 0x55ff44
lea edx, [ebp - 0xb34]
push edx
call fcn.00537e10
add esp, 8
push 0
push 0x80200000
push 0
push 0x55fdd9
push str.HTTP_1.1
lea eax, [ebp - 0xb34]
push eax
push str.HEAD
mov ecx, dword [ebp - 0x1be8]
push ecx
call dword [sym.imp.WININET.dll_HttpOpenRequestA]
mov dword [ebp - 0x1be4], eax
mov dword [ebp - 0x1be0], 0
mov dword [ebp - 0x1c20], 0
mov dword [ebp - 0x1c30], 4
push 0
push 0
push 0
push 0
mov edx, dword [ebp - 0x1be4]
push edx
call dword [sym.imp.WININET.dll_HttpSendRequestA]
mov dword [ebp - 0x1be0], eax
cmp dword [ebp - 0x1be0], 0
jne 0x406321
jmp 0x4065c0
mov byte [ebp - 0x1b7c], 0
push 0x823
push 0
lea eax, [ebp - 0x1b7b]
push eax
call fcn.005370a0
add esp, 0xc
mov dword [ebp - 0x1c2c], 0x824
push 0
lea ecx, [ebp - 0x1c2c]
push ecx
lea edx, [ebp - 0x1b7c]
push edx
push 0x16
mov eax, dword [ebp - 0x1be4]
push eax
call dword [sym.imp.WININET.dll_HttpQueryInfoA]
mov dword [ebp - 0x1be0], eax
cmp dword [ebp - 0x1be0], 0
je 0x4065c0
lea ecx, [ebp - 0x1b7c]
push ecx
lea ecx, [ebp - 0x1b94]
call fcn.00403290
mov byte [ebp - 4], 1
push 0
push str.filename
lea ecx, [ebp - 0x1b94]
call fcn.00408a40
mov dword [ebp - 0x1bf0], eax
mov edx, dword [ebp - 0x1bf0]
push edx
push 0x55ff6c
lea ecx, [ebp - 0x1b94]
call fcn.00408a40
mov dword [ebp - 0x1c10], eax
cmp dword [ebp - 0x1bf0], 0xffffffff
je 0x4064e9
mov eax, dword [ebp - 0x1c10]
sub eax, dword [ebp - 0x1bf0]
push eax
mov ecx, dword [ebp - 0x1bf0]
push ecx
lea edx, [ebp - 0x1bdc]
push edx
lea ecx, [ebp - 0x1b94]
call fcn.00409690
mov dword [ebp - 0x1c28], eax
mov eax, dword [ebp - 0x1c28]
push eax
mov ecx, dword [ebp + 0x20]
call fcn.004052e0
lea ecx, [ebp - 0x1bdc]
call fcn.00403300
mov ecx, dword [ebp + 0x20]
call fcn.004041a0
sub eax, 9
push eax
push 9
lea ecx, [ebp - 0x1bac]
push ecx
mov ecx, dword [ebp + 0x20]
call fcn.00409690
mov dword [ebp - 0x1c18], eax
mov edx, dword [ebp - 0x1c18]
push edx
mov ecx, dword [ebp + 0x20]
call fcn.004052e0
lea ecx, [ebp - 0x1bac]
call fcn.00403300
push 0
mov ecx, dword [ebp + 0x20]
call fcn.004054b0
movsx eax, byte [eax]
cmp eax, 0x22
jne 0x406494
lea ecx, [ebp - 0x1c88]
push ecx
mov ecx, dword [ebp + 0x20]
call fcn.00408670
mov edx, dword [eax]
mov dword [ebp - 0x1c08], edx
mov eax, dword [ebp - 0x1c08]
push eax
lea ecx, [ebp - 0x1c80]
push ecx
mov ecx, dword [ebp + 0x20]
call fcn.004089b0
mov ecx, dword [ebp + 0x20]
call fcn.004041a0
sub eax, 1
push eax
mov ecx, dword [ebp + 0x20]
call fcn.004054b0
movsx edx, byte [eax]
cmp edx, 0x22
jne 0x4064e4
lea eax, [ebp - 0x1c90]
push eax
mov ecx, dword [ebp + 0x20]
call fcn.00408920
mov ecx, eax
call fcn.00405580
mov ecx, dword [eax]
mov dword [ebp - 0x1c0c], ecx
mov edx, dword [ebp - 0x1c0c]
push edx
lea eax, [ebp - 0x1c74]
push eax
mov ecx, dword [ebp + 0x20]
call fcn.004089b0
jmp 0x4065b1
push 0xffffffffffffffff
push 0x2f
lea ecx, [ebp + 8]
call fcn.00409320
mov dword [ebp - 0x1bf4], eax
cmp dword [ebp - 0x1bf4], 0xffffffff
je 0x406551
lea ecx, [ebp + 8]
call fcn.004041a0
sub eax, dword [ebp - 0x1bf4]
sub eax, 1
push eax
mov ecx, dword [ebp - 0x1bf4]
add ecx, 1
push ecx
lea edx, [ebp - 0x1bc4]
push edx
lea ecx, [ebp + 8]
call fcn.00409690
mov dword [ebp - 0x1c14], eax
mov eax, dword [ebp - 0x1c14]
push eax
mov ecx, dword [ebp + 0x20]
call fcn.004052e0
lea ecx, [ebp - 0x1bc4]
call fcn.00403300
jmp 0x4065b1
push 0
call fcn.00409720
add esp, 4
push eax
call fcn.00537fcf
add esp, 4
mov byte [ebp - 0x110], 0
push 0x7f
push 0
lea ecx, [ebp - 0x10f]
push ecx
call fcn.005370a0
add esp, 0xc
push 0xa
lea edx, [ebp - 0x110]
push edx
call fcn.00537fae
push eax
call fcn.0054e592
add esp, 0xc
lea eax, [ebp - 0x110]
push eax
mov ecx, dword [ebp + 0x20]
call fcn.00405410
push str..exe
mov ecx, dword [ebp + 0x20]
call fcn.00405620
mov byte [ebp - 4], 0
lea ecx, [ebp - 0x1b94]
call fcn.00403300
cmp dword [ebp - 0x1c00], 0xffffffff
je 0x4065d6
mov ecx, dword [ebp - 0x1c00]
push ecx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
cmp dword [ebp - 0x1bf8], 0
je 0x4065fa
mov edx, dword [ebp - 0x1bf8]
mov dword [ebp - 0x1c1c], edx
mov eax, dword [ebp - 0x1c1c]
push eax
call fcn.0040fff1
add esp, 4
cmp dword [ebp - 0x1bfc], 0
je 0x406610
mov ecx, dword [ebp - 0x1bfc]
push ecx
call dword [sym.imp.WININET.dll_InternetCloseHandle]
cmp dword [ebp - 0x1be4], 0
je 0x406626
mov edx, dword [ebp - 0x1be4]
push edx
call dword [sym.imp.WININET.dll_InternetCloseHandle]
cmp dword [ebp - 0x1be8], 0
je 0x40663c
mov eax, dword [ebp - 0x1be8]
push eax
call dword [sym.imp.WININET.dll_InternetCloseHandle]
cmp dword [ebp - 0x1bec], 0
je 0x406652
mov ecx, dword [ebp - 0x1bec]
push ecx
call dword [sym.imp.WININET.dll_InternetCloseHandle]
mov dword [ebp - 0x1c24], 1
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp + 8]
call fcn.00403300
mov eax, dword [ebp - 0x1c24]
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.00535234
mov esp, ebp
pop ebp
ret