Function at 0x4530ae
Capabilities:
Connect to http server
Download and write a file
Read data from internet
Receive and write data from server to client
Receive data
Write file on windows

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
mov eax, 0x243c
call fcn.00426240
push ebx
push esi
mov esi, dword [ebp + 8]
push edi
xor edi, edi
mov ebx, 2
mov dword [esp + 0xc], edi
mov dword [esp + 0x10], edi
mov dword [esp + 0x14], 0x49f798
mov dword [esp + 0x18], esi
cmp dword [esi + 8], ebx
jbe 0x453102
mov eax, dword [esi + 4]
mov ecx, dword [eax + 8]
call fcn.0040c7e0
test al, 1
je 0x4530f8
mov edi, accept
test al, 2
je 0x453102
or edi, 0x3000
mov ecx, dword [esi + 4]
mov eax, dword [ecx]
lea edx, [esp + 0x1438]
push edx
lea ecx, [esp + 0x42c]
push ecx
lea edx, [esp + 0x1c48]
push edx
lea ecx, [esp + 0xc3c]
push ecx
lea edx, [esp + 0x34]
push edx
lea ecx, [esp + 0x34]
push ecx
push eax
call fcn.0044baed
push eax
call fcn.00435eae
test al, al
jne 0x45315a
lea edx, [esp + 0xc]
push edx
mov dword [0x49f7a0], ebx
call fcn.00436001
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 4
mov ebx, dword [esp + 0x20]
cmp ebx, 3
je 0x453185
cmp ebx, 1
je 0x453185
lea eax, [esp + 0xc]
push eax
mov dword [0x49f7a0], 3
call fcn.00436001
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 4
push 0x49f7a8
push ebx
push 0x49f660
call fcn.00452f08
test al, al
jne 0x4531c1
call dword [sym.imp.KERNEL32.dll_GetLastError]
lea ecx, [esp + 0xc]
push ecx
mov dword [0x49f7a4], eax
mov dword [0x49f7a0], 4
call fcn.00436001
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 4
cmp ebx, 3
je 0x4532e2
cmp ebx, 1
jne 0x4531dc
cmp dword [0x49f764], 2
je 0x4532e2
mov ecx, dword [esp + 0x24]
push 0
push 0
push ebx
lea edx, [esp + 0x1444]
push edx
lea eax, [esp + 0x438]
push eax
mov eax, dword [0x49f7a8]
push ecx
lea edx, [esp + 0xc48]
push edx
push eax
call dword [sym.imp.WININET.dll_InternetConnectW]
mov ebx, eax
mov dword [esp + 0xc], ebx
test ebx, ebx
jne 0x45323c
call dword [sym.imp.KERNEL32.dll_GetLastError]
lea ecx, [esp + 0xc]
push ecx
mov dword [0x49f7a4], eax
mov dword [0x49f7a0], 7
call fcn.00436001
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 4
cmp byte [0x49f700], 0
je 0x45324a
or edi, 2
jmp 0x45324d
or edi, 1
push 0
push edi
push accept
lea edx, [esp + 0x1c4c]
push edx
push ebx
call dword [sym.imp.WININET.dll_FtpOpenFileW]
mov edi, eax
mov dword [esp + 0x10], edi
test edi, edi
jne 0x453296
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [0x49f7a4], eax
lea eax, [esp + 0xc]
push eax
mov dword [0x49f7a0], 8
call fcn.00436001
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 4
mov ecx, dword [esi + 4]
mov eax, dword [ecx + 4]
push 0x48222c
push eax
call fcn.0044baed
push eax
call fcn.0041553c
mov esi, eax
add esp, 8
test esi, esi
jne 0x453380
call dword [sym.imp.KERNEL32.dll_GetLastError]
lea edx, [esp + 0xc]
push edx
mov dword [0x49f7a4], eax
mov dword [0x49f7a0], 9
call fcn.00436001
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 4
mov eax, dword [esi + 4]
mov eax, dword [eax]
push 0
push edi
push 0
push 0
push eax
call fcn.0044baed
mov ecx, dword [0x49f7a8]
push eax
push ecx
call dword [sym.imp.WININET.dll_InternetOpenUrlW]
mov edi, eax
mov dword [esp + 0x10], edi
test edi, edi
jne 0x453334
call dword [sym.imp.KERNEL32.dll_GetLastError]
lea edx, [esp + 0xc]
push edx
mov dword [0x49f7a4], eax
mov dword [0x49f7a0], 5
call fcn.00436001
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 4
mov eax, dword [esi + 4]
mov eax, dword [eax + 4]
push 0x48222c
push eax
call fcn.0044baed
push eax
call fcn.0041553c
mov esi, eax
add esp, 8
test esi, esi
jne 0x45337c
call dword [sym.imp.KERNEL32.dll_GetLastError]
lea ecx, [esp + 0xc]
push ecx
mov dword [0x49f7a4], eax
mov dword [0x49f7a0], 6
call fcn.00436001
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 4
mov ebx, dword [esp + 0xc]
mov dword [esp + 0x1c], 1
test ebx, ebx
jne 0x453399
push edi
call fcn.00435fba
cmp eax, 0xc8
jne 0x4533dc
lea edx, [esp + 0x1c]
push edx
push 0x400
lea eax, [esp + 0x30]
push eax
push edi
call dword [sym.imp.WININET.dll_InternetReadFile]
test eax, eax
je 0x4533dc
mov eax, dword [esp + 0x1c]
test eax, eax
je 0x4533e6
push esi
push 1
push eax
lea ecx, [esp + 0x34]
push ecx
call fcn.00415832
mov eax, dword [esp + 0x2c]
add dword [0x49f79c], eax
add esp, 0x10
test eax, eax
jne 0x453388
jmp 0x4533e6
mov dword [0x49f7a0], 0xa
push esi
call fcn.0041592b
add esp, 4
lea edx, [esp + 0xc]
push edx
call fcn.00436001
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 4