Function at 0x415c50
Capabilities:
Download and write a file
Move file
Receive and write data from server to client
Receive data
Receive data on socket
Send data
Send data on socket
Write file on windows

Disassembly:
sub esp, 0x820
mov eax, dword [0x4995d0]
xor eax, esp
mov dword [esp + 0x81c], eax
push ebx
push ebp
mov ebp, dword [esp + 0x82c]
push esi
push edi
xor esi, esi
push 0x3ff
lea eax, [esp + 0x42d]
push esi
push eax
mov dword [esp + 0x1c], esi
mov dword [esp + 0x20], esi
mov byte [esp + 0x434], 0
call fcn.00458440
mov edi, dword [ebp + 0x1c]
add esp, 0xc
cmp edi, esi
je 0x415f3b
cmp byte [edi], 0
je 0x415f3b
push 0xfe
lea edx, [esp + 0x32e]
xor ecx, ecx
push esi
push edx
mov word [esp + 0x334], cx
call fcn.00458440
add esp, 0xc
push 0x80
lea eax, [esp + 0x32c]
push eax
push 0xffffffffffffffff
push edi
push esi
push esi
call dword [sym.imp.KERNEL32.dll_MultiByteToWideChar]
lea edi, [ebp + 0x68]
push esi
lea ebx, [esp + 0x24]
mov esi, edi
call fcn.00417630
add esp, 4
push 0x4806c4
mov ecx, ebx
push 0x104
push ecx
call fcn.0045456e
add esp, 0xc
lea edx, [esp + 0x328]
push edx
mov eax, ebx
push 0x104
push eax
call fcn.0045456e
add esp, 0xc
push 0x20
push 0x480a78
push edi
call fcn.00455970
add esp, 0xc
push eax
call fcn.00455ce4
add esp, 4
push 0x20
mov ecx, ebx
push 0x482438
push ecx
call fcn.00455970
mov ebx, eax
add esp, 0xc
test ebx, ebx
je 0x415fd5
push 2
push 0
push 0
push ebx
call fcn.00456d9a
push ebx
call fcn.004569f1
mov ecx, dword [ebp + 0x20]
mov edi, eax
mov eax, dword [ebp + 0x24]
mov esi, edx
add esp, 0x14
cmp esi, eax
mov dword [esp + 0x18], edi
jl 0x415d8e
jg 0x415d84
cmp edi, ecx
jbe 0x415d90
xor esi, esi
mov dword [esp + 0x18], esi
mov edi, esi
jmp 0x415d9a
cmp edi, ecx
jne 0x415d9a
cmp esi, eax
je 0x415ef3
mov edx, dword [ebp + 0xc]
mov ecx, dword [ebp + 8]
lea eax, [ebp + 8]
push esi
push edi
mov edi, eax
call fcn.00415580
mov edx, dword [ebp + 0x10]
lea edi, [ebp + 8]
push edi
call fcn.00415490
test eax, eax
je 0x415eef
call fcn.004154c0
push 0xff
lea edx, [esp + 0x22d]
push 0
push edx
mov byte [esp + 0x234], 0
call fcn.00458440
mov edi, dword [ebp + 0x14]
add esp, 0xc
push 0x4823bc
push edi
call fcn.00456ba0
add esp, 8
test eax, eax
je 0x415eef
sub eax, edi
push eax
push edi
lea eax, [esp + 0x230]
push 0x100
push eax
call fcn.0045589d
lea ecx, [esp + 0x238]
push 0x4823e0
push ecx
call fcn.00456ba0
add esp, 0x18
test eax, eax
jne 0x415e49
lea edx, [esp + 0x228]
push 0x4823e8
push edx
call fcn.00456ba0
add esp, 8
test eax, eax
je 0x415eef
mov ecx, dword [ebp + 0x18]
push 0
push 0x400
lea eax, [esp + 0x430]
push eax
push ecx
call dword [sym.imp.WS2_32.dll_recv]
mov edi, eax
test edi, edi
je 0x415eef
lea esp, [esp]
cmp edi, 0xffffffff
je 0x415eef
push ebx
push 1
lea edx, [esp + 0x430]
push edi
push edx
call fcn.00455beb
push ebx
call fcn.00456f73
mov ecx, dword [esp + 0x24]
add esp, 0x14
mov eax, edi
mov edi, dword [ebp]
cdq
add ecx, eax
adc dword [esp + 0x14], edx
mov eax, dword [esp + 0x18]
add eax, ecx
mov dword [esp + 0x10], ecx
push 0
mov ecx, esi
adc ecx, dword [esp + 0x18]
push 0x64
push ecx
push eax
call fcn.00458ef0
mov ecx, dword [ebp + 0x24]
push ecx
mov ecx, dword [ebp + 0x20]
push ecx
push edx
push eax
call fcn.00458f30
mov edx, dword [edi]
push eax
mov ecx, ebp
call edx
mov ecx, dword [ebp + 0x18]
push 0
push 0x400
lea eax, [esp + 0x430]
push eax
push ecx
call dword [sym.imp.WS2_32.dll_recv]
mov edi, eax
test edi, edi
jne 0x415e70
mov edi, dword [esp + 0x18]
push ebx
call fcn.00455ce4
add esp, 4
add edi, dword [esp + 0x10]
adc esi, dword [esp + 0x14]
cmp esi, dword [ebp + 0x24]
jg 0x415f18
jl 0x415fd5
cmp edi, dword [ebp + 0x20]
jb 0x415fd5
push 9
lea eax, [ebp + 0x68]
push eax
lea edx, [esp + 0x28]
push edx
call dword [sym.imp.KERNEL32.dll_MoveFileExW]
mov esi, eax
mov eax, dword [ebp]
mov edx, dword [eax]
push 0x64
mov ecx, ebp
call edx
jmp 0x4160bf
push 0x206
lea ecx, [esp + 0x26]
xor eax, eax
push esi
push ecx
mov word [esp + 0x2c], ax
call fcn.00458440
add esp, 0xc
lea eax, [ebp + 0x68]
push eax
lea edx, [esp + 0x24]
push 0x104
push edx
call fcn.004544ff
add esp, 0xc
push 0x48242c
lea eax, [esp + 0x24]
push 0x104
push eax
call fcn.0045456e
add esp, 0xc
push 0x20
lea ecx, [esp + 0x24]
push 0x480a78
push ecx
call fcn.00455970
mov edx, dword [ebp + 0xc]
mov ecx, dword [ebp + 8]
add esp, 0xc
lea edi, [ebp + 8]
push esi
push esi
mov ebx, eax
call fcn.00415580
mov esi, dword [ebp + 0x10]
mov eax, esi
lea ecx, [eax + 1]
mov dl, byte [eax]
inc eax
test dl, dl
jne 0x415fb0
mov edx, dword [ebp + 0x18]
push 0
sub eax, ecx
push eax
push esi
push edx
call dword [sym.imp.WS2_32.dll_send]
cmp eax, 0xffffffff
jne 0x415fdc
push ebx
call fcn.00455ce4
add esp, 4
xor eax, eax
jmp 0x4160c1
call fcn.004154c0
mov ecx, dword [ebp + 0x18]
mov edi, dword [sym.imp.WS2_32.dll_recv]
push 0
push 0x400
lea eax, [esp + 0x430]
push eax
push ecx
call edi
mov esi, eax
test esi, esi
je 0x416077
cmp esi, 0xffffffff
je 0x416077
push ebx
push 1
lea edx, [esp + 0x430]
push esi
push edx
call fcn.00455beb
push ebx
call fcn.00456f73
mov ecx, dword [esp + 0x24]
add esp, 0x14
mov eax, esi
mov esi, dword [ebp]
cdq
add ecx, eax
mov eax, dword [esp + 0x14]
push 0
adc eax, edx
push 0x64
push eax
push ecx
mov dword [esp + 0x20], ecx
mov dword [esp + 0x24], eax
call fcn.00458ef0
mov ecx, dword [ebp + 0x24]
push ecx
mov ecx, dword [ebp + 0x20]
push ecx
push edx
push eax
call fcn.00458f30
mov edx, dword [esi]
push eax
mov ecx, ebp
call edx
mov ecx, dword [ebp + 0x18]
push 0
push 0x400
lea eax, [esp + 0x430]
push eax
push ecx
call edi
mov esi, eax
test esi, esi
jne 0x416002
push ebx
call fcn.00455ce4
mov edx, dword [esp + 0x18]
add esp, 4
cmp edx, dword [ebp + 0x24]
jg 0x41609c
jl 0x415fd5
mov eax, dword [esp + 0x10]
cmp eax, dword [ebp + 0x20]
jb 0x415fd5
lea eax, [ebp + 0x68]
push eax
lea ecx, [esp + 0x24]
push ecx
call fcn.00456fcf
mov edx, dword [ebp]
add esp, 8
mov esi, eax
mov eax, dword [edx]
neg esi
sbb esi, esi
push 0x64
mov ecx, ebp
inc esi
call eax
mov eax, esi
mov ecx, dword [esp + 0x82c]
pop edi
pop esi
pop ebp
pop ebx
xor ecx, esp
call fcn.004541a5
add esp, 0x820
ret 4