Function at 0x461764
Capabilities:
Connect to http server

Disassembly:
push ebp
mov ebp, esp
push ecx
mov ecx, 0x52
push 0
push 0
dec ecx
jne 0x46176d
push ecx
xchg dword [ebp - 4], ecx
push ebx
push esi
push edi
mov dword [ebp - 8], ecx
mov dword [ebp - 4], edx
mov ebx, eax
mov eax, dword [ebp - 8]
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
lea eax, [ebp - 0x174]
mov edx, dword [0x407df4]
call fcn.004051e4
xor eax, eax
push ebp
push 0x461c97
push dword fs:[eax]
mov dword fs:[eax], esp
mov eax, dword [ebp + 0xc]
mov byte [eax], 0
mov byte [ebp - 9], 0
mov edx, 0x102
mov eax, dword [ebx + 0x64]
call fcn.0045af10
mov edx, dword [0x46e668]
mov eax, dword [ebx + 0x64]
call fcn.0045aebc
mov dl, 1
mov eax, dword [ebx + 0x64]
call fcn.0045ac80
mov eax, dword [ebx + 0x94]
call fcn.00419014
dec eax
jle 0x461874
lea edx, [ebp - 0x27c]
mov eax, dword [ebx + 0x34]
call fcn.00408da0
push dword [ebp - 0x27c]
push 0x461cb4
push dword [ebx + 0x104]
push 0x461cb4
mov eax, dword [ebx + 0x94]
call fcn.00463e34
lea edx, [ebp - 0x280]
call fcn.00408da0
push dword [ebp - 0x280]
push 0x461cc0
lea eax, [ebp - 0x278]
mov edx, 6
call fcn.00404bd4
mov edx, dword [ebp - 0x278]
mov eax, dword [ebx + 0x48]
call fcn.0044d738
jmp 0x46187e
xor edx, edx
mov eax, dword [ebx + 0x48]
call fcn.0044d738
push dword [ebx + 0x78]
push 0x461cb4
lea edx, [ebp - 0x288]
mov esi, dword [ebx + 0x48]
mov eax, esi
call fcn.0044d708
push dword [ebp - 0x288]
lea edx, [ebp - 0x28c]
mov eax, dword [ebp + 0x20]
call fcn.0045cd64
push dword [ebp - 0x28c]
push 0x461cb4
push dword [ebx + 0x10c]
push 0x461cb4
push dword [ebp + 0x28]
lea eax, [ebp - 0x284]
mov edx, 8
call fcn.00404bd4
mov edx, dword [ebp - 0x284]
mov eax, esi
call fcn.0044d738
cmp byte [ebx + 0x112], 0
je 0x4618f0
mov esi, 0x8000000
jmp 0x4618f2
xor esi, esi
mov eax, dword [0x46d164]
mov eax, dword [eax]
call fcn.0043efdc
lea eax, [ebx + 0x15c]
call fcn.00404854
cmp dword [ebp - 8], 0
je 0x461915
cmp dword [ebp + 0x2c], 0
jne 0x46193c
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 esi, eax
jmp 0x46196f
push 0
push esi
push 1
mov eax, dword [ebp + 0x2c]
call fcn.00404d14
push eax
mov eax, dword [ebp - 8]
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 esi, eax
test esi, esi
jne 0x4619d0
cmp word [ebx + 0xa2], 0
je 0x461990
mov ecx, 6
mov edx, ebx
mov eax, dword [ebx + 0xa4]
call dword [ebx + 0xa0]
cmp word [ebx + 0xaa], 0
je 0x461c1e
lea eax, [ebp - 0x290]
mov ecx, dword [ebp + 0x28]
mov edx, 0x461ccc
call fcn.00404b60
mov eax, dword [ebp - 0x290]
push eax
mov ecx, 6
mov edx, ebx
mov eax, dword [ebx + 0xac]
call dword [ebx + 0xa8]
jmp 0x461c1e
cmp byte [ebp + 8], 0
je 0x4619f5
mov dword [ebx + 0x154], esi
push dword [ebp + 0x28]
push dword [ebp - 8]
push dword [ebp + 0x2c]
lea eax, [ebx + 0x158]
mov edx, 3
call fcn.00404bd4
mov eax, dword [0x46d164]
mov eax, dword [eax]
call fcn.0043efdc
cmp byte [ebp + 8], 0
je 0x461a17
lea eax, [ebx + 0x15c]
mov edx, dword [ebp + 0x1c]
call fcn.004048a8
jmp 0x461a22
lea eax, [ebx + 0x15c]
call fcn.00404854
mov dword [ebp - 0x1c], 0xff
lea eax, [ebp - 0x1c]
push eax
lea eax, [ebp - 0x274]
push eax
push esi
call sub.wininet.dll_FtpGetCurrentDirectoryA
mov eax, dword [ebp + 0x1c]
call fcn.00404d14
push eax
push esi
call sub.wininet.dll_FtpSetCurrentDirectoryA
test eax, eax
jne 0x461b21
lea edx, [ebp - 0x14]
mov eax, dword [ebp + 0x1c]
call fcn.0045cc18
lea eax, [ebx + 0x15c]
call fcn.00404854
mov edx, dword [ebp - 0x14]
mov eax, 0x461cf4
call fcn.00404e58
test eax, eax
jle 0x461ab7
lea eax, [ebp - 0x18]
push eax
mov edx, dword [ebp - 0x14]
mov eax, 0x461cf4
call fcn.00404e58
mov ecx, eax
dec ecx
mov edx, 1
mov eax, dword [ebp - 0x14]
call fcn.00404d74
mov edx, dword [ebp - 0x14]
mov eax, 0x461cf4
call fcn.00404e58
mov ecx, eax
lea eax, [ebp - 0x14]
mov edx, 1
call fcn.00404db4
jmp 0x461aca
lea eax, [ebp - 0x18]
mov edx, dword [ebp - 0x14]
call fcn.004048ec
lea eax, [ebp - 0x14]
call fcn.00404854
cmp dword [ebp - 0x18], 0
je 0x461b17
mov eax, dword [ebp - 0x18]
call fcn.00404d14
mov edi, eax
push edi
push esi
call sub.wininet.dll_FtpSetCurrentDirectoryA
test eax, eax
jne 0x461b17
push edi
push esi
call sub.wininet.dll_FtpCreateDirectoryA
test eax, eax
jne 0x461b10
cmp byte [ebp + 8], 0
jne 0x461c1e
push esi
call sub.wininet.dll_InternetCloseHandle
lea eax, [ebx + 0x158]
call fcn.00404854
jmp 0x461c1e
push edi
push esi
call sub.wininet.dll_FtpSetCurrentDirectoryA
cmp dword [ebp - 0x14], 0
jne 0x461a67
mov eax, dword [0x46d164]
mov eax, dword [eax]
call fcn.0043efdc
lea eax, [ebp - 0x10]
mov edx, dword [ebp + 0x20]
call fcn.004048ec
cmp dword [ebp + 0x18], 0
jne 0x461b49
lea edx, [ebp + 0x18]
mov eax, dword [ebp + 0x20]
call fcn.0045cd64
lea ecx, [ebp - 0x174]
mov edx, 0x3f
mov eax, dword [ebp - 0x10]
call fcn.00409330
test eax, eax
jne 0x461c09
mov eax, dword [ebp + 0x2c]
push eax
mov eax, dword [ebp + 0x28]
push eax
mov eax, dword [ebp + 0x24]
push eax
lea edx, [ebp - 0x294]
mov eax, dword [ebp - 0x10]
call fcn.00409460
lea eax, [ebp - 0x294]
mov edx, dword [ebp - 0x168]
call fcn.00404b1c
mov eax, dword [ebp - 0x294]
push eax
mov eax, dword [ebp + 0x1c]
push eax
lea edx, [ebp - 0x298]
mov eax, dword [ebp - 0x168]
call fcn.004094e8
mov eax, dword [ebp - 0x298]
push eax
mov al, byte [ebp + 0x14]
push eax
mov eax, dword [ebp + 0x10]
push eax
mov eax, dword [ebp + 0xc]
push eax
push 1
mov ecx, dword [ebp - 8]
mov edx, dword [ebp - 4]
mov eax, ebx
call fcn.00461cf8
cmp word [ebx + 0xf2], 0
je 0x461beb
mov ecx, dword [ebp - 0x168]
mov edx, ebx
mov eax, dword [ebx + 0xf4]
call dword [ebx + 0xf0]
lea eax, [ebp - 0x174]
call fcn.00409380
test eax, eax
je 0x461b64
lea eax, [ebp - 0x174]
call fcn.004093a4
push esi
call sub.wininet.dll_InternetCloseHandle
lea eax, [ebx + 0x158]
call fcn.00404854
mov byte [ebp - 9], 1
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x461c9e
lea eax, [ebp - 0x298]
mov edx, 4
call fcn.00404878
lea eax, [ebp - 0x288]
call fcn.00404854
lea eax, [ebp - 0x284]
mov edx, 4
call fcn.00404878
lea eax, [ebp - 0x174]
mov edx, dword [0x407df4]
call fcn.004052b4
lea eax, [ebp - 0x18]
mov edx, 3
call fcn.00404878
lea eax, [ebp - 8]
call fcn.00404854
lea eax, [ebp + 0x18]
mov edx, 3
call fcn.00404878
lea eax, [ebp + 0x28]
mov edx, 2
call fcn.00404878
ret