Function at 0x460220
Capabilities:
Connect to http server

Disassembly:
push ebp
mov ebp, esp
push ecx
mov ecx, 0x5a
push 0
push 0
dec ecx
jne 0x460229
xchg dword [ebp - 4], ecx
push ebx
push esi
push edi
mov dword [ebp - 4], ecx
mov ebx, eax
mov eax, dword [ebp - 4]
call fcn.00404d04
mov eax, dword [ebp + 0x2c]
call fcn.00404d04
mov eax, dword [ebp + 0x28]
call fcn.00404d04
mov eax, dword [ebp + 0x20]
call fcn.00404d04
mov eax, dword [ebp + 0x1c]
call fcn.00404d04
mov eax, dword [ebp + 0x18]
call fcn.00404d04
xor eax, eax
push ebp
push 0x460942
push dword fs:[eax]
mov dword fs:[eax], esp
mov byte [ebp - 5], 0
mov eax, dword [ebp + 0xc]
mov byte [eax], 0
mov byte [ebp + 8], 1
mov eax, dword [ebx + 0x94]
call fcn.00419014
dec eax
jle 0x4602fa
lea edx, [ebp - 0x274]
mov eax, dword [ebx + 0x34]
call fcn.00408da0
push dword [ebp - 0x274]
push 0x460960
push dword [ebx + 0x104]
push 0x460960
mov eax, dword [ebx + 0x94]
call fcn.00463e34
lea edx, [ebp - 0x278]
call fcn.00408da0
push dword [ebp - 0x278]
push 0x46096c
lea eax, [ebp - 0x270]
mov edx, 6
call fcn.00404bd4
mov edx, dword [ebp - 0x270]
mov eax, dword [ebx + 0x48]
call fcn.0044d738
jmp 0x460304
xor edx, edx
mov eax, dword [ebx + 0x48]
call fcn.0044d738
cmp byte [ebx + 0x115], 0
je 0x460371
push dword [ebx + 0x78]
push 0x460960
lea edx, [ebp - 0x280]
mov esi, dword [ebx + 0x48]
mov eax, esi
call fcn.0044d708
push dword [ebp - 0x280]
lea edx, [ebp - 0x284]
mov eax, dword [ebp + 0x20]
call fcn.0045cd64
push dword [ebp - 0x284]
push 0x460960
push dword [ebx + 0x108]
push 0x460960
push dword [ebp + 0x28]
lea eax, [ebp - 0x27c]
mov edx, 8
call fcn.00404bd4
mov edx, dword [ebp - 0x27c]
mov eax, esi
call fcn.0044d738
jmp 0x4603c0
push dword [ebx + 0x78]
push 0x460960
lea edx, [ebp - 0x28c]
mov esi, dword [ebx + 0x48]
mov eax, esi
call fcn.0044d708
push dword [ebp - 0x28c]
lea edx, [ebp - 0x290]
mov eax, dword [ebp + 0x20]
call fcn.0045cd64
push dword [ebp - 0x290]
lea eax, [ebp - 0x288]
mov edx, 4
call fcn.00404bd4
mov edx, dword [ebp - 0x288]
mov eax, esi
call fcn.0044d738
cmp byte [ebx + 0x112], 0
je 0x4603d0
mov esi, 0x8000000
jmp 0x4603d2
xor esi, esi
mov eax, dword [0x46d164]
mov eax, dword [eax]
call fcn.0043efdc
cmp dword [ebp - 4], 0
je 0x4603ea
cmp dword [ebp + 0x2c], 0
jne 0x460412
push 0
push esi
push 1
push 0
push 0
mov ax, word [ebp + 0x24]
push eax
mov eax, dword [ebp + 0x28]
call fcn.00404d14
push eax
mov eax, dword [ebx + 0x98]
push eax
call sub.wininet.dll_InternetConnectA
mov dword [ebp - 0xc], eax
jmp 0x460446
push 0
push esi
push 1
mov eax, dword [ebp + 0x2c]
call fcn.00404d14
push eax
mov eax, dword [ebp - 4]
call fcn.00404d14
push eax
mov ax, word [ebp + 0x24]
push eax
mov eax, dword [ebp + 0x28]
call fcn.00404d14
push eax
mov eax, dword [ebx + 0x98]
push eax
call sub.wininet.dll_InternetConnectA
mov dword [ebp - 0xc], eax
cmp dword [ebp - 0xc], 0
jne 0x4604a9
cmp word [ebx + 0xa2], 0
je 0x460469
mov ecx, 6
mov edx, ebx
mov eax, dword [ebx + 0xa4]
call dword [ebx + 0xa0]
cmp word [ebx + 0xaa], 0
je 0x460889
lea eax, [ebp - 0x294]
mov ecx, dword [ebp + 0x28]
mov edx, 0x460978
call fcn.00404b60
mov eax, dword [ebp - 0x294]
push eax
mov ecx, 6
mov edx, ebx
mov eax, dword [ebx + 0xac]
call dword [ebx + 0xa8]
jmp 0x460889
cmp byte [ebp + 8], 0
je 0x4604d1
mov eax, dword [ebp - 0xc]
mov dword [ebx + 0x154], eax
push dword [ebp + 0x28]
push dword [ebp - 4]
push dword [ebp + 0x2c]
lea eax, [ebx + 0x158]
mov edx, 3
call fcn.00404bd4
mov byte [ebp - 0x19], 0
mov eax, dword [0x46d164]
mov eax, dword [eax]
call fcn.0043efdc
mov edx, dword [ebp + 0x20]
mov eax, 0x4609a0
call fcn.00404e58
test eax, eax
jle 0x46051f
mov al, byte [0x4609a4]
push eax
lea eax, [ebp - 0x298]
push eax
mov ecx, 0x4609b0
mov edx, 0x4609a0
mov eax, dword [ebp + 0x20]
call fcn.0040dc20
mov edx, dword [ebp - 0x298]
lea eax, [ebp + 0x20]
call fcn.004048ec
mov edx, dword [ebp + 0x20]
mov eax, 0x4609b0
call fcn.00404e58
test eax, eax
jle 0x4605af
lea eax, [ebp - 0x14]
mov edx, dword [ebp + 0x20]
call fcn.004048ec
jmp 0x460554
mov eax, dword [ebp - 0x14]
call fcn.00404b14
mov edx, eax
lea eax, [ebp - 0x14]
mov ecx, 1
call fcn.00404db4
mov eax, dword [ebp - 0x14]
call fcn.00404b14
mov edx, dword [ebp - 0x14]
cmp byte [edx + eax - 1], 0x2f
je 0x460572
mov eax, dword [ebp - 0x14]
call fcn.00404b14
test eax, eax
jg 0x46053d
mov eax, dword [ebp - 0x14]
call fcn.00404b14
test eax, eax
jle 0x4605af
mov dword [ebp - 0x18], 0xff
lea eax, [ebp - 0x18]
push eax
lea eax, [ebp - 0x26c]
push eax
mov eax, dword [ebp - 0xc]
push eax
call sub.wininet.dll_FtpGetCurrentDirectoryA
mov byte [ebp - 0x19], 1
mov eax, dword [ebp - 0x14]
call fcn.00404d14
push eax
mov eax, dword [ebp - 0xc]
push eax
call sub.wininet.dll_FtpSetCurrentDirectoryA
lea edx, [ebp - 0x10]
mov eax, dword [ebp + 0x20]
call fcn.0045cd64
push 0
push 0
lea eax, [ebp - 0x16c]
push eax
mov eax, dword [ebp - 0x10]
call fcn.00404d14
push eax
mov eax, dword [ebp - 0xc]
push eax
call sub.wininet.dll_FtpFindFirstFileA
mov edi, eax
mov dl, 1
mov eax, dword [0x416348]
call fcn.00403a10
mov esi, eax
test edi, edi
je 0x460640
lea edx, [ebp - 0x29c]
lea eax, [ebp - 0x140]
call fcn.00409848
mov edx, dword [ebp - 0x29c]
mov eax, esi
mov ecx, dword [eax]
call dword [ecx + 0x38]
jmp 0x460629
lea edx, [ebp - 0x2a0]
lea eax, [ebp - 0x140]
call fcn.00409848
mov edx, dword [ebp - 0x2a0]
mov eax, esi
mov ecx, dword [eax]
call dword [ecx + 0x38]
lea eax, [ebp - 0x16c]
push eax
push edi
call sub.wininet.dll_InternetFindNextFileA
test eax, eax
jne 0x46060b
push edi
call sub.wininet.dll_InternetCloseHandle
mov eax, esi
mov edx, dword [eax]
call dword [edx + 0x14]
dec eax
test eax, eax
jl 0x46081b
inc eax
mov dword [ebp - 0x2c], eax
mov dword [ebp - 0x20], 0
mov eax, esi
mov edx, dword [eax]
call dword [edx + 0x14]
test eax, eax
jle 0x4606c6
lea edx, [ebp - 0x2a8]
mov eax, dword [ebp - 0x20]
inc eax
call fcn.00408da0
push dword [ebp - 0x2a8]
push 0x460960
push dword [ebx + 0x104]
push 0x460960
mov eax, esi
mov edx, dword [eax]
call dword [edx + 0x14]
lea edx, [ebp - 0x2ac]
call fcn.00408da0
push dword [ebp - 0x2ac]
push 0x46096c
lea eax, [ebp - 0x2a4]
mov edx, 6
call fcn.00404bd4
mov edx, dword [ebp - 0x2a4]
mov eax, dword [ebx + 0x48]
call fcn.0044d738
cmp byte [ebx + 0x115], 0
je 0x460734
push dword [ebx + 0x78]
push 0x460960
lea edx, [ebp - 0x2b4]
mov eax, dword [ebx + 0x48]
call fcn.0044d708
push dword [ebp - 0x2b4]
lea ecx, [ebp - 0x2b8]
mov edx, dword [ebp - 0x20]
mov eax, esi
mov edi, dword [eax]
call dword [edi + 0xc]
push dword [ebp - 0x2b8]
push 0x460960
push dword [ebx + 0x108]
push 0x460960
push dword [ebp + 0x28]
lea eax, [ebp - 0x2b0]
mov edx, 8
call fcn.00404bd4
mov edx, dword [ebp - 0x2b0]
mov eax, dword [ebx + 0x48]
call fcn.0044d738
jmp 0x460784
push dword [ebx + 0x78]
push 0x460960
lea edx, [ebp - 0x2c0]
mov eax, dword [ebx + 0x48]
call fcn.0044d708
push dword [ebp - 0x2c0]
lea ecx, [ebp - 0x2c4]
mov edx, dword [ebp - 0x20]
mov eax, esi
mov edi, dword [eax]
call dword [edi + 0xc]
push dword [ebp - 0x2c4]
lea eax, [ebp - 0x2bc]
mov edx, 4
call fcn.00404bd4
mov edx, dword [ebp - 0x2bc]
mov eax, dword [ebx + 0x48]
call fcn.0044d738
mov eax, dword [ebp + 0x2c]
push eax
mov eax, dword [ebp + 0x28]
push eax
mov eax, dword [ebp + 0x24]
push eax
lea ecx, [ebp - 0x2c8]
mov edx, dword [ebp - 0x20]
mov eax, esi
mov edi, dword [eax]
call dword [edi + 0xc]
mov eax, dword [ebp - 0x2c8]
push eax
mov eax, dword [ebp + 0x1c]
push eax
lea ecx, [ebp - 0x2cc]
mov edx, dword [ebp - 0x20]
mov eax, esi
mov edi, dword [eax]
call dword [edi + 0xc]
mov eax, dword [ebp - 0x2cc]
push eax
mov al, byte [ebp + 0x14]
push eax
lea eax, [ebp - 0x28]
push eax
mov eax, dword [ebp + 0xc]
push eax
mov al, byte [ebp + 8]
push eax
push 0
mov ecx, dword [ebp - 4]
mov edx, dword [ebp - 0x20]
mov eax, ebx
call fcn.00460ab4
cmp word [ebx + 0xf2], 0
je 0x46080f
lea ecx, [ebp - 0x2d0]
mov edx, dword [ebp - 0x20]
mov eax, esi
mov edi, dword [eax]
call dword [edi + 0xc]
mov ecx, dword [ebp - 0x2d0]
mov edx, ebx
mov eax, dword [ebx + 0xf4]
call dword [ebx + 0xf0]
inc dword [ebp - 0x20]
dec dword [ebp - 0x2c]
jne 0x46065b
mov eax, esi
call fcn.00403a40
cmp byte [ebp + 8], 0
jne 0x46083e
mov eax, dword [ebp - 0xc]
push eax
call sub.wininet.dll_InternetCloseHandle
lea eax, [ebx + 0x158]
call fcn.00404854
jmp 0x460885
cmp byte [ebp - 0x19], 0
je 0x460885
lea eax, [ebp - 0x2d4]
lea edx, [ebp - 0x26c]
mov ecx, pe_nt_image_headers32
call fcn.00404ac4
cmp dword [ebp - 0x2d4], 0
jne 0x460875
mov esi, 0x4609b4
lea edi, [ebp - 0x26c]
mov ecx, 0x40
rep movsd dword es:[edi], dword [esi]
lea eax, [ebp - 0x26c]
push eax
mov eax, dword [ebp - 0xc]
push eax
call sub.wininet.dll_FtpSetCurrentDirectoryA
mov byte [ebp - 5], 1
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x46094c
lea eax, [ebp - 0x2d4]
mov edx, 5
call fcn.00404878
lea eax, [ebp - 0x2c0]
call fcn.00404854
lea eax, [ebp - 0x2bc]
mov edx, 2
call fcn.00404878
lea eax, [ebp - 0x2b4]
call fcn.00404854
lea eax, [ebp - 0x2b0]
mov edx, 9
call fcn.00404878
lea eax, [ebp - 0x28c]
call fcn.00404854
lea eax, [ebp - 0x288]
mov edx, 2
call fcn.00404878
lea eax, [ebp - 0x280]
call fcn.00404854
lea eax, [ebp - 0x27c]
mov edx, 4
call fcn.00404878
lea eax, [ebp - 0x14]
mov edx, 2
call fcn.00404878
lea eax, [ebp - 4]
call fcn.00404854
lea eax, [ebp + 0x18]
mov edx, 3
call fcn.00404878
lea eax, [ebp + 0x28]
mov edx, 2
call fcn.00404878
ret