Function at 0x50ad60
Capabilities:
Check if file exists
Delete file
Write file on windows

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x608659
mov eax, dword fs:[0]
push eax
sub esp, 0x248
mov eax, dword [0x6b000c]
xor eax, ebp
mov dword [ebp - 0x14], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov dword [ebp - 0x10], esp
mov dword [ebp - 0x1e0], ecx
mov edi, dword [ebp + 8]
mov ebx, dword [ebp + 0xc]
mov esi, dword [ebp + 0x10]
mov dword [ebp - 0x224], esi
mov eax, dword [ebp + 0x18]
mov dword [ebp - 0x220], eax
push str.begin_recover__n
call fcn.004131f0
add esp, 4
xor eax, eax
mov dword [ebp - 0x240], eax
mov eax, dword [ebp - 0x1e0]
mov dword [eax + 0xc], 0
test esi, esi
jne 0x50addf
push str.Null_deletedFile_n
jmp 0x50bebb
cmp dword [ebp + 0x14], 4
jne 0x50ae1c
test ebx, ebx
je 0x50beb6
push 0x88
call fcn.00560437
add esp, 4
mov dword [ebp - 0x1dc], eax
mov dword [ebp - 4], 0
push dword [esi + 0x2c]
push dword [esi + 0x28]
push dword [ebx + 4]
mov ecx, eax
call fcn.004a81e0
jmp 0x50af40
test edi, edi
je 0x50beb6
mov eax, dword [edi + 8]
mov ecx, str.NTFS_RAW
nop dword [eax]
mov dx, word [eax]
cmp dx, word [ecx]
jne 0x50ae56
test dx, dx
je 0x50ae52
mov dx, word [eax + 2]
cmp dx, word [ecx + 2]
jne 0x50ae56
add eax, 4
add ecx, 4
test dx, dx
jne 0x50ae30
xor eax, eax
jmp 0x50ae5b
sbb eax, eax
or eax, 1
test eax, eax
jne 0x50ae9e
push 0x80
call fcn.00560437
mov esi, eax
mov dword [ebp - 0x1dc], esi
mov dword [ebp - 4], 1
mov ecx, edi
call fcn.004909c0
movzx eax, ax
push eax
mov ecx, esi
call fcn.004a8700
mov edi, eax
mov dword [ebp - 4], 0xffffffff
mov esi, dword [ebp - 0x224]
jmp 0x50af49
cmp dword [esi + 0x40], 0xffffffff
je 0x50af20
lea ecx, [ebp - 0x1d8]
call fcn.0040c490
mov dword [ebp - 4], 2
push dword [esi + 0x40]
push 0x65d140
lea eax, [ebp - 0x1d8]
push eax
call fcn.0040d300
push 0x78
call fcn.00560437
add esp, 0x10
mov dword [ebp - 0x1dc], eax
mov byte [ebp - 4], 3
push dword [ebp - 0x1d8]
mov ecx, eax
call fcn.0047b130
mov edi, eax
mov byte [ebp - 4], 2
mov dword [ebp - 0x22c], edi
mov dword [ebp - 4], 0xffffffff
mov edx, dword [ebp - 0x1d8]
add edx, 0xfffffff0
or ebx, 0xffffffff
mov eax, ebx
lock xadd dword [edx + 0xc], eax
dec eax
test eax, eax
jg 0x50af52
mov ecx, dword [edx]
mov eax, dword [ecx]
push edx
call dword [eax + 4]
jmp 0x50af52
push 0x78
call fcn.00560437
add esp, 4
mov dword [ebp - 0x1dc], eax
mov dword [ebp - 4], 5
push dword [edi]
mov ecx, eax
call fcn.0047b130
mov edi, eax
mov dword [ebp - 4], 0xffffffff
mov dword [ebp - 0x22c], edi
or ebx, 0xffffffff
test edi, edi
je 0x50beb6
mov dword [ebp - 0x254], edi
mov dword [ebp - 4], 6
cmp dword [edi + 0x24], 0
jne 0x50b003
cmp dword [0x6b8fe8], 0
je 0x50af86
mov eax, dword [ebp - 0x1e0]
cmp dword [eax + 0xc], 0
je 0x50b003
push str.IsVolumeOK:_false_n
call fcn.004131f0
add esp, 4
mov ebx, dword [ebp - 0x1e0]
mov dword [ebx + 0xc], 1
sub esp, 0x18
mov ecx, esp
mov dword [ebp - 0x1dc], esp
cmp dword [ebp + 0x14], 4
jne 0x50afc1
push 0x6b1250
call fcn.00420d90
mov byte [ebp - 4], 7
jmp 0x50afcf
push 0x6b1340
call fcn.00420d90
mov byte [ebp - 4], 8
mov byte [ebp - 4], 6
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]
mov dword [ebp - 4], 0xffffffff
mov eax, dword [edi]
push 1
mov ecx, edi
call dword [eax]
jmp 0x50bec3
mov eax, dword [esi + 0x18]
mov dword [ebp - 0x20c], eax
mov eax, dword [esi + 0x1c]
mov dword [ebp - 0x210], eax
push edi
lea ecx, [ebp - 0x1cc]
call fcn.00479b60
mov byte [ebp - 4], 9
push dword [ebp - 0x210]
push dword [ebp - 0x20c]
cmp dword [ebp + 0x14], 2
je 0x50b0a7
lea ecx, [ebp - 0x1cc]
call fcn.0047a760
test eax, eax
jne 0x50b14b
cmp byte [ebp + 0x20], al
je 0x50b084
sub esp, 0x18
mov ecx, esp
mov dword [ebp - 0x1dc], esp
push 0x6b14d8
call fcn.00420d90
mov byte [ebp - 4], 0xa
push 0
mov byte [ebp - 4], 9
mov edx, 0x40
mov eax, dword [ebp - 0x1e0]
mov ecx, dword [eax + 8]
call fcn.004e0d20
add esp, 0x1c
mov byte [ebp - 4], 6
lea ecx, [ebp - 0x1cc]
call fcn.00479c30
mov dword [ebp - 4], 0xffffffff
mov eax, dword [edi]
mov ecx, edi
push 1
call dword [eax]
jmp 0x50bec3
push edi
call fcn.0050bef0
mov esi, eax
test esi, esi
jne 0x50b0c2
push str.frecord:_null_n
call fcn.004131f0
add esp, 4
jmp 0x50b084
mov dword [ebp - 0x1dc], esi
mov byte [ebp - 4], 0xb
push esi
push dword [ebp - 0x210]
push dword [ebp - 0x20c]
lea ecx, [ebp - 0x1cc]
call fcn.0047a930
test eax, eax
jne 0x50b136
cmp byte [ebp + 0x20], al
je 0x50b122
sub esp, 0x18
mov ecx, esp
mov dword [ebp - 0x230], esp
push 0x6b14d8
call fcn.00420d90
mov byte [ebp - 4], 0xc
push 0
mov byte [ebp - 4], 0xb
mov edx, 0x40
mov eax, dword [ebp - 0x1e0]
mov ecx, dword [eax + 8]
call fcn.004e0d20
add esp, 0x1c
mov byte [ebp - 4], 9
push 0x30
push esi
call fcn.005603ff
add esp, 8
jmp 0x50b084
mov byte [ebp - 4], 9
push 0x30
push esi
call fcn.005603ff
add esp, 8
mov esi, dword [ebp - 0x224]
mov dword [ebp - 0x174], 0x8883
lea ecx, [ebp - 0x1cc]
call fcn.0047abe0
test eax, eax
jne 0x50b18b
cmp byte [ebp + 0x20], al
je 0x50b084
sub esp, 0x18
mov ecx, esp
mov dword [ebp - 0x1dc], esp
push 0x6b14d8
call fcn.00420d90
mov byte [ebp - 4], 0xd
jmp 0x50b068
lea ecx, [ebp - 0x1d0]
call fcn.0040c490
mov byte [ebp - 4], 0xe
cmp byte [ebp + 0x20], 0
jne 0x50b240
push dword [ebp - 0x220]
mov edx, dword [esi]
lea ecx, [ebp - 0x228]
call fcn.004df5e0
add esp, 4
mov byte [ebp - 4], 0xf
mov edx, dword [eax]
lea ecx, [edx - 0x10]
mov esi, dword [ebp - 0x1d0]
add esi, 0xfffffff0
cmp ecx, esi
je 0x50b21d
cmp dword [esi + 0xc], 0
jl 0x50b20e
mov eax, dword [ecx]
cmp eax, dword [esi]
jne 0x50b20e
call fcn.0040c950
mov dword [ebp - 0x230], eax
mov eax, ebx
lea ecx, [esi + 0xc]
lock xadd dword [ecx], eax
dec eax
test eax, eax
jg 0x50b1fd
mov ecx, dword [esi]
mov eax, dword [ecx]
push esi
call dword [eax + 4]
mov eax, dword [ebp - 0x230]
add eax, 0x10
mov dword [ebp - 0x1d0], eax
jmp 0x50b21d
push dword [edx - 0xc]
push edx
lea ecx, [ebp - 0x1d0]
call fcn.0040c9d0
mov byte [ebp - 4], 0xe
mov edx, dword [ebp - 0x228]
add edx, 0xfffffff0
mov eax, ebx
lock xadd dword [edx + 0xc], eax
dec eax
test eax, eax
jg 0x50b26f
mov ecx, dword [edx]
mov eax, dword [ecx]
push edx
call dword [eax + 4]
jmp 0x50b26f
mov edx, dword [ebp - 0x220]
test edx, edx
jne 0x50b24e
xor ecx, ecx
jmp 0x50b262
mov ecx, edx
lea esi, [ecx + 2]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x50b253
sub ecx, esi
sar ecx, 1
push ecx
push edx
lea ecx, [ebp - 0x1d0]
call fcn.0040c9d0
mov eax, dword [ebp - 0x168]
mov dword [ebp - 0x160], eax
test eax, eax
je 0x50b3e7
mov eax, dword [eax + 4]
test eax, eax
je 0x50b3e7
mov eax, dword [eax + 0x40]
test dword [eax + 0x20], 0x400
je 0x50b3e7
lea eax, [ebp - 0x2c]
push eax
lea ecx, [ebp - 0x1cc]
call fcn.0047ae00
mov byte [ebp - 4], 0x11
cmp dword [ebp - 0x1c], 0
je 0x50b3db
lea eax, [ebp - 0x2c]
cmp dword [ebp - 0x18], 8
cmovae eax, dword [ebp - 0x2c]
push eax
mov esi, dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
call esi
test eax, eax
je 0x50b3db
cmp byte [ebp + 0x20], 0
je 0x50b2f5
push dword [ebp - 0x1d0]
call esi
test eax, eax
je 0x50b2f5
push dword [ebp - 0x1d0]
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
lea ecx, [ebp - 0x1d4]
call fcn.0040c490
mov byte [ebp - 4], 0x12
lea eax, [ebp - 0x2c]
cmp dword [ebp - 0x18], 8
cmovae eax, dword [ebp - 0x2c]
push eax
push dword [ebp - 0x1d0]
push str._c_mklink___s____s_
lea eax, [ebp - 0x1d4]
push eax
call fcn.0040d300
add esp, 0x10
mov edx, str.C:_Windows_System32_cmd.exe
mov ecx, dword [ebp - 0x1d4]
call fcn.004ddca0
push dword [ebp - 0x1d0]
call esi
test eax, eax
je 0x50b3ba
mov byte [ebp - 4], 0x11
mov edx, dword [ebp - 0x1d4]
add edx, 0xfffffff0
mov eax, ebx
lock xadd dword [edx + 0xc], eax
dec eax
test eax, eax
jg 0x50b367
mov ecx, dword [edx]
mov eax, dword [ecx]
push edx
call dword [eax + 4]
mov byte [ebp - 4], 0xe
lea ecx, [ebp - 0x2c]
call fcn.00476270
mov byte [ebp - 4], 9
mov edx, dword [ebp - 0x1d0]
add edx, 0xfffffff0
lock xadd dword [edx + 0xc], ebx
dec ebx
test ebx, ebx
jg 0x50b392
mov ecx, dword [edx]
mov eax, dword [ecx]
push edx
call dword [eax + 4]
mov byte [ebp - 4], 6
lea ecx, [ebp - 0x1cc]
call fcn.00479c30
mov dword [ebp - 4], 0xffffffff
mov eax, dword [edi]
push 1
mov ecx, edi
call dword [eax]
mov eax, 1
jmp 0x50bec5
mov byte [ebp - 4], 0x11
mov edx, dword [ebp - 0x1d4]
add edx, 0xfffffff0
mov eax, ebx
lock xadd dword [edx + 0xc], eax
dec eax
test eax, eax
jg 0x50b3db
mov ecx, dword [edx]
mov eax, dword [ecx]
push edx
call dword [eax + 4]
mov byte [ebp - 4], 0xe
lea ecx, [ebp - 0x2c]
call fcn.00476270
push 0
push 0x80
push 2
push 0
push 0
push 0xc0000000
push dword [ebp - 0x1d0]
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov dword [ebp - 0x218], eax
cmp eax, 0xffffffff
jne 0x50b451
cmp byte [ebp + 0x20], 0
je 0x50b429
push 0
mov eax, dword [ebp - 0x1e0]
mov ecx, dword [eax + 8]
call fcn.004dfbe0
add esp, 4
mov byte [ebp - 4], 9
mov edx, dword [ebp - 0x1d0]
add edx, 0xfffffff0
lock xadd dword [edx + 0xc], ebx
dec ebx
test ebx, ebx
jg 0x50b084
mov ecx, dword [edx]
mov eax, dword [ecx]
push edx
call dword [eax + 4]
jmp 0x50b084
mov dword [ebp - 0x204], 0
mov dword [ebp - 0x200], 0
mov byte [ebp - 0x1fc], 0
mov dword [ebp - 0x1f8], 0
mov dword [ebp - 0x1f4], 0
mov byte [ebp - 0x1f0], 0
mov dword [ebp - 0x1ec], 0
mov dword [ebp - 0x1e8], 0
mov byte [ebp - 0x1e4], 0
mov byte [ebp - 4], 0x17
mov ecx, dword [ebp - 0x168]
mov dword [ebp - 0x160], ecx
test ecx, ecx
je 0x50b4d0
mov eax, dword [ecx + 4]
test eax, eax
je 0x50b4d0
mov eax, dword [eax + 0x40]
mov eax, dword [eax + 0x20]
and eax, 0x800
mov dword [ebp - 0x244], eax
jmp 0x50b4da
mov dword [ebp - 0x244], 0
mov dword [ebp - 0x160], ecx
test ecx, ecx
je 0x50b85a
mov eax, dword [ecx + 4]
test eax, eax
je 0x50b85a
mov eax, dword [eax + 0x40]
mov esi, dword [eax + 0x20]
and esi, 0x4000
mov dword [ebp - 0x230], esi
je 0x50b864
push 0x100
lea ecx, [ebp - 0x1cc]
call fcn.0047ad00
mov dword [ebp - 0x228], eax
test eax, eax
jne 0x50b607
push str.CAttrBase:_null_n
call fcn.004131f0
add esp, 4
mov byte [ebp - 4], 0xe
cmp byte [ebp - 0x1fc], 0
je 0x50b571
mov eax, dword [ebp - 0x204]
test eax, eax
je 0x50b571
push eax
call fcn.005a51fb
add esp, 4
mov dword [ebp - 0x204], 0
mov byte [ebp - 0x1fc], 0
mov dword [ebp - 0x200], 0
cmp byte [ebp - 0x1f0], 0
je 0x50b5a8
mov eax, dword [ebp - 0x1f8]
test eax, eax
je 0x50b5a8
push eax
call fcn.005a51fb
add esp, 4
mov dword [ebp - 0x1f8], 0
mov byte [ebp - 0x1f0], 0
mov dword [ebp - 0x1f4], 0
cmp byte [ebp - 0x1e4], 0
je 0x50b5df
mov eax, dword [ebp - 0x1ec]
test eax, eax
je 0x50b5df
push eax
call fcn.005a51fb
add esp, 4
mov dword [ebp - 0x1ec], 0
mov byte [ebp - 0x1e4], 0
mov dword [ebp - 0x1e8], 0
mov byte [ebp - 4], 9
mov edx, dword [ebp - 0x1d0]
add edx, 0xfffffff0
lock xadd dword [edx + 0xc], ebx
dec ebx
test ebx, ebx
jg 0x50b084
mov ecx, dword [edx]
mov eax, dword [ecx]
push edx
call dword [eax + 4]
jmp 0x50b084
mov byte [ebp - 4], 0x19
push 0x10000
call fcn.00560596
add esp, 4
mov esi, eax
xorps xmm0, xmm0
movlpd qword [ebp - 0x23c], xmm0
mov ecx, dword [ebp - 0x228]
mov eax, dword [ecx]
lea edx, [ebp - 0x234]
push edx
push 0x10000
push esi
lea edx, [ebp - 0x23c]
push edx
call dword [eax + 0xc]
push esi
lea ecx, [ebp - 0x204]
call fcn.0047e740
mov bl, al
push esi
call fcn.00560591
add esp, 4
test bl, bl
jne 0x50b739
mov byte [ebp - 4], 0xe
cmp byte [ebp - 0x1fc], bl
je 0x50b69c
mov eax, dword [ebp - 0x204]
test eax, eax
je 0x50b69c
push eax
call fcn.005a51fb
add esp, 4
mov dword [ebp - 0x204], 0
mov byte [ebp - 0x1fc], bl
mov dword [ebp - 0x200], 0
cmp byte [ebp - 0x1f0], 0
je 0x50b6d3
mov eax, dword [ebp - 0x1f8]
test eax, eax
je 0x50b6d3
push eax
call fcn.005a51fb
add esp, 4
mov dword [ebp - 0x1f8], 0
mov byte [ebp - 0x1f0], 0
mov dword [ebp - 0x1f4], 0
cmp byte [ebp - 0x1e4], 0
je 0x50b70a
mov eax, dword [ebp - 0x1ec]
test eax, eax
je 0x50b70a
push eax
call fcn.005a51fb
add esp, 4
mov dword [ebp - 0x1ec], 0
mov byte [ebp - 0x1e4], 0
mov dword [ebp - 0x1e8], 0
mov byte [ebp - 4], 0x1a
mov byte [ebp - 4], 9
mov edx, dword [ebp - 0x1d0]
add edx, 0xfffffff0
or esi, 0xffffffff
lock xadd dword [edx + 0xc], esi
dec esi
test esi, esi
jg 0x50b084
mov ecx, dword [edx]
mov eax, dword [ecx]
push edx
call dword [eax + 4]
jmp 0x50b084
push 0
lea eax, [ebp - 0x234]
push eax
push dword [ebp - 0x200]
push dword [ebp - 0x204]
push dword [ebp - 0x218]
call dword [sym.imp.KERNEL32.dll_WriteFile]
jmp 0x50b864
mov dword [ebp - 0x230], 0
mov dword [ebp - 4], 0x17
mov dword [ebp - 0x220], 0x10000
push ecx
lea ecx, [ebp - 0x1cc]
call fcn.0047b040
mov ecx, eax
mov dword [ebp - 0x234], ecx
test ecx, ecx
je 0x50bd55
mov eax, dword [ecx]
push 0
mov eax, dword [eax + 8]
call eax
mov dword [ebp - 0x224], eax
mov ecx, edx
mov dword [ebp - 0x228], ecx
mov ebx, eax
mov dword [ebp - 0x208], ecx
mov eax, 1
mov dword [ebp - 0x240], eax
push 0x10000
call fcn.00560596
add esp, 4
mov esi, eax
mov dword [ebp - 0x214], esi
xorps xmm0, xmm0
movlpd qword [ebp - 0x23c], xmm0
mov ecx, dword [ebp - 0x228]
test ecx, ecx
jb 0x50bd48
mov eax, ebx
ja 0x50b8f5
test eax, eax
je 0x50bd48
mov edx, ecx
mov ecx, eax
call fcn.005de0f0
cvtsd2ss xmm0, xmm0
movss dword [ebp - 0x1dc], xmm0
xorps xmm0, xmm0
movlpd qword [ebp - 0x250], xmm0
mov eax, dword [ebp - 0x24c]
mov dword [ebp - 0x1d8], eax
mov eax, dword [ebp - 0x250]
mov dword [ebp - 0x21c], eax
nop dword [eax]
push 0x10000
push 0
push esi
call fcn.00588800
add esp, 0xc
mov edx, dword [ebp - 0x1d8]
mov ecx, dword [ebp - 0x21c]
call fcn.005de0f0
cvtsd2ss xmm0, xmm0
mulss xmm0, dword [0x664e60]
divss xmm0, dword [ebp - 0x1dc]
cvttss2si eax, xmm0
push 0
push eax
push 0x40d
mov eax, dword [ebp - 0x1e0]
push dword [eax + 8]
call dword [sym.imp.USER32.dll_PostMessageW]
mov eax, dword [ebp + 0x1c]
test eax, eax
je 0x50ba5a
cmp dword [eax], 0
je 0x50ba5a
push dword [ebp - 0x218]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
push dword [ebp - 0x1d0]
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
mov byte [ebp - 4], 0xe
cmp byte [ebp - 0x1fc], 0
je 0x50b9e7
mov eax, dword [ebp - 0x204]
test eax, eax
je 0x50b9e7
push eax
call fcn.005a51fb
add esp, 4
mov dword [ebp - 0x204], 0
mov byte [ebp - 0x1fc], 0
mov dword [ebp - 0x200], 0
cmp byte [ebp - 0x1f0], 0
je 0x50ba1e
mov eax, dword [ebp - 0x1f8]
test eax, eax
je 0x50ba1e
push eax
call fcn.005a51fb
add esp, 4
mov dword [ebp - 0x1f8], 0
mov byte [ebp - 0x1f0], 0
mov dword [ebp - 0x1f4], 0
cmp byte [ebp - 0x1e4], 0
je 0x50ba55
mov eax, dword [ebp - 0x1ec]
test eax, eax
je 0x50ba55
push eax
call fcn.005a51fb
add esp, 4
mov dword [ebp - 0x1ec], 0
mov byte [ebp - 0x1e4], 0
mov dword [ebp - 0x1e8], 0
jmp 0x50b70e
mov ecx, dword [ebp - 0x234]
lea edx, [ebp - 0x1d4]
mov eax, dword [ecx]
push edx
push 0x10000
lea edx, [ebp - 0x23c]
push esi
push edx
cmp dword [ebp - 0x244], 0
je 0x50bc63
call dword [eax + 0x10]
push 0x10000
call fcn.00560596
add esp, 4
mov esi, eax
mov edx, dword [ebp - 0x1d4]
test edx, edx
jne 0x50babd
mov dword [ebp - 0x220], 0x10000
push esi
call fcn.00560591
add esp, 4
mov esi, dword [ebp - 0x214]
jmp 0x50bcb1
mov dword [ebp - 0x220], edx
mov dword [ebp - 0x21c], 0
mov dword [ebp - 0x20c], 0
mov eax, dword [ebp - 0x214]
movzx ecx, byte [eax + 1]
shl ecx, 8
movzx eax, byte [eax]
add ecx, eax
je 0x50bc12
lea eax, [ebp - 0x20c]
push eax
lea eax, [ebp - 0x21c]
push eax
push edx
mov ecx, dword [ebp - 0x214]
push ecx
mov ecx, esi
call fcn.0047e1e0
add esp, 0x10
test eax, eax
jne 0x50bc0c
push eax
lea eax, [ebp - 0x210]
push eax
mov eax, 0x10000
sub eax, dword [ebp - 0x20c]
push eax
push esi
push dword [ebp - 0x218]
call dword [sym.imp.KERNEL32.dll_WriteFile]
sub ebx, dword [ebp - 0x210]
mov dword [ebp - 0x1d8], ebx
sbb dword [ebp - 0x208], 0
mov ebx, dword [ebp - 0x1d4]
cmp ebx, 0x10000
je 0x50bc4c
mov eax, dword [ebp - 0x21c]
test eax, eax
je 0x50bc4c
mov edx, ebx
sub edx, eax
dec edx
or edx, 0xfff
inc edx
mov eax, dword [ebp - 0x214]
movzx ecx, byte [eax + edx + 1]
shl ecx, 8
movzx eax, byte [eax + edx]
add ecx, eax
je 0x50bbf3
lea eax, [ebp - 0x20c]
push eax
lea eax, [ebp - 0x21c]
push eax
sub ebx, edx
push ebx
mov eax, dword [ebp - 0x214]
add eax, edx
push eax
mov ecx, esi
call fcn.0047e1e0
add esp, 0x10
mov eax, 0x10000
sub eax, dword [ebp - 0x20c]
xor ecx, ecx
cmp ecx, dword [ebp - 0x208]
ja 0x50bbd4
jb 0x50bbdc
mov ecx, dword [ebp - 0x1d8]
cmp eax, ecx
jae 0x50bbda
jmp 0x50bbdc
mov ecx, dword [ebp - 0x1d8]
mov eax, ecx
push 0
lea ecx, [ebp - 0x210]
push ecx
push eax
push esi
push dword [ebp - 0x218]
call dword [sym.imp.KERNEL32.dll_WriteFile]
push esi
call fcn.00560591
add esp, 4
push dword [ebp - 0x214]
call fcn.00560591
jmp 0x50bd5f
mov edx, dword [ebp - 0x1d4]
push 0
lea eax, [ebp - 0x210]
push eax
push edx
push dword [ebp - 0x214]
push dword [ebp - 0x218]
call dword [sym.imp.KERNEL32.dll_WriteFile]
sub ebx, dword [ebp - 0x210]
sbb dword [ebp - 0x208], 0
push esi
call fcn.00560591
add esp, 4
mov esi, dword [ebp - 0x214]
jmp 0x50bcb1
mov ebx, dword [ebp - 0x1d8]
push esi
call fcn.00560591
add esp, 4
mov esi, dword [ebp - 0x214]
jmp 0x50bcb1
call dword [eax + 0xc]
test eax, eax
je 0x50bd05
mov eax, dword [ebp - 0x1d4]
cmp eax, 0x10000
je 0x50bc8d
xor ecx, ecx
cmp eax, ebx
jne 0x50bd05
cmp ecx, dword [ebp - 0x208]
jne 0x50bd05
push 0
lea ecx, [ebp - 0x24c]
push ecx
push eax
push esi
push dword [ebp - 0x218]
call dword [sym.imp.KERNEL32.dll_WriteFile]
sub ebx, dword [ebp - 0x1d4]
sbb dword [ebp - 0x208], 0
mov eax, dword [ebp - 0x23c]
add eax, dword [ebp - 0x220]
mov dword [ebp - 0x21c], eax
mov dword [ebp - 0x23c], eax
mov ecx, dword [ebp - 0x238]
adc ecx, 0
mov dword [ebp - 0x1d8], ecx
mov dword [ebp - 0x238], ecx
cmp ecx, dword [ebp - 0x228]
jb 0x50b930
ja 0x50bd48
cmp eax, dword [ebp - 0x224]
jb 0x50b930
push dword [ebp - 0x214]
call fcn.00560591
jmp 0x50bd5f
cmp byte [ebp + 0x20], 0
je 0x50bd40
sub esp, 0x18
mov ecx, esp
mov dword [ebp - 0x24c], esp
push 0x6b1568
call fcn.00420d90
mov byte [ebp - 4], 0x1e
push 0
mov byte [ebp - 4], 0x17
mov edx, 0x40
mov eax, dword [ebp - 0x1e0]
mov ecx, dword [eax + 8]
call fcn.004e0d20
add esp, 0x1c
xor eax, eax
mov dword [ebp - 0x240], eax
push dword [ebp - 0x214]
call fcn.00560591
jmp 0x50bd5f
push str.CAttrBase:_null_n
call fcn.004131f0
add esp, 4
push dword [ebp - 0x218]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
cmp dword [ebp - 0x230], 0
je 0x50bdc3
mov byte [ebp - 4], 0x1f
push dword [ebp - 0x1d0]
lea ecx, [ebp - 0x204]
call fcn.0047e8b0
movzx ebx, al
mov dword [ebp - 0x248], ebx
mov dword [ebp - 4], 0x17
jmp 0x50bdc9
mov ebx, dword [ebp - 0x240]
or esi, 0xffffffff
mov byte [ebp - 4], 0xe
cmp byte [ebp - 0x1fc], 0
je 0x50be07
mov eax, dword [ebp - 0x204]
test eax, eax
je 0x50be07
push eax
call fcn.005a51fb
add esp, 4
mov dword [ebp - 0x204], 0
mov byte [ebp - 0x1fc], 0
mov dword [ebp - 0x200], 0
cmp byte [ebp - 0x1f0], 0
je 0x50be3e
mov eax, dword [ebp - 0x1f8]
test eax, eax
je 0x50be3e
push eax
call fcn.005a51fb
add esp, 4
mov dword [ebp - 0x1f8], 0
mov byte [ebp - 0x1f0], 0
mov dword [ebp - 0x1f4], 0
cmp byte [ebp - 0x1e4], 0
je 0x50be75
mov eax, dword [ebp - 0x1ec]
test eax, eax
je 0x50be75
push eax
call fcn.005a51fb
add esp, 4
mov dword [ebp - 0x1ec], 0
mov byte [ebp - 0x1e4], 0
mov dword [ebp - 0x1e8], 0
mov byte [ebp - 4], 9
mov edx, dword [ebp - 0x1d0]
add edx, 0xfffffff0
lock xadd dword [edx + 0xc], esi
dec esi
test esi, esi
jg 0x50be94
mov ecx, dword [edx]
mov eax, dword [ecx]
push edx
call dword [eax + 4]
mov byte [ebp - 4], 6
lea ecx, [ebp - 0x1cc]
call fcn.00479c30
mov dword [ebp - 4], 0xffffffff
mov edx, dword [edi]
push 1
mov ecx, edi
call dword [edx]
mov eax, ebx
jmp 0x50bec5
push str.Null_volume_n
call fcn.004131f0
add esp, 4
xor eax, eax
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 0x14]
xor ecx, ebp
call fcn.0055f9be
mov esp, ebp
pop ebp
ret 0x1c