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

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x608856
mov eax, dword fs:[0]
push eax
sub esp, 0x28
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 - 0x10], eax
mov dword [eax + 0xc], 0
xor eax, eax
cmp dword [ebp + 0x14], 4
mov dword [ebp - 0x18], eax
jne 0x50cdf5
mov esi, dword [ebp + 0xc]
test esi, esi
je 0x50d398
push 0x1060
call fcn.00560437
add esp, 4
mov dword [ebp + 8], eax
mov dword [ebp - 4], 0
mov ecx, eax
mov ebx, dword [ebp + 0x10]
push dword [ebx + 0x2c]
push dword [ebx + 0x28]
push dword [esi + 4]
call fcn.00470d60
mov edi, eax
mov dword [ebp + 0xc], edi
mov dword [ebp - 4], 0xffffffff
jmp 0x50ce9b
mov esi, dword [ebp + 8]
test esi, esi
je 0x50d398
mov eax, dword [esi + 8]
mov ecx, str.FAT32_RAW
mov dx, word [eax]
cmp dx, word [ecx]
jne 0x50ce2e
test dx, dx
je 0x50ce2a
mov dx, word [eax + 2]
cmp dx, word [ecx + 2]
jne 0x50ce2e
add eax, 4
add ecx, 4
test dx, dx
jne 0x50ce08
xor eax, eax
jmp 0x50ce33
sbb eax, eax
or eax, 1
test eax, eax
jne 0x50ce6c
push 0x1058
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 0x50d3ae
movzx eax, word [eax]
push eax
call fcn.00471160
mov edi, eax
mov dword [ebp + 0xc], edi
jmp 0x50ce91
push 0x1050
call fcn.00560437
add esp, 4
mov dword [ebp + 8], eax
mov dword [ebp - 4], 2
mov ecx, eax
push dword [esi]
call fcn.004701f0
mov edi, eax
mov dword [ebp + 0xc], eax
mov dword [ebp - 4], 0xffffffff
mov ebx, dword [ebp + 0x10]
test edi, edi
je 0x50d398
mov dword [ebp - 0x20], edi
mov dword [ebp - 4], 3
cmp dword [edi + 0xc], 0
jne 0x50cf22
cmp dword [0x6b8fe8], 0
je 0x50cec5
mov eax, dword [ebp - 0x10]
cmp dword [eax + 0xc], 0
je 0x50cf22
mov ebx, dword [ebp - 0x10]
sub esp, 0x18
cmp dword [ebp + 0x14], 4
mov ecx, esp
mov dword [ebp + 0x20], esp
mov dword [ebx + 0xc], 1
jne 0x50ceed
push 0x6b1250
call fcn.00420d90
mov byte [ebp - 4], 4
jmp 0x50cefb
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 [ebx + 8]
call dword [sym.imp.USER32.dll_PostMessageW]
xor ebx, ebx
jmp 0x50d281
call fcn.0040bf10
mov ecx, eax
test ecx, ecx
je 0x50d3b8
mov eax, dword [ecx]
call dword [eax + 0xc]
lea esi, [eax + 0x10]
mov dword [ebp + 8], esi
mov byte [ebp - 4], 7
cmp byte [ebp + 0x20], 0
jne 0x50cfdc
push dword [ebp + 0x18]
mov edx, dword [ebx]
lea ecx, [ebp - 0x1c]
call fcn.004df5e0
add esp, 4
mov byte [ebp - 4], 8
lea ecx, [esi - 0x10]
mov edx, dword [eax]
mov dword [ebp - 0x14], ecx
lea eax, [edx - 0x10]
mov dword [ebp + 0x18], eax
cmp eax, ecx
je 0x50cfbb
cmp dword [ecx + 0xc], 0
lea esi, [ecx + 0xc]
jl 0x50cfac
mov eax, dword [eax]
cmp eax, dword [ecx]
jne 0x50cfac
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 0x50cfa4
mov esi, dword [ebp - 0x14]
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 + 8], esi
jmp 0x50cfbb
push dword [edx - 0xc]
lea ecx, [ebp + 8]
push edx
call fcn.0040c9d0
mov esi, dword [ebp + 8]
mov byte [ebp - 4], 7
or eax, 0xffffffff
mov edx, dword [ebp - 0x1c]
add edx, 0xfffffff0
lock xadd dword [edx + 0xc], eax
dec eax
test eax, eax
jg 0x50d00c
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
jmp 0x50d00c
mov edx, dword [ebp + 0x18]
test edx, edx
jne 0x50cfe7
xor ecx, ecx
jmp 0x50cfff
mov ecx, edx
lea esi, [ecx + 2]
nop dword [eax]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x50cff0
sub ecx, esi
sar ecx, 1
push ecx
push edx
lea ecx, [ebp + 8]
call fcn.0040c9d0
mov esi, dword [ebp + 8]
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 0x50d04a
cmp byte [ebp + 0x20], 0
je 0x50d043
mov eax, dword [ebp - 0x10]
push 0
mov ecx, dword [eax + 8]
call fcn.004dfbe0
add esp, 4
xor ebx, ebx
jmp 0x50d265
mov dword [ebp - 0x34], 0
mov dword [ebp - 0x30], 0
mov dword [ebp - 0x2c], 0
mov byte [ebp - 4], 0xb
mov eax, dword [ebx + 0x14]
push 0
push dword [edi + 0x18]
mov dword [ebp - 0x24], eax
push eax
push dword [ebx + 0x10]
call fcn.005ddd60
test edx, edx
jne 0x50d082
mov dword [ebp + 0x20], edx
test eax, eax
je 0x50d089
mov dword [ebp + 0x20], 1
push 0
push dword [edi + 0x18]
push dword [ebx + 0x14]
push dword [ebx + 0x10]
call fcn.005dd710
add eax, dword [ebp + 0x20]
cmp dword [ebx + 0x34], 0
mov dword [ebp - 0x14], eax
je 0x50d1ea
mov edi, dword [ebx + 0x30]
add eax, edi
mov dword [ebp - 0x1c], eax
mov dword [ebp + 0x20], edi
cmp edi, eax
jae 0x50d0d7
mov ebx, eax
nop word [eax + eax]
lea eax, [ebp + 0x20]
push eax
lea ecx, [ebp - 0x34]
call fcn.0046e640
inc edi
mov dword [ebp + 0x20], edi
cmp edi, ebx
jb 0x50d0c0
mov ebx, dword [ebp + 0x10]
mov edi, dword [ebp + 0xc]
mov eax, dword [ebp - 0x14]
cmp dword [ebp - 0x30], eax
je 0x50d0f2
cmp dword [ebp + 0x14], 2
je 0x50d0f2
cmp dword [ebx + 0x20], 0
jne 0x50d22d
mov edi, dword [edi + 0x18]
push edi
mov dword [ebp + 0x20], edi
mov dword [ebp - 0x28], 0
mov dword [ebp - 0x24], edi
call fcn.00560596
push edi
mov ebx, eax
push 0
push ebx
mov dword [ebp - 0x28], ebx
call fcn.00588800
add esp, 0x10
mov byte [ebp - 4], 0xc
cmp dword [ebp + 0x14], 2
mov eax, dword [ebp + 0x10]
je 0x50d2a6
cmp dword [eax + 0x20], 0
je 0x50d2a6
mov eax, dword [ebp - 0x30]
xor edi, edi
test eax, eax
jle 0x50d219
test edi, edi
js 0x50d3c2
cmp edi, eax
jge 0x50d3c2
push dword [ebp + 0x20]
mov eax, dword [ebp - 0x34]
mov ecx, dword [ebp + 0xc]
push ebx
push dword [eax + edi*4]
call fcn.004704d0
test eax, eax
je 0x50d20d
mov eax, edi
cdq
mov ecx, eax
call fcn.005de0f0
mov eax, dword [ebp - 0x30]
cvtsd2ss xmm0, xmm0
cdq
mov ecx, eax
mulss xmm0, dword [0x664e60]
movss dword [ebp + 0x14], xmm0
call fcn.005de0f0
movss xmm1, dword [ebp + 0x14]
cvtsd2ss xmm0, xmm0
push 0
divss xmm1, xmm0
cvttss2si eax, xmm1
push eax
mov eax, dword [ebp - 0x10]
push 0x40d
push dword [eax + 8]
call dword [sym.imp.USER32.dll_PostMessageW]
mov eax, dword [ebp + 0x1c]
test eax, eax
je 0x50d1c6
cmp dword [eax], 0
jne 0x50d374
mov eax, dword [ebp - 0x30]
dec eax
cmp edi, eax
lea eax, [ebp - 0x14]
push 0
push eax
jne 0x50d200
mov eax, dword [ebp + 0x10]
push 0
push dword [ebp + 0x20]
push dword [eax + 0x14]
push dword [eax + 0x10]
call fcn.005ddd60
push eax
jmp 0x50d203
push dword [ebx + 0x10]
lea eax, [ebp - 0x34]
mov ecx, edi
push eax
push dword [ebx + 0x30]
call fcn.00470630
jmp 0x50d0da
push dword [ebp + 0x20]
push ebx
push dword [ebp + 0x18]
call dword [sym.imp.KERNEL32.dll_WriteFile]
mov eax, dword [ebp - 0x30]
inc edi
cmp edi, eax
jl 0x50d141
mov dword [ebp - 0x18], 1
mov byte [ebp - 4], 0xb
push ebx
call fcn.00560591
add esp, 4
push dword [ebp + 0x18]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov ebx, dword [ebp - 0x18]
mov byte [ebp - 4], 7
mov eax, dword [ebp - 0x34]
test eax, eax
je 0x50d254
push eax
call fcn.005a51fb
add esp, 4
mov dword [ebp - 0x34], 0
mov edi, dword [ebp + 0xc]
mov dword [ebp - 0x30], 0
mov dword [ebp - 0x2c], 0
mov byte [ebp - 4], 3
add esi, 0xfffffff0
or eax, 0xffffffff
lock xadd dword [esi + 0xc], eax
dec eax
test eax, eax
jg 0x50d281
mov ecx, dword [esi]
push esi
mov edx, dword [ecx]
call dword [edx + 4]
mov dword [ebp - 4], 0xffffffff
mov ecx, edi
mov edx, dword [edi]
push 1
call dword [edx]
mov eax, ebx
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
mov ecx, dword [eax + 0x30]
mov dword [ebp + 0x14], ecx
mov ecx, dword [ebp + 0xc]
push 0
push dword [ecx + 0x18]
push dword [eax + 0x14]
push dword [eax + 0x10]
call fcn.005dd710
mov dword [ebp - 0x18], eax
mov dword [ebp + 0x20], 0
test eax, eax
js 0x50d219
cdq
mov ecx, eax
call fcn.005de0f0
cvtsd2ss xmm0, xmm0
movss dword [ebp - 0x1c], xmm0
mov ecx, dword [ebp + 0xc]
push edi
push ebx
push dword [ebp + 0x14]
call fcn.004704d0
mov eax, dword [ebp + 0x20]
inc dword [ebp + 0x14]
cdq
mov ecx, eax
call fcn.005de0f0
cvtsd2ss xmm0, xmm0
push 0
mulss xmm0, dword [0x664e60]
divss xmm0, dword [ebp - 0x1c]
cvttss2si eax, xmm0
push eax
mov eax, dword [ebp - 0x10]
push 0x40d
push dword [eax + 8]
call dword [sym.imp.USER32.dll_PostMessageW]
mov eax, dword [ebp + 0x1c]
test eax, eax
je 0x50d332
cmp dword [eax], 0
jne 0x50d374
mov eax, dword [ebp - 0x18]
cmp dword [ebp + 0x20], eax
lea eax, [ebp - 0x14]
push 0
push eax
jne 0x50d354
mov eax, dword [ebp + 0x10]
push 0
push edi
push dword [eax + 0x14]
push dword [eax + 0x10]
call fcn.005ddd60
push eax
jmp 0x50d355
push edi
push ebx
push dword [ebp + 0x18]
call dword [sym.imp.KERNEL32.dll_WriteFile]
mov eax, dword [ebp + 0x20]
inc eax
mov dword [ebp + 0x20], eax
cmp eax, dword [ebp - 0x18]
jle 0x50d2e2
jmp 0x50d219
push dword [ebp + 0x18]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
push esi
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
mov byte [ebp - 4], 0xb
push ebx
call fcn.00560591
add esp, 4
xor ebx, ebx
jmp 0x50d239
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