Function at 0x415e10
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 [0x4a05d0]
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.0045db90
mov edi, dword [ebp + 0x1c]
add esp, 0xc
cmp edi, esi
je 0x4160fb
cmp byte [edi], 0
je 0x4160fb
push 0xfe
lea edx, [esp + 0x32e]
xor ecx, ecx
push esi
push edx
mov word [esp + 0x334], cx
call fcn.0045db90
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.004177f0
add esp, 4
push 0x485764
mov ecx, ebx
push 0x104
push ecx
call fcn.00459b8e
add esp, 0xc
lea edx, [esp + 0x328]
push edx
mov eax, ebx
push 0x104
push eax
call fcn.00459b8e
add esp, 0xc
push 0x20
push 0x485b18
push edi
call fcn.0045af90
add esp, 0xc
push eax
call fcn.0045b304
add esp, 4
push 0x20
mov ecx, ebx
push 0x4874d8
push ecx
call fcn.0045af90
mov ebx, eax
add esp, 0xc
test ebx, ebx
je 0x416195
push 2
push 0
push 0
push ebx
call fcn.0045c3ba
push ebx
call fcn.0045c011
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 0x415f4e
jg 0x415f44
cmp edi, ecx
jbe 0x415f50
xor esi, esi
mov dword [esp + 0x18], esi
mov edi, esi
jmp 0x415f5a
cmp edi, ecx
jne 0x415f5a
cmp esi, eax
je 0x4160b3
mov edx, dword [ebp + 0xc]
mov ecx, dword [ebp + 8]
lea eax, [ebp + 8]
push esi
push edi
mov edi, eax
call fcn.00415740
mov edx, dword [ebp + 0x10]
lea edi, [ebp + 8]
push edi
call fcn.00415650
test eax, eax
je 0x4160af
call fcn.00415680
push 0xff
lea edx, [esp + 0x22d]
push 0
push edx
mov byte [esp + 0x234], 0
call fcn.0045db90
mov edi, dword [ebp + 0x14]
add esp, 0xc
push 0x48745c
push edi
call fcn.0045c1c0
add esp, 8
test eax, eax
je 0x4160af
sub eax, edi
push eax
push edi
lea eax, [esp + 0x230]
push pe_nt_image_headers32
push eax
call fcn.0045aebd
lea ecx, [esp + 0x238]
push str._200
push ecx
call fcn.0045c1c0
add esp, 0x18
test eax, eax
jne 0x416009
lea edx, [esp + 0x228]
push str._206
push edx
call fcn.0045c1c0
add esp, 8
test eax, eax
je 0x4160af
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 0x4160af
lea esp, [esp]
cmp edi, 0xffffffff
je 0x4160af
push ebx
push 1
lea edx, [esp + 0x430]
push edi
push edx
call fcn.0045b20b
push ebx
call fcn.0045c593
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.0045e640
mov ecx, dword [ebp + 0x24]
push ecx
mov ecx, dword [ebp + 0x20]
push ecx
push edx
push eax
call fcn.0045e680
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 0x416030
mov edi, dword [esp + 0x18]
push ebx
call fcn.0045b304
add esp, 4
add edi, dword [esp + 0x10]
adc esi, dword [esp + 0x14]
cmp esi, dword [ebp + 0x24]
jg 0x4160d8
jl 0x416195
cmp edi, dword [ebp + 0x20]
jb 0x416195
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 0x41627f
push 0x206
lea ecx, [esp + 0x26]
xor eax, eax
push esi
push ecx
mov word [esp + 0x2c], ax
call fcn.0045db90
add esp, 0xc
lea eax, [ebp + 0x68]
push eax
lea edx, [esp + 0x24]
push 0x104
push edx
call fcn.00459b1f
add esp, 0xc
push str..tmp
lea eax, [esp + 0x24]
push 0x104
push eax
call fcn.00459b8e
add esp, 0xc
push 0x20
lea ecx, [esp + 0x24]
push 0x485b18
push ecx
call fcn.0045af90
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.00415740
mov esi, dword [ebp + 0x10]
mov eax, esi
lea ecx, [eax + 1]
mov dl, byte [eax]
inc eax
test dl, dl
jne 0x416170
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 0x41619c
push ebx
call fcn.0045b304
add esp, 4
xor eax, eax
jmp 0x416281
call fcn.00415680
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 0x416237
cmp esi, 0xffffffff
je 0x416237
push ebx
push 1
lea edx, [esp + 0x430]
push esi
push edx
call fcn.0045b20b
push ebx
call fcn.0045c593
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.0045e640
mov ecx, dword [ebp + 0x24]
push ecx
mov ecx, dword [ebp + 0x20]
push ecx
push edx
push eax
call fcn.0045e680
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 0x4161c2
push ebx
call fcn.0045b304
mov edx, dword [esp + 0x18]
add esp, 4
cmp edx, dword [ebp + 0x24]
jg 0x41625c
jl 0x416195
mov eax, dword [esp + 0x10]
cmp eax, dword [ebp + 0x20]
jb 0x416195
lea eax, [ebp + 0x68]
push eax
lea ecx, [esp + 0x24]
push ecx
call fcn.0045c5ef
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.004597c7
add esp, 0x820
ret 4