Function at 0x420ee0
Capabilities:
Connect to http server

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x53d66d
mov eax, dword fs:[0]
push eax
sub esp, 0x40
push ebx
push esi
push edi
mov eax, dword [0x58313c]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov edi, ecx
mov ebx, dword [ebp + 0xc]
lea eax, [ebp - 0x10]
push 4
push eax
push 0x46
push ebx
mov dword [ebp - 0x10], 1
call dword [sym.imp.WININET.dll_InternetSetOptionW]
mov eax, dword [edi + 0x5c]
lea esi, [edi + 0x5c]
test eax, eax
jne 0x420f35
mov dword [esi], 0x7530
jmp 0x420f3d
jns 0x420f3d
mov dword [esi], 0xffffffff
push 4
push esi
push 2
push ebx
call dword [sym.imp.WININET.dll_InternetSetOptionW]
push 4
push esi
push 6
push ebx
call dword [sym.imp.WININET.dll_InternetSetOptionW]
push 4
push esi
push 5
push ebx
call dword [sym.imp.WININET.dll_InternetSetOptionW]
push 4
push esi
push 8
push ebx
call dword [sym.imp.WININET.dll_InternetSetOptionW]
push 4
push esi
push 7
push ebx
call dword [sym.imp.WININET.dll_InternetSetOptionW]
lea ecx, [ebp + 0xc]
mov dword [ebp + 0xc], str.ftp:
call fcn.0041fb10
push eax
mov eax, dword [ebp + 0x10]
push str.ftp:
push dword [eax]
call fcn.0040a030
add esp, 0xc
test eax, eax
lea eax, [edi + 0x88]
sete byte [ebp + 0xf]
push eax
call dword [sym.imp.KERNEL32.dll_EnterCriticalSection]
cmp byte [edi + 0xa0], 0
mov esi, dword [ebp + 8]
je 0x420fbe
xor eax, eax
jmp 0x420fe6
movzx eax, byte [ebp + 0xf]
push 0
xor eax, 1
push 0
lea eax, [eax*2 + 1]
push eax
push dword [esi + 0x24]
movzx eax, word [esi + 0x18]
push dword [esi + 0x1c]
push eax
push dword [esi + 0x10]
push ebx
call dword [sym.imp.WININET.dll_InternetConnectW]
lea ebx, [edi + 0x88]
mov dword [edi + 0x3c], eax
push ebx
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
mov eax, dword [edi + 0x3c]
test eax, eax
je 0x42117e
cmp byte [ebp + 0xf], 0
je 0x421031
push 0
push 0x12
push SysReAllocString
push dword [esi + 0x2c]
push eax
call dword [sym.imp.WININET.dll_FtpOpenFileW]
mov dword [edi + 0x40], eax
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 0x10
mov eax, dword [ebp + 0x14]
lea ecx, [ebp + 0xc]
mov dword [ebp + 8], eax
mov dword [ebp - 0x18], 0x551dcc
mov dword [ebp - 0x14], 0
mov dword [ebp + 0xc], str.https:
call fcn.0041fb10
push eax
mov eax, dword [ebp + 0x10]
push str.https:
push dword [eax]
call fcn.0040a030
add esp, 0xc
mov dword [ebp + 0xc], ebx
test eax, eax
mov ecx, 0x84a80000
mov eax, 0x84280000
cmove eax, ecx
push ebx
mov dword [ebp + 0x10], eax
call dword [sym.imp.KERNEL32.dll_EnterCriticalSection]
cmp byte [edi + 0xa0], 0
mov dword [ebp - 4], 0
je 0x421097
xor eax, eax
jmp 0x4210c4
mov esi, dword [esi + 0x2c]
lea eax, [edi + 0x60]
push eax
lea eax, [ebp + 0x14]
push eax
call fcn.00414490
mov ecx, dword [ebp + 0x10]
add esp, 8
push 0
push ecx
lea ecx, [ebp - 0x18]
push ecx
push 0
push 0
push esi
push dword [eax]
push dword [edi + 0x3c]
call dword [sym.imp.WININET.dll_HttpOpenRequestW]
push ebx
mov dword [edi + 0x40], eax
mov dword [ebp - 4], 0xffffffff
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
cmp dword [edi + 0x40], 0
je 0x421156
lea esi, [edi + 0x44]
mov dword [ebp - 0x48], 0
xorps xmm0, xmm0
mov dword [ebp - 0x34], 0
lea eax, [ebp + 0x10]
movlpd qword [ebp - 0x3c], xmm0
push esi
push eax
movlpd qword [ebp - 0x2c], xmm0
mov dword [ebp - 0x4c], 0x28
call fcn.00414490
add esp, 8
mov ecx, esi
mov eax, dword [eax]
mov dword [ebp - 0x44], eax
call fcn.0041fb10
mov dword [ebp - 0x40], eax
lea ecx, [ebp - 0x24]
mov eax, dword [edi + 0x4c]
mov dword [ebp - 0x30], eax
lea eax, [ebp - 0x4c]
mov dword [ebp - 0x20], eax
lea eax, [ebp + 8]
mov dword [ebp - 0x24], edi
mov dword [ebp - 0x1c], eax
call fcn.004102f0
test al, al
jne 0x42117e
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0x2f00
jne 0x421156
lea ecx, [ebp - 0x24]
call fcn.004102f0
test al, al
jne 0x42117e
mov eax, dword [edi + 0x40]
mov esi, dword [sym.imp.WININET.dll_InternetCloseHandle]
mov dword [edi + 0x40], 0
test eax, eax
je 0x42116d
push eax
call esi
mov eax, dword [edi + 0x3c]
test eax, eax
je 0x42117e
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
pop ebx
mov esp, ebp
pop ebp
ret 0x10