Function at 0x46a754
Capabilities:
Connect to http server

Disassembly:
push ebp
mov ebp, esp
push ecx
mov ecx, 5
push 0
push 0
dec ecx
jne 0x46a75d
xchg dword [ebp - 4], ecx
push ebx
push esi
push edi
mov dword [ebp - 4], ecx
mov edi, edx
mov ebx, eax
mov eax, dword [ebp - 4]
call fcn.004053c4
mov eax, dword [ebp + 0x20]
call fcn.004053c4
mov eax, dword [ebp + 0x1c]
call fcn.004053c4
mov eax, dword [ebp + 0x14]
call fcn.004053c4
mov eax, dword [ebp + 0x10]
call fcn.004053c4
mov eax, dword [ebp + 0xc]
call fcn.004053c4
xor eax, eax
push ebp
push 0x46ab19
push dword fs:[eax]
mov dword fs:[eax], esp
mov byte [ebp - 9], 0
mov edx, 0x102
mov eax, dword [ebx + 0x68]
call fcn.00462c4c
mov edx, dword [0x4737f4]
mov eax, dword [ebx + 0x68]
call fcn.00462c08
mov dl, 1
mov eax, dword [ebx + 0x68]
call fcn.00462994
mov eax, dword [ebx + 0xa0]
call fcn.00416484
dec eax
jle 0x46a839
lea edx, [ebp - 0x14]
mov eax, dword [ebx + 0x34]
call fcn.00409140
push dword [ebp - 0x14]
push 0x46ab38
push dword [ebx + 0x10c]
push 0x46ab38
mov eax, dword [ebx + 0xa0]
call fcn.0046be38
lea edx, [ebp - 0x18]
call fcn.00409140
push dword [ebp - 0x18]
push 0x46ab44
lea eax, [ebp - 0x10]
mov edx, 6
call fcn.004052d8
mov edx, dword [ebp - 0x10]
mov eax, dword [ebx + 0x48]
call fcn.00440004
jmp 0x46a843
xor edx, edx
mov eax, dword [ebx + 0x48]
call fcn.00440004
push dword [ebx + 0x7c]
push 0x46ab38
lea edx, [ebp - 0x20]
mov esi, dword [ebx + 0x48]
mov eax, esi
call fcn.0043ffd4
push dword [ebp - 0x20]
lea edx, [ebp - 0x24]
mov eax, dword [ebp + 0x14]
call fcn.00464668
push dword [ebp - 0x24]
push 0x46ab38
push dword [ebx + 0x114]
push 0x46ab38
push dword [ebp + 0x1c]
lea eax, [ebp - 0x1c]
mov edx, 8
call fcn.004052d8
mov edx, dword [ebp - 0x1c]
mov eax, esi
call fcn.00440004
cmp byte [ebx + 0x11a], 0
je 0x46a8a3
mov esi, 0x8000000
jmp 0x46a8a5
xor esi, esi
mov eax, dword [0x470c2c]
mov eax, dword [eax]
call fcn.0045e748
push dword [ebp + 0x1c]
push dword [ebp - 4]
push dword [ebp + 0x20]
lea eax, [ebp - 0x28]
mov edx, 3
call fcn.004052d8
mov edx, dword [ebp - 0x28]
mov eax, dword [ebx + 0x160]
call fcn.0040536c
jne 0x46a8df
mov esi, dword [ebx + 0x15c]
jmp 0x46a950
lea eax, [ebx + 0x164]
call fcn.00404f44
cmp dword [ebp - 4], 0
je 0x46a8f6
cmp dword [ebp + 0x20], 0
jne 0x46a91d
push 0
push esi
push 1
push 0
push 0
movzx eax, word [ebp + 0x18]
push eax
mov eax, dword [ebp + 0x1c]
call fcn.004053d4
push eax
mov eax, dword [ebx + 0xa4]
push eax
call sub.wininet.dll_InternetConnectA
mov esi, eax
jmp 0x46a950
push 0
push esi
push 1
mov eax, dword [ebp + 0x20]
call fcn.004053d4
push eax
mov eax, dword [ebp - 4]
call fcn.004053d4
push eax
movzx eax, word [ebp + 0x18]
push eax
mov eax, dword [ebp + 0x1c]
call fcn.004053d4
push eax
mov eax, dword [ebx + 0xa4]
push eax
call sub.wininet.dll_InternetConnectA
mov esi, eax
test esi, esi
jne 0x46a9ab
cmp word [ebx + 0xaa], 0
je 0x46a971
mov ecx, 6
mov edx, ebx
mov eax, dword [ebx + 0xac]
call dword [ebx + 0xa8]
cmp word [ebx + 0xb2], 0
je 0x46aac2
lea eax, [ebp - 0x2c]
mov ecx, dword [ebp + 0x1c]
mov edx, 0x46ab50
call fcn.0040525c
mov eax, dword [ebp - 0x2c]
push eax
mov ecx, 6
mov edx, ebx
mov eax, dword [ebx + 0xb4]
call dword [ebx + 0xb0]
jmp 0x46aac2
cmp byte [ebp + 8], 0
je 0x46a9d0
mov dword [ebx + 0x15c], esi
push dword [ebp + 0x1c]
push dword [ebp - 4]
push dword [ebp + 0x20]
lea eax, [ebx + 0x160]
mov edx, 3
call fcn.004052d8
mov eax, dword [0x470c2c]
mov eax, dword [eax]
call fcn.0045e748
cmp dword [ebp + 0x10], 0
je 0x46aa2a
mov eax, dword [ebp + 0x10]
mov edx, dword [ebx + 0x164]
call fcn.0040536c
je 0x46aa2a
cmp byte [ebp + 8], 0
je 0x46aa08
lea eax, [ebx + 0x164]
mov edx, dword [ebp + 0x10]
call fcn.00404f98
jmp 0x46aa13
lea eax, [ebx + 0x164]
call fcn.00404f44
mov eax, dword [ebp + 0x10]
call fcn.004053d4
push eax
push esi
call sub.wininet.dll_FtpSetCurrentDirectoryA
test eax, eax
je 0x46aac2
mov eax, dword [0x470c2c]
mov eax, dword [eax]
call fcn.0045e748
lea eax, [ebp - 8]
mov edx, dword [ebp + 0x14]
call fcn.00404fdc
cmp dword [ebp + 0xc], 0
jne 0x46aa52
lea edx, [ebp + 0xc]
mov eax, dword [ebp + 0x14]
call fcn.00464668
mov eax, dword [ebp + 0xc]
call fcn.004053d4
push eax
push esi
call sub.wininet.dll_FtpDeleteFileA
test eax, eax
je 0x46aa81
cmp word [ebx + 0x182], 0
je 0x46aa9b
mov ecx, edi
mov edx, ebx
mov eax, dword [ebx + 0x184]
call dword [ebx + 0x180]
jmp 0x46aa9b
cmp word [ebx + 0x18a], 0
je 0x46aa9b
mov ecx, edi
mov edx, ebx
mov eax, dword [ebx + 0x18c]
call dword [ebx + 0x188]
mov eax, dword [0x470c2c]
mov eax, dword [eax]
call fcn.0045e748
cmp byte [ebp + 8], 0
jne 0x46aabe
push esi
call sub.wininet.dll_InternetCloseHandle
lea eax, [ebx + 0x160]
call fcn.00404f44
mov byte [ebp - 9], 1
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x46ab20
lea eax, [ebp - 0x2c]
mov edx, 3
call fcn.00404f68
lea eax, [ebp - 0x20]
call fcn.00404f44
lea eax, [ebp - 0x1c]
mov edx, 4
call fcn.00404f68
lea eax, [ebp - 8]
mov edx, 2
call fcn.00404f68
lea eax, [ebp + 0xc]
mov edx, 3
call fcn.00404f68
lea eax, [ebp + 0x1c]
mov edx, 2
call fcn.00404f68
ret