Function at 0x46e800
Capabilities:
Delete file
Get file size
Receive data
Receive data on socket
Send data
Send data on socket

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x5655dc
mov eax, dword fs:[0]
push eax
mov eax, 0x4a4c
call fcn.00543120
mov eax, dword [0x5b3680]
xor eax, ebp
mov dword [ebp - 0x10], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov esi, dword [ebp + 0xc]
mov edi, dword [ebp + 0x10]
push str.SendFile:_prepare_n
call fcn.0052d67c
push 0x1fff
lea eax, [ebp - 0x482f]
mov byte [ebp - 0x4830], 0
push 0
push eax
call fcn.00531bd0
push 0x1fff
lea eax, [ebp - 0x282f]
mov byte [ebp - 0x2830], 0
push 0
push eax
call fcn.00531bd0
add esp, 0x1c
lea ecx, [ebp - 0x4a48]
push esi
call fcn.004031c0
mov dword [ebp - 4], 0
lea eax, [ebp - 0x4a48]
push edi
push 0x58b238
push eax
call fcn.00443ea0
xor eax, eax
push 0x206
push eax
mov word [ebp - 0x628], ax
lea eax, [ebp - 0x626]
push eax
call fcn.00531bd0
xor eax, eax
push 0x206
push eax
mov word [ebp - 0x830], ax
lea eax, [ebp - 0x82e]
push eax
call fcn.00531bd0
xor eax, eax
push 0x206
push eax
mov word [ebp - 0x420], ax
lea eax, [ebp - 0x41e]
push eax
call fcn.00531bd0
xor eax, eax
push 0x206
push eax
mov word [ebp - 0x218], ax
lea eax, [ebp - 0x216]
push eax
call fcn.00531bd0
lea eax, [ebp - 0x218]
push eax
lea eax, [ebp - 0x420]
push eax
lea eax, [ebp - 0x628]
push eax
lea eax, [ebp - 0x830]
push eax
push dword [ebp - 0x4a48]
call fcn.0052ece9
add esp, 0x50
cmp word [ebp - 0x218], 0x2e
jne 0x46e959
lea eax, [ebp - 0x216]
push eax
lea eax, [ebp - 0x218]
push 0x104
push eax
call fcn.0052c92e
add esp, 0xc
push edi
lea eax, [ebp - 0x4a38]
push 0x104
push eax
call fcn.0052c92e
add esp, 0xc
push 0
push 0x80
push 3
push 0
push 1
push closesocket
push dword [ebp - 0x4a48]
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov edi, eax
cmp edi, 0xffffffff
jne 0x46e9c2
lea ecx, [ebp - 0x4a38]
lea edx, [ecx + 2]
lea esp, [esp]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x46e9a0
sub ecx, edx
mov dword [ebp - 0x4a3c], 0
sar ecx, 1
lea eax, [ecx + ecx]
mov dword [ebp - 0x4a40], eax
lea ecx, [ebp - 0x4a38]
lea edx, [ecx + 2]
jmp 0x46e9d0
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x46e9d0
sub ecx, edx
sar ecx, 1
push 0
push edi
lea eax, [ecx + ecx]
mov dword [ebp - 0x4a40], eax
call dword [sym.imp.KERNEL32.dll_GetFileSize]
mov dword [ebp - 0x4a3c], eax
cmp eax, 0xffffffff
jne 0x46ea12
push edi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov dword [ebp - 0x4a3c], 0
jmp 0x46ec94
test eax, eax
jne 0x46ea2e
push edi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
push dword [ebp - 0x4a48]
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
jmp 0x46ec94
mov esi, dword [ebp - 0x4a40]
push 1
lea eax, [esi + 9]
push eax
call fcn.0052d1c5
mov ebx, eax
add esp, 8
test ebx, ebx
je 0x46ec8d
mov dword [ebx], esi
mov eax, dword [ebp - 0x4a3c]
mov dword [ebx + 4], eax
lea eax, [ebp - 0x4a38]
push dword [ebp - 0x4a40]
push eax
lea eax, [ebx + 8]
push eax
call fcn.00531580
mov esi, dword [ebp - 0x4a40]
add esi, 8
mov word [ebp - 0x4a54], 0x124
mov dword [ebp - 0x4a4e], esi
mov ax, word [ebp - 0x4a4c]
push esi
mov word [ebp - 0x4828], ax
lea eax, [ebp - 0x4826]
mov dword [ebp - 0x4a52], 0x20009304
movq xmm0, qword [ebp - 0x4a54]
push ebx
push eax
movq qword [ebp - 0x4830], xmm0
call fcn.00531580
lea eax, [ebp - 0x218]
push eax
push str.SendFile:_send_file_name_and_lenth__gszExt:__s_n
call fcn.0052d67c
add esp, 0x20
lea eax, [esi + 0xa]
mov esi, dword [ebp + 8]
push 0
push eax
lea eax, [ebp - 0x4830]
push eax
push esi
call dword [sym.imp.WS2_32.dll_send]
cmp eax, 0xffffffff
je 0x46ec84
push 0x2000
lea eax, [ebp - 0x2830]
push 0
push eax
call fcn.00531bd0
add esp, 0xc
lea eax, [ebp - 0x2830]
push 0
push 0x1000
push eax
push esi
call dword [sym.imp.WS2_32.dll_recv]
cmp eax, 0xffffffff
je 0x46ec84
cmp dword [ebp - 0x282e], 0x55aa0000
movq xmm0, qword [ebp - 0x2830]
mov ax, word [ebp - 0x2828]
movq qword [ebp - 0x4a54], xmm0
mov word [ebp - 0x4a4c], ax
je 0x46eb9a
push ebx
call fcn.0052adae
add esp, 4
push edi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
lea ecx, [ebp - 0x4a44]
call fcn.00402b10
mov byte [ebp - 4], 1
lea eax, [ebp - 0x4a44]
push dword [ebp - 0x4a52]
push str.Bad_data_type._Received_type:__04Xh.
push eax
call fcn.00415d20
add esp, 0xc
mov byte [ebp - 4], 0
lea ecx, [ebp - 0x4a44]
call fcn.00402750
jmp 0x46ec94
cmp edi, 0xffffffff
je 0x46ec84
cmp dword [ebp - 0x4a3c], 0
je 0x46ec84
push str.SendFile:_start_transmit_n
call fcn.0052d67c
add esp, 4
push 0
push 0
push 0
push 0
push 0
push edi
push esi
call dword [sym.imp.MSWSOCK.dll_TransmitFile]
test eax, eax
je 0x46ec84
push 0
push 0xa
lea eax, [ebp - 0x2830]
push eax
push esi
call dword [sym.imp.WS2_32.dll_recv]
cmp eax, 0xffffffff
je 0x46ec84
cmp dword [ebp - 0x282e], 0x55aa0000
movq xmm0, qword [ebp - 0x2830]
mov ax, word [ebp - 0x2828]
movq qword [ebp - 0x4a54], xmm0
mov word [ebp - 0x4a4c], ax
je 0x46ec63
lea ecx, [ebp - 0x4a44]
call fcn.00402b10
mov byte [ebp - 4], 2
lea eax, [ebp - 0x4a44]
push dword [ebp - 0x4a52]
push str.Bad_data_type._Received_type__04Xh
push eax
call fcn.00415d20
push ebx
call fcn.0052adae
add esp, 0x10
push edi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov byte [ebp - 4], 0
lea ecx, [ebp - 0x4a44]
call fcn.00402750
jmp 0x46ec94
push str.SendFile:_finish_transmit_n
call fcn.0052d67c
push ebx
call fcn.0052adae
add esp, 8
push edi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov esi, 1
jmp 0x46ec96
push ebx
call fcn.0052adae
add esp, 4
push edi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
xor esi, esi
mov dword [ebp - 4], 0xffffffff
or ecx, 0xffffffff
mov edi, dword [ebp - 0x4a48]
add edi, 0xfffffff0
lea eax, [edi + 0xc]
lock xadd dword [eax], ecx
dec ecx
test ecx, ecx
jg 0x46ecbd
mov ecx, dword [edi]
push edi
mov edx, dword [ecx]
call dword [edx + 4]
mov eax, esi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.005295e2
mov esp, ebp
pop ebp
ret 0x10