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

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x6089a6
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
cmp dword [ebp + 0x14], 4
mov dword [eax + 0xc], 0
jne 0x50d950
mov esi, dword [ebp + 0xc]
test esi, esi
je 0x50df28
push 0x868
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.0046f810
mov edi, eax
mov dword [ebp + 0xc], edi
mov dword [ebp - 4], 0xffffffff
jmp 0x50d9f6
mov esi, dword [ebp + 8]
test esi, esi
je 0x50df28
mov eax, dword [esi + 8]
mov ecx, str.FAT_RAW
mov dx, word [eax]
cmp dx, word [ecx]
jne 0x50d989
test dx, dx
je 0x50d985
mov dx, word [eax + 2]
cmp dx, word [ecx + 2]
jne 0x50d989
add eax, 4
add ecx, 4
test dx, dx
jne 0x50d963
xor eax, eax
jmp 0x50d98e
sbb eax, eax
or eax, 1
test eax, eax
jne 0x50d9c7
push 0x860
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 0x50df3e
movzx eax, word [eax]
push eax
call fcn.0046fb70
mov edi, eax
mov dword [ebp + 0xc], edi
jmp 0x50d9ec
push 0x858
call fcn.00560437
add esp, 4
mov dword [ebp + 8], eax
mov dword [ebp - 4], 2
mov ecx, eax
push dword [esi]
call fcn.0046ebb0
mov edi, eax
mov dword [ebp + 0xc], eax
mov dword [ebp - 4], 0xffffffff
mov ebx, dword [ebp + 0x10]
test edi, edi
je 0x50df28
mov dword [ebp - 0x20], edi
mov dword [ebp - 4], 3
cmp dword [edi + 0xc], 0
jne 0x50da7d
cmp dword [0x6b8fe8], 0
je 0x50da20
mov eax, dword [ebp - 0x10]
cmp dword [eax + 0xc], 0
je 0x50da7d
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 0x50da48
push 0x6b1250
call fcn.00420d90
mov byte [ebp - 4], 4
jmp 0x50da56
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 0x50ddf5
xor eax, eax
mov dword [ebp - 0x18], eax
call fcn.0040bf10
mov ecx, eax
test ecx, ecx
je 0x50df48
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 0x50db3c
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 0x50db1b
cmp dword [ecx + 0xc], 0
lea esi, [ecx + 0xc]
jl 0x50db0c
mov eax, dword [eax]
cmp eax, dword [ecx]
jne 0x50db0c
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 0x50db04
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 0x50db1b
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 0x50db6c
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
jmp 0x50db6c
mov edx, dword [ebp + 0x18]
test edx, edx
jne 0x50db47
xor ecx, ecx
jmp 0x50db5f
mov ecx, edx
lea esi, [ecx + 2]
nop dword [eax]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x50db50
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 0x50dbaa
cmp byte [ebp + 0x20], 0
je 0x50dba3
mov eax, dword [ebp - 0x10]
push 0
mov ecx, dword [eax + 8]
call fcn.004dfbe0
add esp, 4
xor ebx, ebx
jmp 0x50ddd9
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 + 0x1c]
mov dword [ebp - 0x24], eax
push eax
push dword [ebx + 0x10]
call fcn.005ddd60
test edx, edx
jne 0x50dbe2
mov dword [ebp + 0x20], edx
test eax, eax
je 0x50dbe9
mov dword [ebp + 0x20], 1
push 0
push dword [edi + 0x1c]
push dword [ebx + 0x14]
push dword [ebx + 0x10]
call fcn.005dd710
add ax, word [ebp + 0x20]
cmp dword [ebx + 0x34], 0
movzx eax, ax
mov dword [ebp - 0x14], eax
je 0x50dd5b
movzx ecx, word [ebx + 0x30]
add eax, ecx
mov edi, ecx
movzx eax, ax
mov dword [ebp - 0x1c], eax
mov dword [ebp + 0x20], edi
cmp cx, ax
jae 0x50dc3d
mov ebx, eax
lea eax, [ebp + 0x20]
push eax
lea ecx, [ebp - 0x34]
call fcn.0046ff50
inc edi
mov dword [ebp + 0x20], edi
cmp di, bx
jb 0x50dc25
mov ebx, dword [ebp + 0x10]
mov edi, dword [ebp + 0xc]
mov eax, dword [ebp - 0x14]
movzx eax, ax
cmp dword [ebp - 0x30], eax
je 0x50dc5b
cmp dword [ebp + 0x14], 2
je 0x50dc5b
cmp dword [ebx + 0x20], 0
jne 0x50dda0
mov edi, dword [edi + 0x1c]
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 0x50de35
cmp dword [eax + 0x20], 0
je 0x50de35
mov eax, dword [ebp - 0x30]
xor edi, edi
test eax, eax
jle 0x50dd8c
nop word [eax + eax]
test edi, edi
js 0x50df52
cmp edi, eax
jge 0x50df52
push dword [ebp + 0x20]
mov eax, dword [ebp - 0x34]
mov ecx, dword [ebp + 0xc]
push ebx
movzx eax, word [eax + edi*2]
push eax
call fcn.0046f780
test eax, eax
je 0x50dd80
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 0x50dd37
cmp dword [eax], 0
jne 0x50df03
mov eax, dword [ebp - 0x30]
dec eax
cmp edi, eax
lea eax, [ebp - 0x14]
push 0
push eax
jne 0x50dd73
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 0x50dd76
push dword [ebx + 0x10]
lea eax, [ebp - 0x34]
mov ecx, edi
push eax
movzx eax, word [ebx + 0x30]
push eax
call fcn.0046f680
jmp 0x50dc40
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 0x50dcb0
mov dword [ebp - 0x18], 1
mov byte [ebp - 4], 0xb
push ebx
call fcn.00560591
add esp, 4
push dword [ebp + 0x18]
mov eax, dword [sym.imp.KERNEL32.dll_CloseHandle]
call eax
mov ebx, dword [ebp - 0x18]
mov byte [ebp - 4], 7
mov eax, dword [ebp - 0x34]
test eax, eax
je 0x50ddc8
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 0x50ddf5
mov ecx, dword [esi]
push esi
mov eax, dword [ecx]
call dword [eax + 4]
mov dword [ebp - 4], 0xffffffff
mov eax, dword [edi + 0x10]
mov dword [edi], vtable.CFATVolume.0
cmp eax, 0xffffffff
je 0x50de11
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
push 0x858
push edi
call fcn.005603ff
add esp, 8
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 + 0x1c]
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 0x50dd8c
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.0046f780
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 0x50dec1
cmp dword [eax], 0
jne 0x50df03
mov eax, dword [ebp - 0x18]
cmp dword [ebp + 0x20], eax
lea eax, [ebp - 0x14]
push 0
push eax
jne 0x50dee3
mov eax, dword [ebp + 0x10]
push 0
push edi
push dword [eax + 0x14]
push dword [eax + 0x10]
call fcn.005ddd60
push eax
jmp 0x50dee4
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 0x50de71
jmp 0x50dd8c
push dword [ebp + 0x18]
mov eax, dword [sym.imp.KERNEL32.dll_CloseHandle]
call eax
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 0x50ddad
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