Function at 0x416070
Capabilities:
Connect to http server

Disassembly:
push ebx
mov ebx, esp
sub esp, 8
and esp, 0xfffffff8
add esp, 4
push ebp
mov ebp, dword [ebx + 4]
mov dword [esp + 4], ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x601f08
mov eax, dword fs:[0]
push eax
push ebx
sub esp, 0x58
push esi
push edi
mov eax, dword [0x7f206c]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov edi, ecx
mov eax, dword [0x8013c4]
lea ecx, [ebp - 0x1c]
push 4
push ecx
push 0x46
push eax
mov dword [ebp - 0x18], eax
mov dword [ebp - 0x1c], 1
call dword [sym.imp.WININET.dll_InternetSetOptionW]
mov eax, dword [edi + 0x5c]
lea esi, [edi + 0x5c]
test eax, eax
jne 0x4160dd
mov dword [esi], 0x7530
jmp 0x4160e5
jns 0x4160e5
mov dword [esi], 0xffffffff
push 4
push esi
push 2
push dword [ebp - 0x18]
call dword [sym.imp.WININET.dll_InternetSetOptionW]
push 4
push esi
push 6
push dword [ebp - 0x18]
call dword [sym.imp.WININET.dll_InternetSetOptionW]
push 4
push esi
push 5
push dword [ebp - 0x18]
call dword [sym.imp.WININET.dll_InternetSetOptionW]
push 4
push esi
push 8
push dword [ebp - 0x18]
call dword [sym.imp.WININET.dll_InternetSetOptionW]
push 4
push esi
mov esi, dword [ebp - 0x18]
push 7
push esi
call dword [sym.imp.WININET.dll_InternetSetOptionW]
lea ecx, [ebp - 0x18]
mov dword [ebp - 0x18], str.ftp:
call fcn.0040fc40
mov ecx, dword [ebx + 0x10]
push str.ftp:
push dword [ecx]
mov ecx, eax
call fcn.0041f7c0
add esp, 8
test eax, eax
lea eax, [edi + 0x88]
sete byte [ebp - 0x11]
push eax
call dword [sym.imp.KERNEL32.dll_EnterCriticalSection]
cmp byte [edi + 0xa0], 0
je 0x41616f
xor eax, eax
jmp 0x41619a
movzx eax, byte [ebp - 0x11]
mov ecx, dword [ebx + 8]
xor eax, 1
push 0
push 0
lea eax, [eax*2 + 1]
push eax
push dword [ecx + 0x24]
movzx eax, word [ecx + 0x18]
push dword [ecx + 0x1c]
push eax
push dword [ecx + 0x10]
push esi
call dword [sym.imp.WININET.dll_InternetConnectW]
lea esi, [edi + 0x88]
mov dword [edi + 0x3c], eax
push esi
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
mov eax, dword [edi + 0x3c]
test eax, eax
je 0x41631c
cmp byte [ebp - 0x11], 0
je 0x4161d9
mov esi, dword [ebx + 8]
push 0
push 0x12
push bind
push dword [esi + 0x2c]
push eax
call dword [sym.imp.WININET.dll_FtpOpenFileW]
mov dword [edi + 0x40], eax
jmp 0x41631c
mov eax, dword [ebx + 0x14]
lea ecx, [ebp - 0x18]
mov dword [ebp - 0x20], eax
mov dword [ebp - 0x30], 0x7aceb0
mov dword [ebp - 0x2c], 0
mov dword [ebp - 0x18], str.https:
call fcn.0040fc40
mov ecx, dword [ebx + 0x10]
push str.https:
push dword [ecx]
mov ecx, eax
call fcn.0041f7c0
add esp, 8
mov dword [ebp - 0x24], esi
test eax, eax
mov ecx, 0x84a80000
mov eax, 0x84280000
cmove eax, ecx
push esi
mov dword [ebp - 0x18], eax
call dword [sym.imp.KERNEL32.dll_EnterCriticalSection]
mov dword [ebp - 4], 0
cmp byte [edi + 0xa0], 0
je 0x416240
xor eax, eax
jmp 0x416271
mov esi, dword [ebx + 8]
lea edx, [edi + 0x60]
lea ecx, [ebp - 0x28]
mov esi, dword [esi + 0x2c]
call fcn.00418480
mov ecx, dword [ebp - 0x18]
push 0
push ecx
lea ecx, [ebp - 0x30]
push ecx
push 0
push 0
push esi
push dword [eax]
push dword [edi + 0x3c]
call dword [sym.imp.WININET.dll_HttpOpenRequestW]
lea esi, [edi + 0x88]
push esi
mov dword [edi + 0x40], eax
mov dword [ebp - 4], 0xffffffff
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
cmp dword [edi + 0x40], 0
je 0x4162f4
xorps xmm0, xmm0
lea edx, [edi + 0x44]
movups xmmword [ebp - 0x64], xmm0
lea ecx, [ebp - 0x28]
mov dword [ebp - 0x64], 0x28
movq qword [ebp - 0x44], xmm0
movups xmmword [ebp - 0x54], xmm0
call fcn.00418480
lea ecx, [edi + 0x44]
mov eax, dword [eax]
mov dword [ebp - 0x5c], eax
call fcn.0040fc40
mov dword [ebp - 0x58], eax
lea ecx, [ebp - 0x3c]
mov eax, dword [edi + 0x4c]
mov dword [ebp - 0x48], eax
lea eax, [ebp - 0x64]
mov dword [ebp - 0x38], eax
lea eax, [ebp - 0x20]
mov dword [ebp - 0x3c], edi
mov dword [ebp - 0x34], eax
call fcn.00416340
test al, al
jne 0x41631c
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0x2f00
jne 0x4162f4
lea ecx, [ebp - 0x3c]
call fcn.00416340
test al, al
jne 0x41631c
mov eax, dword [edi + 0x40]
mov esi, dword [sym.imp.WININET.dll_InternetCloseHandle]
mov dword [edi + 0x40], 0
test eax, eax
je 0x41630b
push eax
call esi
mov eax, dword [edi + 0x3c]
test eax, eax
je 0x41631c
push eax
call esi
mov dword [edi + 0x3c], 0
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
mov esp, ebp
pop ebp
mov esp, ebx
pop ebx
ret 0x10