Function at 0x473e2c
Capabilities:
Connect to http server

Disassembly:
push ebp
mov ebp, esp
push ecx
mov ecx, 6
push 0
push 0
dec ecx
jne 0x473e35
xchg dword [ebp - 4], ecx
push ebx
push esi
push edi
mov dword [ebp - 8], ecx
mov dword [ebp - 4], edx
mov esi, eax
mov ebx, dword [ebp + 8]
mov eax, dword [ebp - 8]
call fcn.00404f44
mov eax, dword [ebp + 0x20]
call fcn.00404f44
mov eax, dword [ebp + 0x1c]
call fcn.00404f44
mov eax, dword [ebp + 0x14]
call fcn.00404f44
mov eax, dword [ebp + 0x10]
call fcn.00404f44
mov eax, dword [ebp + 0xc]
call fcn.00404f44
xor eax, eax
push ebp
push 0x4741ff
push dword fs:[eax]
mov dword fs:[eax], esp
mov byte [ebp - 9], 0
mov edx, 0x102
mov eax, dword [esi + 0x64]
call fcn.0043f63c
mov edx, dword [0x481668]
mov eax, dword [esi + 0x64]
call fcn.0043f5e8
mov dl, 1
mov eax, dword [esi + 0x64]
call fcn.0043f3ac
mov eax, dword [esi + 0x94]
call fcn.0041ab50
dec eax
jle 0x473f15
lea edx, [ebp - 0x1c]
mov eax, dword [esi + 0x34]
call fcn.00408eb0
push dword [ebp - 0x1c]
push 0x47421c
push dword [esi + 0xfc]
push 0x47421c
mov eax, dword [esi + 0x94]
call fcn.00475324
lea edx, [ebp - 0x20]
call fcn.00408eb0
push dword [ebp - 0x20]
push 0x474228
lea eax, [ebp - 0x18]
mov edx, 6
call fcn.00404e14
mov edx, dword [ebp - 0x18]
mov eax, dword [esi + 0x48]
call fcn.0044c614
jmp 0x473f1f
xor edx, edx
mov eax, dword [esi + 0x48]
call fcn.0044c614
push dword [esi + 0x78]
push 0x47421c
lea edx, [ebp - 0x28]
mov edi, dword [esi + 0x48]
mov eax, edi
call fcn.0044c5e4
push dword [ebp - 0x28]
lea edx, [ebp - 0x2c]
mov eax, dword [ebp + 0x14]
call fcn.0046ef68
push dword [ebp - 0x2c]
push 0x47421c
push dword [esi + 0x104]
push 0x47421c
push dword [ebp + 0x1c]
lea eax, [ebp - 0x24]
mov edx, 8
call fcn.00404e14
mov edx, dword [ebp - 0x24]
mov eax, edi
call fcn.0044c614
cmp byte [esi + 0x10a], 0
je 0x473f7f
mov edi, 0x8000000
jmp 0x473f81
xor edi, edi
mov eax, dword [0x480798]
mov eax, dword [eax]
call fcn.0046bfc0
push dword [ebp + 0x1c]
push dword [ebp - 8]
push dword [ebp + 0x20]
lea eax, [ebp - 0x30]
mov edx, 3
call fcn.00404e14
mov edx, dword [ebp - 0x30]
mov eax, dword [esi + 0x150]
call fcn.00404ea0
jne 0x473fbe
mov eax, dword [esi + 0x14c]
mov dword [ebp - 0x10], eax
jmp 0x474031
lea eax, [esi + 0x154]
call fcn.00404a94
cmp dword [ebp - 8], 0
je 0x473fd5
cmp dword [ebp + 0x20], 0
jne 0x473ffd
push 0
push edi
push 1
push 0
push 0
mov ax, word [ebp + 0x18]
push eax
mov eax, dword [ebp + 0x1c]
call fcn.00404f54
push eax
mov eax, dword [esi + 0x98]
push eax
call sub.wininet.dll_InternetConnectA
mov dword [ebp - 0x10], eax
jmp 0x474031
push 0
push edi
push 1
mov eax, dword [ebp + 0x20]
call fcn.00404f54
push eax
mov eax, dword [ebp - 8]
call fcn.00404f54
push eax
mov ax, word [ebp + 0x18]
push eax
mov eax, dword [ebp + 0x1c]
call fcn.00404f54
push eax
mov eax, dword [esi + 0x98]
push eax
call sub.wininet.dll_InternetConnectA
mov dword [ebp - 0x10], eax
cmp dword [ebp - 0x10], 0
jne 0x47408e
cmp word [esi + 0xa2], 0
je 0x474054
mov ecx, 6
mov edx, esi
mov eax, dword [esi + 0xa4]
call dword [esi + 0xa0]
cmp word [esi + 0xaa], 0
je 0x4741ad
lea eax, [ebp - 0x34]
mov ecx, dword [ebp + 0x1c]
mov edx, 0x474234
call fcn.00404da0
mov eax, dword [ebp - 0x34]
push eax
mov ecx, 6
mov edx, esi
mov eax, dword [esi + 0xac]
call dword [esi + 0xa8]
jmp 0x4741ad
test bl, bl
je 0x4740b4
mov eax, dword [ebp - 0x10]
mov dword [esi + 0x14c], eax
push dword [ebp + 0x1c]
push dword [ebp - 8]
push dword [ebp + 0x20]
lea eax, [esi + 0x150]
mov edx, 3
call fcn.00404e14
mov eax, dword [0x480798]
mov eax, dword [eax]
call fcn.0046bfc0
cmp dword [ebp + 0x10], 0
je 0x47410f
mov eax, dword [ebp + 0x10]
mov edx, dword [esi + 0x154]
call fcn.00404ea0
je 0x47410f
test bl, bl
je 0x4740ea
lea eax, [esi + 0x154]
mov edx, dword [ebp + 0x10]
call fcn.00404ae8
jmp 0x4740f5
lea eax, [esi + 0x154]
call fcn.00404a94
mov eax, dword [ebp + 0x10]
call fcn.00404f54
push eax
mov eax, dword [ebp - 0x10]
push eax
call sub.wininet.dll_FtpSetCurrentDirectoryA
test eax, eax
je 0x4741ad
mov eax, dword [0x480798]
mov eax, dword [eax]
call fcn.0046bfc0
lea eax, [ebp - 0x14]
mov edx, dword [ebp + 0x14]
call fcn.00404b2c
cmp dword [ebp + 0xc], 0
jne 0x474137
lea edx, [ebp + 0xc]
mov eax, dword [ebp + 0x14]
call fcn.0046ef68
mov eax, dword [ebp + 0xc]
call fcn.00404f54
push eax
mov eax, dword [ebp - 0x10]
push eax
call sub.wininet.dll_FtpDeleteFileA
test eax, eax
je 0x47416a
cmp word [esi + 0x162], 0
je 0x474185
mov ecx, dword [ebp - 4]
mov edx, esi
mov eax, dword [esi + 0x164]
call dword [esi + 0x160]
jmp 0x474185
cmp word [esi + 0x16a], 0
je 0x474185
mov ecx, dword [ebp - 4]
mov edx, esi
mov eax, dword [esi + 0x16c]
call dword [esi + 0x168]
mov eax, dword [0x480798]
mov eax, dword [eax]
call fcn.0046bfc0
test bl, bl
jne 0x4741a9
mov eax, dword [ebp - 0x10]
push eax
call sub.wininet.dll_InternetCloseHandle
lea eax, [esi + 0x150]
call fcn.00404a94
mov byte [ebp - 9], 1
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x474206
lea eax, [ebp - 0x34]
mov edx, 3
call fcn.00404ab8
lea eax, [ebp - 0x28]
call fcn.00404a94
lea eax, [ebp - 0x24]
mov edx, 5
call fcn.00404ab8
lea eax, [ebp - 8]
call fcn.00404a94
lea eax, [ebp + 0xc]
mov edx, 3
call fcn.00404ab8
lea eax, [ebp + 0x1c]
mov edx, 2
call fcn.00404ab8
ret