Function at 0x452de9
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.00426210
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 0x452e3d
mov eax, dword [esi + 4]
mov ecx, dword [eax + 8]
call fcn.0040c820
test al, 1
je 0x452e33
mov edi, accept
test al, 2
je 0x452e3d
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.0044bbd8
push eax
call fcn.00435dff
test al, al
jne 0x452e95
lea edx, [esp + 0xc]
push edx
mov dword [0x49f7a0], ebx
call fcn.00435f52
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 4
mov ebx, dword [esp + 0x20]
cmp ebx, 3
je 0x452ec0
cmp ebx, 1
je 0x452ec0
lea eax, [esp + 0xc]
push eax
mov dword [0x49f7a0], 3
call fcn.00435f52
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 4
push 0x49f7a8
push ebx
push 0x49f660
call fcn.00452c43
test al, al
jne 0x452efc
call dword [sym.imp.KERNEL32.dll_GetLastError]
lea ecx, [esp + 0xc]
push ecx
mov dword [0x49f7a4], eax
mov dword [0x49f7a0], 4
call fcn.00435f52
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 4
cmp ebx, 3
je 0x45301d
cmp ebx, 1
jne 0x452f17
cmp dword [0x49f764], 2
je 0x45301d
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 0x452f77
call dword [sym.imp.KERNEL32.dll_GetLastError]
lea ecx, [esp + 0xc]
push ecx
mov dword [0x49f7a4], eax
mov dword [0x49f7a0], 7
call fcn.00435f52
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 4
cmp byte [0x49f700], 0
je 0x452f85
or edi, 2
jmp 0x452f88
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 0x452fd1
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [0x49f7a4], eax
lea eax, [esp + 0xc]
push eax
mov dword [0x49f7a0], 8
call fcn.00435f52
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 4
mov ecx, dword [esi + 4]
mov eax, dword [ecx + 4]
push 0x482330
push eax
call fcn.0044bbd8
push eax
call fcn.0041550c
mov esi, eax
add esp, 8
test esi, esi
jne 0x4530bb
call dword [sym.imp.KERNEL32.dll_GetLastError]
lea edx, [esp + 0xc]
push edx
mov dword [0x49f7a4], eax
mov dword [0x49f7a0], 9
call fcn.00435f52
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.0044bbd8
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 0x45306f
call dword [sym.imp.KERNEL32.dll_GetLastError]
lea edx, [esp + 0xc]
push edx
mov dword [0x49f7a4], eax
mov dword [0x49f7a0], 5
call fcn.00435f52
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 4
mov eax, dword [esi + 4]
mov eax, dword [eax + 4]
push 0x482330
push eax
call fcn.0044bbd8
push eax
call fcn.0041550c
mov esi, eax
add esp, 8
test esi, esi
jne 0x4530b7
call dword [sym.imp.KERNEL32.dll_GetLastError]
lea ecx, [esp + 0xc]
push ecx
mov dword [0x49f7a4], eax
mov dword [0x49f7a0], 6
call fcn.00435f52
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 0x4530d4
push edi
call fcn.00435f0b
cmp eax, 0xc8
jne 0x453117
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 0x453117
mov eax, dword [esp + 0x1c]
test eax, eax
je 0x453121
push esi
push 1
push eax
lea ecx, [esp + 0x34]
push ecx
call fcn.00415802
mov eax, dword [esp + 0x2c]
add dword [0x49f79c], eax
add esp, 0x10
test eax, eax
jne 0x4530c3
jmp 0x453121
mov dword [0x49f7a0], 0xa
push esi
call fcn.004158fb
add esp, 4
lea edx, [esp + 0xc]
push edx
call fcn.00435f52
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 4