Function at 0x50e4a0
Capabilities:
Delete file
Write file on windows

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x608af6
mov eax, dword fs:[0]
push eax
sub esp, 0x2c
push ebx
push esi
push edi
mov eax, dword [0x6b000c]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov eax, ecx
mov dword [ebp - 0x14], eax
cmp dword [ebp + 0x14], 4
mov dword [eax + 0xc], 0
jne 0x50e520
mov esi, dword [ebp + 0xc]
test esi, esi
je 0x50eb2a
push 0x1058
call fcn.00560437
add esp, 4
mov dword [ebp + 8], eax
mov dword [ebp - 4], 0
mov ecx, eax
mov edi, dword [ebp + 0x10]
push dword [edi + 0x2c]
push dword [edi + 0x28]
push dword [esi + 4]
call fcn.0046dd70
mov ebx, eax
mov dword [ebp + 0xc], ebx
mov dword [ebp - 4], 0xffffffff
jmp 0x50e5c6
mov esi, dword [ebp + 8]
test esi, esi
je 0x50eb2a
mov eax, dword [esi + 8]
mov ecx, str.exFAT_RAW
mov dx, word [eax]
cmp dx, word [ecx]
jne 0x50e559
test dx, dx
je 0x50e555
mov dx, word [eax + 2]
cmp dx, word [ecx + 2]
jne 0x50e559
add eax, 4
add ecx, 4
test dx, dx
jne 0x50e533
xor eax, eax
jmp 0x50e55e
sbb eax, eax
or eax, 1
test eax, eax
jne 0x50e597
push 0x1050
call fcn.00560437
mov ecx, eax
add esp, 4
mov dword [ebp + 8], ecx
mov dword [ebp - 4], 1
mov eax, dword [esi]
cmp dword [eax - 0xc], 0
jl 0x50eb40
movzx eax, word [eax]
push eax
call fcn.0046e140
mov ebx, eax
mov dword [ebp + 0xc], ebx
jmp 0x50e5bc
push 0x1048
call fcn.00560437
add esp, 4
mov dword [ebp + 8], eax
mov dword [ebp - 4], 2
mov ecx, eax
push dword [esi]
call fcn.0046d1f0
mov ebx, eax
mov dword [ebp + 0xc], eax
mov dword [ebp - 4], 0xffffffff
mov edi, dword [ebp + 0x10]
test ebx, ebx
je 0x50eb2a
mov dword [ebp - 0x24], ebx
mov dword [ebp - 4], 3
cmp dword [ebx + 0xc], 0
jne 0x50e64a
cmp dword [0x6b8fe8], 0
mov esi, dword [ebp - 0x14]
je 0x50e5f0
cmp dword [esi + 0xc], 0
je 0x50e64a
sub esp, 0x18
mov dword [esi + 0xc], 1
cmp dword [ebp + 0x14], 4
mov ecx, esp
mov dword [ebp + 0x20], esp
jne 0x50e615
push 0x6b1250
call fcn.00420d90
mov byte [ebp - 4], 4
jmp 0x50e623
push 0x6b1340
call fcn.00420d90
mov byte [ebp - 4], 5
mov byte [ebp - 4], 3
xor ecx, ecx
call fcn.004e1110
add esp, 0x18
push 0
push 1
push 0x410
push dword [esi + 8]
call dword [sym.imp.USER32.dll_PostMessageW]
xor edi, edi
jmp 0x50e9e6
call fcn.0040bf10
mov ecx, eax
test ecx, ecx
je 0x50eb4a
mov eax, dword [ecx]
call dword [eax + 0xc]
lea esi, [eax + 0x10]
mov dword [ebp - 0x10], esi
mov byte [ebp - 4], 7
cmp byte [ebp + 0x20], 0
jne 0x50e704
push dword [ebp + 0x18]
mov edx, dword [edi]
lea ecx, [ebp - 0x18]
call fcn.004df5e0
add esp, 4
mov byte [ebp - 4], 8
lea ecx, [esi - 0x10]
mov edx, dword [eax]
mov dword [ebp + 8], ecx
lea eax, [edx - 0x10]
mov dword [ebp + 0x18], eax
cmp eax, ecx
je 0x50e6e3
cmp dword [ecx + 0xc], 0
lea esi, [ecx + 0xc]
jl 0x50e6d4
mov eax, dword [eax]
cmp eax, dword [ecx]
jne 0x50e6d4
mov ecx, dword [ebp + 0x18]
call fcn.0040c950
mov dword [ebp + 0x18], eax
or ecx, 0xffffffff
lock xadd dword [esi], ecx
dec ecx
test ecx, ecx
jg 0x50e6cc
mov esi, dword [ebp + 8]
push esi
mov ecx, dword [esi]
mov edx, dword [ecx]
call dword [edx + 4]
mov eax, dword [ebp + 0x18]
lea esi, [eax + 0x10]
mov dword [ebp - 0x10], esi
jmp 0x50e6e3
push dword [edx - 0xc]
lea ecx, [ebp - 0x10]
push edx
call fcn.0040c9d0
mov esi, dword [ebp - 0x10]
mov byte [ebp - 4], 7
or eax, 0xffffffff
mov edx, dword [ebp - 0x18]
add edx, 0xfffffff0
lock xadd dword [edx + 0xc], eax
dec eax
test eax, eax
jg 0x50e730
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
jmp 0x50e730
mov edx, dword [ebp + 0x18]
test edx, edx
jne 0x50e70f
xor ecx, ecx
jmp 0x50e723
mov ecx, edx
lea esi, [ecx + 2]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x50e714
sub ecx, esi
sar ecx, 1
push ecx
push edx
lea ecx, [ebp - 0x10]
call fcn.0040c9d0
mov esi, dword [ebp - 0x10]
push 0
push 0x80
push 2
push 0
push 0
push 0xc0000000
push esi
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov dword [ebp + 0x18], eax
cmp eax, 0xffffffff
jne 0x50e76e
cmp byte [ebp + 0x20], 0
je 0x50e767
mov ecx, dword [ebp - 0x14]
push 0
mov ecx, dword [ecx + 8]
call fcn.004dfbe0
add esp, 4
xor edi, edi
jmp 0x50e9ca
mov dword [ebp - 0x38], 0
mov dword [ebp - 0x34], 0
mov dword [ebp - 0x30], 0
mov byte [ebp - 4], 0xb
mov eax, dword [edi + 0x14]
mov ecx, dword [edi + 0x10]
push 0
push dword [ebx + 0x18]
mov dword [ebp - 0x20], ecx
push eax
push ecx
mov dword [ebp + 8], eax
call fcn.005ddd60
test edx, edx
jne 0x50e7aa
mov dword [ebp + 0x20], edx
test eax, eax
je 0x50e7b1
mov dword [ebp + 0x20], 1
mov eax, dword [edi + 0x14]
push 0
push dword [ebx + 0x18]
push eax
mov eax, dword [edi + 0x10]
push eax
call fcn.005dd710
mov ecx, eax
lea eax, [edi + 0x30]
add ecx, dword [ebp + 0x20]
cmp dword [edi + 0x34], 0
je 0x50e7fe
mov edi, dword [eax]
mov dword [ebp - 0x18], eax
mov dword [ebp + 0x20], edi
lea eax, [edi + ecx]
mov dword [ebp + 8], eax
cmp edi, eax
ja 0x50e84f
mov ebx, eax
lea eax, [ebp + 0x20]
push eax
lea ecx, [ebp - 0x38]
call fcn.0046e640
inc edi
mov dword [ebp + 0x20], edi
cmp edi, ebx
jbe 0x50e7e5
mov ebx, dword [ebp + 0xc]
jmp 0x50e84f
cmp dword [ebp + 0x14], 2
jne 0x50e839
mov edi, dword [eax]
mov dword [ebp - 0x18], eax
cmp edi, 0x80
jae 0x50e839
lea eax, [edi + ecx]
mov dword [ebp + 0x20], edi
mov dword [ebp + 8], eax
cmp edi, eax
jae 0x50e84f
mov ebx, eax
lea eax, [ebp + 0x20]
push eax
lea ecx, [ebp - 0x38]
call fcn.0046e640
inc edi
mov dword [ebp + 0x20], edi
cmp edi, ebx
jb 0x50e820
mov ebx, dword [ebp + 0xc]
jmp 0x50e84f
push dword [ebp + 8]
lea ecx, [ebp - 0x38]
mov dword [ebp - 0x18], eax
push dword [ebp - 0x20]
push ecx
push dword [eax]
mov ecx, ebx
call fcn.0046d790
push dword [ebp - 0x34]
push str.Total_cluster_is__d_n
call fcn.004131f0
mov edi, dword [ebx + 0x18]
push edi
mov dword [ebp - 0x2c], 0
mov dword [ebp - 0x28], edi
call fcn.00560596
push edi
push 0
push eax
mov dword [ebp - 0x2c], eax
call fcn.00588800
add esp, 0x18
mov byte [ebp - 4], 0xc
cmp dword [ebp + 0x14], 2
mov ecx, dword [ebp + 0x10]
mov ebx, dword [ecx + 0x10]
mov eax, dword [ecx + 0x14]
mov dword [ebp + 0x20], ebx
mov dword [ebp + 8], eax
je 0x50ea0b
cmp dword [ecx + 0x20], 0
je 0x50ea0b
mov eax, dword [ebp - 0x34]
xor ebx, ebx
test eax, eax
jle 0x50e981
test ebx, ebx
js 0x50eb54
cmp ebx, eax
jge 0x50eb54
mov eax, dword [ebp - 0x38]
mov ecx, dword [ebp + 0xc]
push edi
push dword [ebp - 0x2c]
push dword [eax + ebx*4]
call fcn.0046d4c0
test eax, eax
je 0x50e975
mov eax, ebx
cdq
mov ecx, eax
call fcn.005de0f0
mov eax, dword [ebp - 0x34]
cvtsd2ss xmm0, xmm0
cdq
mov ecx, eax
mulss xmm0, dword [0x664e60]
movss dword [ebp + 0x10], xmm0
call fcn.005de0f0
movss xmm1, dword [ebp + 0x10]
cvtsd2ss xmm0, xmm0
push 0
divss xmm1, xmm0
cvttss2si eax, xmm1
push eax
mov eax, dword [ebp - 0x14]
push 0x40d
push dword [eax + 8]
call dword [sym.imp.USER32.dll_PostMessageW]
mov eax, dword [ebp + 0x1c]
test eax, eax
je 0x50e937
cmp dword [eax], 0
jne 0x50eb13
cmp dword [ebp + 8], 0
ja 0x50e95b
mov eax, dword [ebp + 0x20]
jb 0x50e946
cmp eax, edi
ja 0x50e95b
push 0
lea ecx, [ebp - 0x1c]
push ecx
push eax
push dword [ebp - 0x2c]
push dword [ebp + 0x18]
call dword [sym.imp.KERNEL32.dll_WriteFile]
jmp 0x50e975
push 0
lea eax, [ebp - 0x1c]
push eax
push edi
push dword [ebp - 0x2c]
push dword [ebp + 0x18]
call dword [sym.imp.KERNEL32.dll_WriteFile]
sub dword [ebp + 0x20], edi
sbb dword [ebp + 8], 0
mov eax, dword [ebp - 0x34]
inc ebx
cmp ebx, eax
jl 0x50e8b2
push dword [ebp + 0x18]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov edi, 1
mov byte [ebp - 4], 0xb
push dword [ebp - 0x2c]
call fcn.00560591
add esp, 4
mov byte [ebp - 4], 7
mov eax, dword [ebp - 0x38]
test eax, eax
je 0x50e9b9
push eax
call fcn.005a51fb
add esp, 4
mov dword [ebp - 0x38], 0
mov ebx, dword [ebp + 0xc]
mov dword [ebp - 0x34], 0
mov dword [ebp - 0x30], 0
mov byte [ebp - 4], 3
add esi, 0xfffffff0
or eax, 0xffffffff
lock xadd dword [esi + 0xc], eax
dec eax
test eax, eax
jg 0x50e9e6
mov ecx, dword [esi]
push esi
mov edx, dword [ecx]
call dword [edx + 4]
mov dword [ebp - 4], 0xffffffff
mov ecx, ebx
mov edx, dword [ebx]
push 1
call dword [edx]
mov eax, edi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 0x1c
push str.Cur_Exfat_file_is_zero_success
call fcn.004131f0
mov eax, dword [ebp - 0x18]
add esp, 4
mov eax, dword [eax]
mov dword [ebp + 0x20], eax
mov eax, dword [ebp + 0xc]
push 0
push dword [eax + 0x18]
mov eax, dword [ebp + 0x10]
push dword [eax + 0x14]
push dword [eax + 0x10]
call fcn.005dd710
mov dword [ebp - 0x20], eax
mov dword [ebp + 0x10], 0
test eax, eax
js 0x50e981
cdq
mov ecx, eax
call fcn.005de0f0
cvtsd2ss xmm0, xmm0
movss dword [ebp + 0x14], xmm0
nop dword [eax]
mov ecx, dword [ebp + 0xc]
push edi
push dword [ebp - 0x2c]
push dword [ebp + 0x20]
call fcn.0046d4c0
mov eax, dword [ebp + 0x10]
inc dword [ebp + 0x20]
cdq
mov ecx, eax
call fcn.005de0f0
cvtsd2ss xmm0, xmm0
push 0
mulss xmm0, dword [0x664e60]
divss xmm0, dword [ebp + 0x14]
cvttss2si eax, xmm0
push eax
mov eax, dword [ebp - 0x14]
push 0x40d
push dword [eax + 8]
call dword [sym.imp.USER32.dll_PostMessageW]
mov eax, dword [ebp + 0x1c]
test eax, eax
je 0x50eab2
cmp dword [eax], 0
jne 0x50eb13
mov ecx, dword [ebp + 0xc]
push edi
push dword [ebp - 0x2c]
push dword [ebp + 0x20]
call fcn.0046d4c0
inc dword [ebp + 0x20]
cmp dword [ebp + 8], 0
ja 0x50eae5
jb 0x50ead0
cmp ebx, edi
ja 0x50eae5
push 0
lea eax, [ebp - 0x1c]
push eax
push ebx
push dword [ebp - 0x2c]
push dword [ebp + 0x18]
call dword [sym.imp.KERNEL32.dll_WriteFile]
jmp 0x50eafe
push 0
lea eax, [ebp - 0x1c]
push eax
push edi
push dword [ebp - 0x2c]
push dword [ebp + 0x18]
call dword [sym.imp.KERNEL32.dll_WriteFile]
sub ebx, edi
sbb dword [ebp + 8], 0
mov eax, dword [ebp + 0x10]
inc eax
mov dword [ebp + 0x10], eax
cmp eax, dword [ebp - 0x20]
jle 0x50ea60
jmp 0x50e981
push dword [ebp + 0x18]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
push esi
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
xor edi, edi
jmp 0x50e98f
xor eax, eax
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 0x1c
push 0x80070057
call fcn.0040b250
push 0x80004005
call fcn.0040b250
push 1
push 0xc000008c
call fcn.0040b220
int3