Function at 0x45f9d8
Capabilities:
Connect to http server

Disassembly:
push ebp
mov ebp, esp
push ecx
mov ecx, 0x55
push 0
push 0
dec ecx
jne 0x45f9e1
push ecx
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.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 0x4600af
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 0x45fab5
lea edx, [ebp - 0x26c]
mov eax, dword [ebx + 0x34]
call fcn.00408da0
push dword [ebp - 0x26c]
push 0x4600cc
push dword [ebx + 0x104]
push 0x4600cc
mov eax, dword [ebx + 0x94]
call fcn.00463e34
lea edx, [ebp - 0x270]
call fcn.00408da0
push dword [ebp - 0x270]
push 0x4600d8
lea eax, [ebp - 0x268]
mov edx, 6
call fcn.00404bd4
mov edx, dword [ebp - 0x268]
mov eax, dword [ebx + 0x48]
call fcn.0044d738
jmp 0x45fabf
xor edx, edx
mov eax, dword [ebx + 0x48]
call fcn.0044d738
cmp byte [ebx + 0x115], 0
je 0x45fb2b
push dword [ebx + 0x78]
push 0x4600cc
lea edx, [ebp - 0x278]
mov eax, dword [ebx + 0x48]
call fcn.0044d708
push dword [ebp - 0x278]
lea edx, [ebp - 0x27c]
mov eax, dword [ebp + 0x20]
call fcn.0045cd64
push dword [ebp - 0x27c]
push 0x4600cc
push dword [ebx + 0x108]
push 0x4600cc
push dword [ebp + 0x28]
lea eax, [ebp - 0x274]
mov edx, 8
call fcn.00404bd4
mov edx, dword [ebp - 0x274]
mov eax, dword [ebx + 0x48]
call fcn.0044d738
jmp 0x45fb79
push dword [ebx + 0x78]
push 0x4600cc
lea edx, [ebp - 0x284]
mov eax, dword [ebx + 0x48]
call fcn.0044d708
push dword [ebp - 0x284]
lea edx, [ebp - 0x288]
mov eax, dword [ebp + 0x20]
call fcn.0045cd64
push dword [ebp - 0x288]
lea eax, [ebp - 0x280]
mov edx, 4
call fcn.00404bd4
mov edx, dword [ebp - 0x280]
mov eax, dword [ebx + 0x48]
call fcn.0044d738
cmp byte [ebx + 0x112], 0
je 0x45fb89
mov esi, 0x8000000
jmp 0x45fb8b
xor esi, esi
mov eax, dword [0x46d164]
mov eax, dword [eax]
call fcn.0043efdc
cmp dword [ebp - 4], 0
je 0x45fba3
cmp dword [ebp + 0x2c], 0
jne 0x45fbcb
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 0x45fbff
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 0x45fc62
cmp word [ebx + 0xa2], 0
je 0x45fc22
mov ecx, 6
mov edx, ebx
mov eax, dword [ebx + 0xa4]
call dword [ebx + 0xa0]
cmp word [ebx + 0xaa], 0
je 0x46002c
lea eax, [ebp - 0x28c]
mov ecx, dword [ebp + 0x28]
mov edx, 0x4600e4
call fcn.00404b60
mov eax, dword [ebp - 0x28c]
push eax
mov ecx, 6
mov edx, ebx
mov eax, dword [ebx + 0xac]
call dword [ebx + 0xa8]
jmp 0x46002c
cmp byte [ebp + 8], 0
je 0x45fc8a
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 - 0x1d], 0
mov eax, dword [0x46d164]
mov eax, dword [eax]
call fcn.0043efdc
mov edx, dword [ebp + 0x20]
mov eax, 0x46010c
call fcn.00404e58
test eax, eax
jle 0x45fcd8
mov al, byte [0x460110]
push eax
lea eax, [ebp - 0x290]
push eax
mov ecx, 0x46011c
mov edx, 0x46010c
mov eax, dword [ebp + 0x20]
call fcn.0040dc20
mov edx, dword [ebp - 0x290]
lea eax, [ebp + 0x20]
call fcn.004048ec
mov edx, dword [ebp + 0x20]
mov eax, 0x46011c
call fcn.00404e58
test eax, eax
jle 0x45fd68
lea eax, [ebp - 0x18]
mov edx, dword [ebp + 0x20]
call fcn.004048ec
jmp 0x45fd0d
mov eax, dword [ebp - 0x18]
call fcn.00404b14
mov edx, eax
lea eax, [ebp - 0x18]
mov ecx, 1
call fcn.00404db4
mov eax, dword [ebp - 0x18]
call fcn.00404b14
mov edx, dword [ebp - 0x18]
cmp byte [edx + eax - 1], 0x2f
je 0x45fd2b
mov eax, dword [ebp - 0x18]
call fcn.00404b14
test eax, eax
jg 0x45fcf6
mov eax, dword [ebp - 0x18]
call fcn.00404b14
test eax, eax
jle 0x45fd68
mov dword [ebp - 0x1c], 0xff
lea eax, [ebp - 0x1c]
push eax
lea eax, [ebp - 0x264]
push eax
mov eax, dword [ebp - 0xc]
push eax
call sub.wininet.dll_FtpGetCurrentDirectoryA
mov byte [ebp - 0x1d], 1
mov eax, dword [ebp - 0x18]
call fcn.00404d14
push eax
mov eax, dword [ebp - 0xc]
push eax
call sub.wininet.dll_FtpSetCurrentDirectoryA
lea edx, [ebp - 0x14]
mov eax, dword [ebp + 0x20]
call fcn.0045cd64
push 0
push 0
lea eax, [ebp - 0x164]
push eax
mov eax, dword [ebp - 0x14]
call fcn.00404d14
push eax
mov eax, dword [ebp - 0xc]
push eax
call sub.wininet.dll_FtpFindFirstFileA
mov dword [ebp - 0x10], eax
mov edx, edi
mov eax, dword [ebx + 0x94]
call fcn.00463e6c
cmp dword [eax + 0x54], 0
je 0x45fdbb
mov edx, edi
mov eax, dword [ebx + 0x94]
call fcn.00463e6c
mov eax, dword [eax + 0x54]
call fcn.00403a40
mov edx, edi
mov eax, dword [ebx + 0x94]
call fcn.00463e6c
cmp dword [eax + 0x58], 0
je 0x45fde3
mov edx, edi
mov eax, dword [ebx + 0x94]
call fcn.00463e6c
mov eax, dword [eax + 0x58]
call fcn.00403a40
mov dl, 1
mov eax, dword [0x416348]
call fcn.00403a10
mov esi, eax
mov edx, edi
mov eax, dword [ebx + 0x94]
call fcn.00463e6c
mov dword [eax + 0x54], esi
mov dl, 1
mov eax, dword [0x45be30]
call fcn.00463f20
mov esi, eax
mov edx, edi
mov eax, dword [ebx + 0x94]
call fcn.00463e6c
mov dword [eax + 0x58], esi
cmp dword [ebp - 0x10], 0
je 0x45ffc5
lea edx, [ebp - 0x294]
lea eax, [ebp - 0x138]
call fcn.00409848
mov eax, dword [ebp - 0x294]
push eax
mov edx, edi
mov eax, dword [ebx + 0x94]
call fcn.00463e6c
mov eax, dword [eax + 0x54]
pop edx
mov ecx, dword [eax]
call dword [ecx + 0x38]
mov edx, edi
mov eax, dword [ebx + 0x94]
call fcn.00463e6c
mov eax, dword [eax + 0x58]
call fcn.00463f14
mov esi, eax
lea edx, [ebp - 0x298]
lea eax, [ebp - 0x138]
call fcn.00409848
mov edx, dword [ebp - 0x298]
lea eax, [esi + 0x10]
call fcn.004048a8
mov eax, dword [ebp - 0x164]
mov dword [esi + 0xc], eax
mov eax, dword [ebp - 0x144]
mov dword [esi + 0x14], eax
mov eax, dword [ebp - 0x148]
mov dword [esi + 0x18], eax
mov eax, dword [ebp - 0x160]
mov dword [esi + 0x1c], eax
mov eax, dword [ebp - 0x15c]
mov dword [esi + 0x20], eax
xor eax, eax
mov dword [ebp - 0x24], eax
jmp 0x45ffa4
lea edx, [ebp - 0x29c]
lea eax, [ebp - 0x138]
call fcn.00409848
mov eax, dword [ebp - 0x29c]
push eax
mov edx, edi
mov eax, dword [ebx + 0x94]
call fcn.00463e6c
mov eax, dword [eax + 0x54]
pop edx
mov ecx, dword [eax]
call dword [ecx + 0x38]
mov edx, edi
mov eax, dword [ebx + 0x94]
call fcn.00463e6c
mov eax, dword [eax + 0x58]
call fcn.00463f14
mov esi, eax
lea edx, [ebp - 0x2a0]
lea eax, [ebp - 0x138]
call fcn.00409848
mov edx, dword [ebp - 0x2a0]
lea eax, [esi + 0x10]
call fcn.004048a8
mov eax, dword [ebp - 0x164]
mov dword [esi + 0xc], eax
mov eax, dword [ebp - 0x144]
mov dword [esi + 0x14], eax
mov eax, dword [ebp - 0x148]
mov dword [esi + 0x18], eax
mov eax, dword [ebp - 0x160]
mov dword [esi + 0x1c], eax
mov eax, dword [ebp - 0x15c]
mov dword [esi + 0x20], eax
lea edx, [ebp - 0x2a8]
mov eax, dword [ebp - 0x24]
inc eax
call fcn.00408da0
push dword [ebp - 0x2a8]
push 0x4600cc
lea edx, [ebp - 0x2ac]
lea eax, [ebp - 0x138]
call fcn.00409848
push dword [ebp - 0x2ac]
lea eax, [ebp - 0x2a4]
mov edx, 3
call fcn.00404bd4
mov edx, dword [ebp - 0x2a4]
mov eax, dword [ebx + 0x48]
call fcn.0044d738
lea eax, [ebp - 0x164]
push eax
mov eax, dword [ebp - 0x10]
push eax
call sub.wininet.dll_InternetFindNextFileA
test eax, eax
jne 0x45fec4
mov eax, dword [ebp - 0x10]
push eax
call sub.wininet.dll_InternetCloseHandle
cmp byte [ebp + 8], 0
jne 0x45ffe1
mov eax, dword [ebp - 0xc]
push eax
call sub.wininet.dll_InternetCloseHandle
lea eax, [ebx + 0x158]
call fcn.00404854
jmp 0x460028
cmp byte [ebp - 0x1d], 0
je 0x460028
lea eax, [ebp - 0x2b0]
lea edx, [ebp - 0x264]
mov ecx, pe_nt_image_headers32
call fcn.00404ac4
cmp dword [ebp - 0x2b0], 0
jne 0x460018
mov esi, 0x460120
lea edi, [ebp - 0x264]
mov ecx, 0x40
rep movsd dword es:[edi], dword [esi]
lea eax, [ebp - 0x264]
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 0x4600b6
lea eax, [ebp - 0x2b0]
mov edx, 0xb
call fcn.00404878
lea eax, [ebp - 0x284]
call fcn.00404854
lea eax, [ebp - 0x280]
mov edx, 2
call fcn.00404878
lea eax, [ebp - 0x278]
call fcn.00404854
lea eax, [ebp - 0x274]
mov edx, 4
call fcn.00404878
lea eax, [ebp - 0x18]
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