Function at 0x50dac0
Capabilities:
Create directory
Delete file
Download and write a 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:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x5961c0
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x250
push ebx
xor ebx, ebx
push esi
mov esi, 7
xor eax, eax
push edi
mov dword [ebp - 0x28], ecx
mov byte [ebp - 0x20], bl
mov dword [ebp - 0x1f], ebx
mov dword [ebp - 0x1b], ebx
mov byte [ebp - 0x17], bl
mov dword [ebp - 0x38], esi
mov dword [ebp - 0x3c], ebx
mov word [ebp - 0x4c], ax
mov dword [ebp - 4], ebx
push 0x204
lea ecx, [ebp - 0x258]
push ebx
push ecx
mov dword [ebp - 0x25c], ebx
call fcn.00555020
mov edx, dword [ebp + 8]
add esp, 0xc
push ebx
push 0x1000
push 0x5fa2e8
push edx
call dword [sym.imp.WS2_32.dll_recv]
or edi, 0xffffffff
cmp eax, edi
je 0x50e08a
cmp eax, ebx
je 0x50e08a
mov eax, dword [0x5fa2e8]
mov ecx, dword [0x5fa2ec]
mov dx, word [0x5fa2f0]
mov dword [ebp - 0x20], eax
mov eax, dword [0x5fa2ea]
mov dword [ebp - 0x1c], ecx
mov word [ebp - 0x18], dx
cmp eax, 0x20009304
jne 0x50db77
mov byte [ebp - 0x11], 1
jmp 0x50db85
cmp eax, 0x20009300
jne 0x50e044
mov byte [ebp - 0x11], bl
mov eax, dword [0x5fa2f2]
mov edi, dword [0x5fa2f6]
push eax
lea ecx, [ebp - 0x25c]
push 0x5fa2fa
push ecx
mov dword [ebp - 0x54], edi
call fcn.00554470
or esi, 0xffffffff
add esp, 0xc
mov dword [ebp - 0x1a], ebx
mov word [ebp - 0x20], 0x24
cmp edi, esi
je 0x50dbc3
mov dword [ebp - 0x1e], 0x55aa0000
cmp edi, ebx
jne 0x50dbc6
mov dword [ebp - 0x1e], ebx
mov edx, dword [ebp - 0x20]
mov eax, dword [ebp - 0x1c]
mov cx, word [ebp - 0x18]
push ebx
push 0xa
mov dword [0x5f8ee8], edx
mov edx, dword [ebp + 8]
push 0x5f8ee8
push edx
mov dword [0x5f8eec], eax
mov word [0x5f8ef0], cx
call dword [sym.imp.WS2_32.dll_send]
cmp eax, esi
jne 0x50dc0d
mov dword [ebp - 4], esi
xor eax, eax
mov dword [ebp - 0x38], 7
mov word [ebp - 0x4c], ax
jmp 0x50e096
cmp edi, esi
je 0x50de3e
cmp edi, ebx
je 0x50de3e
lea ecx, [ebp - 0x25c]
push ecx
lea ecx, [ebp - 0x24]
call fcn.0040b4f0
mov byte [ebp - 4], 3
mov edi, dword [ebp - 0x28]
lea edx, [edi + 0x16a8]
push edx
lea ecx, [ebp - 0x10]
call fcn.0040bfb0
mov byte [ebp - 4], 4
push 0x59e4c4
lea ecx, [ebp - 0x10]
call fcn.0040b5f0
mov eax, dword [ebp - 0x24]
cmp dword [eax - 0xc], ebx
jle 0x50ddd1
push 0x5c
push eax
call fcn.00555d9c
add esp, 8
cmp eax, ebx
je 0x50ddd1
sub eax, dword [ebp - 0x24]
sar eax, 1
cmp eax, esi
je 0x50ddd1
mov eax, dword [ebp + 0x10]
cmp eax, 0x20009120
jne 0x50dc91
add edi, 0x460
jmp 0x50dc9e
cmp eax, 0x20009135
jne 0x50dcb4
add edi, 0x26e8
push edi
lea ecx, [ebp - 0x10]
call fcn.0040b5a0
push 0x59e4c4
lea ecx, [ebp - 0x10]
call fcn.0040b5f0
mov eax, dword [0x5f5774]
mov edx, dword [eax + 0xc]
mov ecx, 0x5f5774
call edx
add eax, 0x10
mov dword [ebp + 0x10], eax
mov byte [ebp - 4], 6
mov eax, dword [ebp - 0x24]
mov esi, dword [eax - 0xc]
lea ecx, [ebp - 0x28]
push ecx
push 0x59e4c4
lea edx, [ebp - 0x2c]
push edx
lea ecx, [ebp - 0x24]
mov dword [ebp - 0x28], ebx
call fcn.0041cc80
mov byte [ebp - 4], 7
push eax
lea ecx, [ebp + 0x10]
call fcn.00407d40
mov byte [ebp - 4], 6
lea ecx, [ebp - 0x2c]
call fcn.00404d60
cmp dword [ebp - 0x28], esi
jge 0x50ddb0
mov edi, dword [sym.imp.KERNEL32.dll_CreateDirectoryW]
push 0x5c
lea eax, [ebp + 0x10]
push eax
lea ecx, [ebp - 0x2c]
push ecx
call fcn.0050b5c0
add esp, 0xc
mov byte [ebp - 4], 8
mov eax, dword [eax]
mov ecx, dword [eax - 0xc]
push ecx
push eax
lea ecx, [ebp - 0x10]
call fcn.00406040
mov byte [ebp - 4], 6
mov eax, dword [ebp - 0x2c]
add eax, 0xfffffff0
lea edx, [eax + 0xc]
or ecx, 0xffffffff
lock xadd dword [edx], ecx
dec ecx
test ecx, ecx
jg 0x50dd5b
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov ecx, dword [ebp - 0x10]
push ebx
push ecx
call edi
lea edx, [ebp - 0x28]
push edx
push 0x59e4c4
lea eax, [ebp - 0x50]
push eax
lea ecx, [ebp - 0x24]
call fcn.0041cc80
mov byte [ebp - 4], 0xa
push eax
lea ecx, [ebp + 0x10]
call fcn.00407d40
mov byte [ebp - 4], 6
mov eax, dword [ebp - 0x50]
add eax, 0xfffffff0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x50dda7
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
cmp dword [ebp - 0x28], esi
jl 0x50dd13
mov eax, dword [ebp + 0x10]
mov ecx, dword [eax - 0xc]
push ecx
push eax
lea ecx, [ebp - 0x10]
call fcn.00406040
mov byte [ebp - 4], 4
lea ecx, [ebp + 0x10]
call fcn.00404d60
or esi, 0xffffffff
jmp 0x50ddeb
mov ecx, dword [ebp - 0x10]
push ecx
push ebx
call dword [sym.imp.SHELL32.dll_SHCreateDirectory]
lea edx, [ebp - 0x25c]
push edx
lea ecx, [ebp - 0x10]
call fcn.004343a0
mov eax, dword [ebp - 0x10]
push ebx
push 0x80
push 2
push ebx
push ebx
push 0x40000000
push eax
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov edi, eax
cmp edi, esi
jne 0x50de4e
mov edx, dword [ebp + 8]
push ebx
push 0xa
lea ecx, [ebp - 0x20]
push ecx
push edx
mov dword [ebp - 0x1a], ebx
mov word [ebp - 0x20], 0x24
mov dword [ebp - 0x1e], ebx
call dword [sym.imp.WS2_32.dll_send]
mov byte [ebp - 4], 3
lea ecx, [ebp - 0x10]
call fcn.00404d60
mov byte [ebp - 4], bl
lea ecx, [ebp - 0x24]
call fcn.00404d60
mov dword [ebp - 4], esi
lea ecx, [ebp - 0x4c]
call fcn.00405c10
jmp 0x50e099
mov dword [ebp + 0x10], ebx
mov dword [ebp - 0x30], ebx
mov dword [ebp - 0x28], 0x1000
cmp byte [ebp - 0x11], bl
jne 0x50debc
push 5
call dword [sym.imp.KERNEL32.dll_Sleep]
mov eax, dword [ebp + 8]
push ebx
push 0xa
push 0x5fa2e8
push eax
call dword [sym.imp.WS2_32.dll_recv]
mov ecx, dword [0x5fa2ec]
mov dx, word [0x5fa2f0]
mov esi, eax
mov eax, dword [0x5fa2e8]
mov dword [ebp - 0x20], eax
mov dword [ebp - 0x1c], ecx
mov word [ebp - 0x18], dx
cmp al, 0x24
je 0x50deb3
push ebx
lea eax, [ebp - 0x30]
push eax
push esi
push 0x5fa2e8
push edi
call dword [sym.imp.KERNEL32.dll_WriteFile]
add dword [ebp + 0x10], esi
jmp 0x50debc
mov ecx, dword [0x5fa2ee]
mov dword [ebp - 0x28], ecx
mov edx, dword [ebp - 0x28]
mov eax, dword [ebp + 8]
push ebx
push edx
push 0x5fa2e8
push eax
call dword [sym.imp.WS2_32.dll_recv]
mov esi, eax
cmp esi, 0xffffffff
je 0x50df5f
push ebx
lea ecx, [ebp - 0x30]
push ecx
push esi
push 0x5fa2e8
push edi
call dword [sym.imp.KERNEL32.dll_WriteFile]
mov eax, dword [ebp + 0x10]
add eax, esi
mov dword [ebp + 0x10], eax
cmp eax, dword [ebp - 0x54]
jae 0x50df9b
cmp esi, ebx
je 0x50df9b
cmp byte [ebp - 0x11], bl
jne 0x50de54
push ebx
mov dword [ebp - 0x1e], 0x55aa0000
mov word [ebp - 0x20], 0x24
mov edx, dword [ebp - 0x20]
push 0xa
mov dword [ebp - 0x1a], ebx
mov eax, dword [ebp - 0x1c]
mov cx, word [ebp - 0x18]
mov dword [0x5f8ee8], edx
mov edx, dword [ebp + 8]
push 0x5f8ee8
push edx
mov dword [0x5f8eec], eax
mov word [0x5f8ef0], cx
call dword [sym.imp.WS2_32.dll_send]
cmp eax, 0xffffffff
jne 0x50de54
push edi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
jmp 0x50df70
push edi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, dword [ebp - 0x10]
push eax
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
mov byte [ebp - 4], 3
lea ecx, [ebp - 0x10]
call fcn.00404d60
mov byte [ebp - 4], bl
lea ecx, [ebp - 0x24]
call fcn.00404d60
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x4c]
call fcn.00405c10
jmp 0x50e099
mov esi, dword [sym.imp.KERNEL32.dll_CloseHandle]
push edi
call esi
push ebx
mov dword [ebp - 0x1e], 0x55aa0000
mov word [ebp - 0x20], 0x24
mov ecx, dword [ebp - 0x20]
push 0xa
mov dword [ebp - 0x1a], ebx
mov edx, dword [ebp - 0x1c]
mov ax, word [ebp - 0x18]
mov dword [0x5f8ee8], ecx
mov ecx, dword [ebp + 8]
push 0x5f8ee8
push ecx
mov dword [0x5f8eec], edx
mov word [0x5f8ef0], ax
call dword [sym.imp.WS2_32.dll_send]
cmp eax, 0xffffffff
jne 0x50dfec
push edi
call esi
jmp 0x50df70
lea ecx, [ebp - 0x10]
call fcn.00404db0
mov edx, dword [ebp + 0xc]
push eax
push 0x104
push edx
call fcn.00554e48
add esp, 0xc
mov byte [ebp - 4], 3
lea ecx, [ebp - 0x10]
call fcn.00404d60
mov byte [ebp - 4], bl
lea ecx, [ebp - 0x24]
call fcn.00404d60
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x4c]
call fcn.00405c10
pop edi
pop esi
mov eax, 1
pop ebx
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
mov esp, ebp
pop ebp
ret 0xc
mov eax, dword [0x5f5774]
mov edx, dword [eax + 0xc]
mov ecx, 0x5f5774
call edx
add eax, 0x10
mov dword [ebp + 8], eax
mov byte [ebp - 4], 2
mov eax, dword [ebp - 0x1e]
push eax
lea ecx, [ebp + 8]
push str.Bad_data_type._Received_type__04Xh
push ecx
call fcn.004060d0
add esp, 0xc
mov byte [ebp - 4], bl
lea ecx, [ebp + 8]
call fcn.00404d60
mov dword [ebp - 4], edi
lea ecx, [ebp - 0x4c]
call fcn.00405c10
jmp 0x50e099
mov dword [ebp - 4], edi
xor edx, edx
mov dword [ebp - 0x38], esi
mov word [ebp - 0x4c], dx
mov dword [ebp - 0x3c], ebx
mov ecx, dword [ebp - 0xc]
pop edi
pop esi
xor eax, eax
pop ebx
mov dword fs:[0], ecx
mov esp, ebp
pop ebp
ret 0xc