Function at 0x472f5c
Capabilities:
Connect to http server

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffe6c
push ebx
push esi
push edi
xor ebx, ebx
mov dword [ebp - 0x190], ebx
mov dword [ebp - 0x194], ebx
mov dword [ebp - 0x18c], ebx
mov dword [ebp - 0x180], ebx
mov dword [ebp - 0x184], ebx
mov dword [ebp - 0x188], ebx
mov dword [ebp - 0x174], ebx
mov dword [ebp - 0x178], ebx
mov dword [ebp - 0x17c], ebx
mov dword [ebp - 0x18], ebx
mov dword [ebp - 8], ecx
mov dword [ebp - 4], edx
mov ebx, eax
mov edi, dword [ebp + 0xc]
mov esi, dword [ebp + 0x24]
mov eax, dword [ebp - 8]
call fcn.00404f44
mov eax, dword [ebp + 0x2c]
call fcn.00404f44
mov eax, dword [ebp + 0x28]
call fcn.00404f44
mov eax, dword [ebp + 0x20]
call fcn.00404f44
mov eax, dword [ebp + 0x1c]
call fcn.00404f44
mov eax, dword [ebp + 0x18]
call fcn.00404f44
lea eax, [ebp - 0x170]
mov edx, dword [0x407e3c]
call fcn.00405404
xor eax, eax
push ebp
push 0x47341d
push dword fs:[eax]
mov dword fs:[eax], esp
mov byte [edi], 0
mov byte [ebp - 9], 0
mov edx, 0x102
mov eax, dword [ebx + 0x64]
call fcn.0043f63c
mov edx, dword [0x481668]
mov eax, dword [ebx + 0x64]
call fcn.0043f5e8
mov dl, 1
mov eax, dword [ebx + 0x64]
call fcn.0043f3ac
mov eax, dword [ebx + 0x94]
call fcn.0041ab50
dec eax
jle 0x47309f
lea edx, [ebp - 0x178]
mov eax, dword [ebx + 0x34]
call fcn.00408eb0
push dword [ebp - 0x178]
push 0x473438
push dword [ebx + 0xfc]
push 0x473438
mov eax, dword [ebx + 0x94]
call fcn.00475324
lea edx, [ebp - 0x17c]
call fcn.00408eb0
push dword [ebp - 0x17c]
push 0x473444
lea eax, [ebp - 0x174]
mov edx, 6
call fcn.00404e14
mov edx, dword [ebp - 0x174]
mov eax, dword [ebx + 0x48]
call fcn.0044c614
jmp 0x4730a9
xor edx, edx
mov eax, dword [ebx + 0x48]
call fcn.0044c614
push dword [ebx + 0x78]
push 0x473438
lea edx, [ebp - 0x184]
mov eax, dword [ebx + 0x48]
call fcn.0044c5e4
push dword [ebp - 0x184]
lea edx, [ebp - 0x188]
mov eax, dword [ebp + 0x20]
call fcn.0046ef68
push dword [ebp - 0x188]
push 0x473438
push dword [ebx + 0x104]
push 0x473438
push dword [ebp + 0x28]
lea eax, [ebp - 0x180]
mov edx, 8
call fcn.00404e14
mov edx, dword [ebp - 0x180]
mov eax, dword [ebx + 0x48]
call fcn.0044c614
cmp byte [ebx + 0x10a], 0
je 0x47311c
mov dword [ebp - 0x14], 0x8000000
jmp 0x473121
xor eax, eax
mov dword [ebp - 0x14], eax
mov eax, dword [0x480798]
mov eax, dword [eax]
call fcn.0046bfc0
lea eax, [ebx + 0x154]
call fcn.00404a94
cmp dword [ebp - 8], 0
je 0x473144
cmp dword [ebp + 0x2c], 0
jne 0x47316b
push 0
mov eax, dword [ebp - 0x14]
push eax
push 1
push 0
push 0
push esi
mov eax, dword [ebp + 0x28]
call fcn.00404f54
push eax
mov eax, dword [ebx + 0x98]
push eax
call sub.wininet.dll_InternetConnectA
mov dword [ebp - 0x10], eax
jmp 0x47319e
push 0
mov eax, dword [ebp - 0x14]
push eax
push 1
mov eax, dword [ebp + 0x2c]
call fcn.00404f54
push eax
mov eax, dword [ebp - 8]
call fcn.00404f54
push eax
push esi
mov eax, dword [ebp + 0x28]
call fcn.00404f54
push eax
mov eax, dword [ebx + 0x98]
push eax
call sub.wininet.dll_InternetConnectA
mov dword [ebp - 0x10], eax
cmp dword [ebp - 0x10], 0
jne 0x473201
cmp word [ebx + 0xa2], 0
je 0x4731c1
mov ecx, 6
mov edx, ebx
mov eax, dword [ebx + 0xa4]
call dword [ebx + 0xa0]
cmp word [ebx + 0xaa], 0
je 0x4733a9
lea eax, [ebp - 0x18c]
mov ecx, dword [ebp + 0x28]
mov edx, 0x473450
call fcn.00404da0
mov eax, dword [ebp - 0x18c]
push eax
mov ecx, 6
mov edx, ebx
mov eax, dword [ebx + 0xac]
call dword [ebx + 0xa8]
jmp 0x4733a9
cmp byte [ebp + 8], 0
je 0x473229
mov eax, dword [ebp - 0x10]
mov dword [ebx + 0x14c], eax
push dword [ebp + 0x28]
push dword [ebp - 8]
push dword [ebp + 0x2c]
lea eax, [ebx + 0x150]
mov edx, 3
call fcn.00404e14
mov eax, dword [0x480798]
mov eax, dword [eax]
call fcn.0046bfc0
cmp dword [ebp + 0x1c], 0
je 0x4732d5
mov eax, dword [ebp + 0x1c]
mov edx, dword [ebx + 0x154]
call fcn.00404ea0
je 0x4732d5
cmp byte [ebp + 8], 0
je 0x473269
lea eax, [ebx + 0x154]
mov edx, dword [ebp + 0x1c]
call fcn.00404ae8
jmp 0x473274
lea eax, [ebx + 0x154]
call fcn.00404a94
mov eax, dword [ebp + 0x1c]
call fcn.00404f54
push eax
mov eax, dword [ebp - 0x10]
push eax
call sub.wininet.dll_FtpSetCurrentDirectoryA
test eax, eax
jne 0x4732d5
mov eax, dword [ebp + 0x1c]
call fcn.00404f54
push eax
mov eax, dword [ebp - 0x10]
push eax
call sub.wininet.dll_FtpCreateDirectoryA
test eax, eax
jne 0x4732c3
cmp byte [ebp + 8], 0
jne 0x4733a9
mov eax, dword [ebp - 0x10]
push eax
call sub.wininet.dll_InternetCloseHandle
lea eax, [ebx + 0x150]
call fcn.00404a94
jmp 0x4733a9
mov eax, dword [ebp + 0x1c]
call fcn.00404f54
push eax
mov eax, dword [ebp - 0x10]
push eax
call sub.wininet.dll_FtpSetCurrentDirectoryA
mov eax, dword [0x480798]
mov eax, dword [eax]
call fcn.0046bfc0
lea eax, [ebp - 0x18]
mov edx, dword [ebp + 0x20]
call fcn.00404b2c
cmp dword [ebp + 0x18], 0
jne 0x4732fd
lea edx, [ebp + 0x18]
mov eax, dword [ebp + 0x20]
call fcn.0046ef68
lea ecx, [ebp - 0x170]
mov edx, 0x3f
mov eax, dword [ebp - 0x18]
call fcn.00409464
test eax, eax
jne 0x473391
mov eax, dword [ebp + 0x2c]
push eax
mov eax, dword [ebp + 0x28]
push eax
push esi
lea edx, [ebp - 0x190]
mov eax, dword [ebp - 0x18]
call fcn.00409594
lea eax, [ebp - 0x190]
mov edx, dword [ebp - 0x164]
call fcn.00404d5c
mov eax, dword [ebp - 0x190]
push eax
mov eax, dword [ebp + 0x1c]
push eax
lea edx, [ebp - 0x194]
mov eax, dword [ebp - 0x164]
call fcn.0040961c
mov eax, dword [ebp - 0x194]
push eax
mov al, byte [ebp + 0x14]
push eax
mov eax, dword [ebp + 0x10]
push eax
push edi
push 1
mov ecx, dword [ebp - 8]
mov edx, dword [ebp - 4]
mov eax, ebx
call fcn.00473470
lea eax, [ebp - 0x170]
call fcn.004094b4
test eax, eax
je 0x473314
lea eax, [ebp - 0x170]
call fcn.004094d8
mov eax, dword [ebp - 0x10]
push eax
call sub.wininet.dll_InternetCloseHandle
lea eax, [ebx + 0x150]
call fcn.00404a94
mov byte [ebp - 9], 1
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x473424
lea eax, [ebp - 0x194]
mov edx, 4
call fcn.00404ab8
lea eax, [ebp - 0x184]
call fcn.00404a94
lea eax, [ebp - 0x180]
mov edx, 4
call fcn.00404ab8
lea eax, [ebp - 0x170]
mov edx, dword [0x407e3c]
call fcn.004054d4
lea eax, [ebp - 0x18]
call fcn.00404a94
lea eax, [ebp - 8]
call fcn.00404a94
lea eax, [ebp + 0x18]
mov edx, 3
call fcn.00404ab8
lea eax, [ebp + 0x28]
mov edx, 2
call fcn.00404ab8
ret