Function at 0x5d1180
Capabilities:
Delete file

Disassembly:
push rbp
sub rsp, 0xa0
mov rbp, rsp
mov qword [rbp + 0x80], 0
mov qword [rbp + 0x48], rbp
mov qword [rbp + 0xb0], rcx
lea rcx, [rbp + 0xb0]
call fcn.0040e7a0
nop
mov eax, dword [rbp + 0x70]
add eax, 0x328
mov dword [rbp + 0x7c], eax
mov byte [rbp + 0x97], 0
nop
mov eax, dword [rbp + 0x5c]
sub eax, dword [rbp + 0x7c]
cmp dword [rbp + 0x64], eax
jne 0x5d11d9
mov eax, dword [rbp + 0x64]
add eax, 0xc3
mov dword [rbp + 0x68], eax
mov eax, dword [rbp + 0x68]
imul eax, eax, 0x2b
mov dword [rbp + 0x70], eax
mov eax, dword [rbp + 0x70]
add eax, 0x312
mov dword [rbp + 0x7c], eax
lea rcx, [rbp + 0x80]
call fcn.0040e5d0
mov eax, dword [rbp + 0x74]
sub eax, dword [rbp + 0x6c]
mov ecx, dword [rbp + 0x64]
sub ecx, dword [rbp + 0x60]
cmp eax, ecx
jle 0x5d1216
mov eax, dword [rbp + 0x5c]
imul eax, eax, 0x1f8
mov dword [rbp + 0x60], eax
lea rcx, [rbp + 0x80]
mov rdx, qword [0x0060ed40]
call fcn.0040fe40
mov eax, dword [rbp + 0x70]
add eax, dword [rbp + 0x6c]
mov ecx, dword [rbp + 0x64]
add ecx, dword [rbp + 0x60]
cmp eax, ecx
jge 0x5d124b
mov eax, dword [rbp + 0x98]
sub eax, 0x1a5
mov dword [rbp + 0x9c], eax
lea rcx, [rbp + 0x80]
mov rdx, qword [0x0060eca0]
call fcn.0040fe40
mov eax, dword [rbp + 0x70]
mov dword [rbp + 0x78], eax
lea rcx, [rbp + 0x80]
mov rdx, qword [0x0060ece0]
call fcn.0040fe40
mov eax, dword [rbp + 0x60]
add eax, 0x171
mov dword [rbp + 0x64], eax
lea rcx, [rbp + 0x80]
mov rdx, qword [0x0060ed10]
call fcn.0040fe40
mov eax, dword [rbp + 0x7c]
sub eax, dword [rbp + 0x74]
mov dword [rbp + 0x5c], eax
lea rcx, [rbp + 0x80]
mov rdx, qword [0x0060ed10]
call fcn.0040fe40
mov eax, dword [rbp + 0x78]
cmp eax, dword [rbp + 0x70]
jle 0x5d12c9
mov eax, dword [rbp + 0x9c]
add eax, 0x142
mov dword [rbp + 0x64], eax
lea rcx, [rbp + 0x80]
lea rdx, [0x005d1aa8]
call fcn.0040fe40
mov eax, dword [rbp + 0x78]
imul eax, dword [rbp + 0x70]
mov dword [rbp + 0x7c], eax
lea rcx, [rbp + 0x80]
mov rdx, qword [0x0060ece0]
call fcn.0040fe40
mov eax, dword [rbp + 0x74]
add eax, dword [rbp + 0x6c]
mov ecx, dword [rbp + 0x68]
add ecx, dword [rbp + 0x9c]
cmp eax, ecx
jge 0x5d1318
mov eax, dword [rbp + 0x60]
sub eax, 0x173
mov dword [rbp + 0x64], eax
lea rcx, [rbp + 0x80]
mov rdx, qword [0x0060ed10]
call fcn.0040fe40
mov eax, dword [rbp + 0x78]
sub eax, dword [rbp + 0x70]
mov dword [rbp + 0x7c], eax
lea rcx, [rbp + 0x80]
mov rdx, qword [0x0060ed10]
call fcn.0040fe40
mov eax, dword [rbp + 0x74]
add eax, dword [rbp + 0x6c]
mov ecx, dword [rbp + 0x64]
add ecx, dword [rbp + 0x9c]
cmp eax, ecx
jge 0x5d1387
lea rcx, [rbp + 0x9c]
lea rdx, [rbp + 0x98]
lea r8, [rbp + 0x7c]
lea r9, [rbp + 0x78]
lea rax, [rbp + 0x70]
mov qword [rsp + 0x20], rax
lea rax, [rbp + 0x68]
mov qword [rsp + 0x28], rax
call fcn.00568390
mov dword [rbp + 0x6c], 0
mov eax, dword [rbp + 0x74]
add eax, 0x377
mov dword [rbp + 0x7c], eax
mov eax, dword [rbp + 0x70]
sub eax, dword [rbp + 0x6c]
mov ecx, dword [rbp + 0x64]
sub ecx, dword [rbp + 0x60]
cmp eax, ecx
jle 0x5d13bc
mov eax, dword [rbp + 0x98]
sub eax, 0x1c2
mov dword [rbp + 0x9c], eax
mov eax, dword [rbp + 0x60]
sub eax, dword [rbp + 0x7c]
cmp eax, dword [rbp + 0x78]
jge 0x5d13d3
mov eax, dword [rbp + 0x74]
add eax, 0x36d
mov dword [rbp + 0x7c], eax
mov eax, dword [rbp + 0x70]
sub eax, dword [rbp + 0x68]
mov ecx, dword [rbp + 0x64]
sub ecx, dword [rbp + 0x60]
cmp eax, ecx
jle 0x5d13f5
mov eax, dword [rbp + 0x98]
sub eax, 0x1b7
mov dword [rbp + 0x9c], eax
mov eax, dword [rbp + 0x60]
sub eax, dword [rbp + 0x7c]
cmp eax, dword [rbp + 0x78]
jge 0x5d140c
mov eax, dword [rbp + 0x74]
add eax, 0x362
mov dword [rbp + 0x7c], eax
add dword [rbp + 0x6c], 1
cmp dword [rbp + 0x6c], 4
jne 0x5d138e
nop
mov eax, dword [rbp + 0x7c]
add eax, dword [rbp + 0x78]
mov dword [rbp + 0x98], eax
mov dword [rbp + 0x74], 0
cmp dword [rbp + 0x74], 1
jge 0x5d1482
add dword [rbp + 0x74], 1
mov eax, dword [rbp + 0x78]
imul eax, dword [rbp + 0x70]
mov dword [rbp + 0x7c], eax
mov eax, dword [rbp + 0x70]
add eax, 0x3d7
mov dword [rbp + 0x78], eax
mov eax, 0x7c
sub eax, dword [rbp + 0x68]
mov dword [rbp + 0x70], eax
mov eax, dword [rbp + 0x6c]
sub eax, dword [rbp + 0x68]
mov ecx, dword [rbp + 0x9c]
sub ecx, dword [rbp + 0x98]
cmp eax, ecx
jle 0x5d147c
mov eax, dword [rbp + 0x5c]
imul eax, eax, 0x206
mov dword [rbp + 0x60], eax
cmp dword [rbp + 0x74], 1
jl 0x5d1434
nop
mov eax, dword [rbp + 0x74]
add eax, dword [rbp + 0x70]
mov ecx, dword [rbp + 0x68]
add ecx, dword [rbp + 0x9c]
cmp eax, ecx
jge 0x5d14a6
lea rcx, [rbp + 0x68]
lea rdx, [rbp + 0x9c]
call fcn.00563130
mov eax, dword [rbp + 0x74]
add eax, dword [rbp + 0x6c]
mov ecx, dword [rbp + 0x64]
add ecx, dword [rbp + 0x60]
cmp eax, ecx
jge 0x5d14d4
lea rcx, [rbp + 0x60]
lea rdx, [rbp + 0x5c]
lea r8, [rbp + 0x7c]
lea r9, [rbp + 0x74]
lea rax, [rbp + 0x6c]
mov qword [rsp + 0x20], rax
call fcn.0056cf80
mov dword [rbp + 0x6c], 0
mov eax, 0x394
sub eax, dword [rbp + 0x70]
mov dword [rbp + 0x78], eax
mov eax, dword [rbp + 0x9c]
add eax, dword [rbp + 0x98]
cmp dword [rbp + 0x6c], eax
jne 0x5d1507
mov eax, dword [rbp + 0x7c]
imul eax, eax, 0x23f
mov dword [rbp + 0x98], eax
mov eax, dword [rbp + 0x78]
imul eax, dword [rbp + 0x70]
mov dword [rbp + 0x7c], eax
mov eax, dword [rbp + 0x70]
add eax, 0x3ea
mov dword [rbp + 0x78], eax
mov eax, 0x6e
sub eax, dword [rbp + 0x68]
mov dword [rbp + 0x70], eax
add dword [rbp + 0x6c], 1
cmp dword [rbp + 0x6c], 3
jne 0x5d14db
nop
mov eax, dword [rbp + 0x7c]
sub eax, dword [rbp + 0x74]
mov dword [rbp + 0x5c], eax
mov dword [rbp + 0x70], 0
cmp dword [rbp + 0x70], 2
jge 0x5d159c
add dword [rbp + 0x70], 1
mov eax, dword [rbp + 0x74]
add eax, 0x35e
mov dword [rbp + 0x7c], eax
mov eax, dword [rbp + 0x74]
add eax, dword [rbp + 0x70]
mov ecx, dword [rbp + 0x68]
add ecx, dword [rbp + 0x9c]
cmp eax, ecx
jge 0x5d1579
mov eax, dword [rbp + 0x60]
add eax, 0x169
mov dword [rbp + 0x64], eax
mov eax, dword [rbp + 0x9c]
add eax, dword [rbp + 0x5c]
cmp eax, dword [rbp + 0x7c]
jle 0x5d158d
mov eax, dword [rbp + 0x78]
mov dword [rbp + 0x7c], eax
mov eax, dword [rbp + 0x64]
imul eax, eax, 0x38
mov dword [rbp + 0x6c], eax
cmp dword [rbp + 0x70], 2
jl 0x5d154a
nop
mov rcx, qword [rbp + 0xb0]
call fcn.0040f580
mov rcx, rax
call sub.kernel32.dll_DeleteFileW
mov eax, dword [rbp + 0x78]
imul eax, dword [rbp + 0x70]
mov dword [rbp + 0x7c], eax
mov eax, dword [rbp + 0x60]
sub eax, 0x190
mov dword [rbp + 0x9c], eax
lea rcx, [rbp + 0x70]
lea rdx, [rbp + 0x68]
lea r8, [rbp + 0x9c]
lea r9, [rbp + 0x98]
lea rax, [rbp + 0x7c]
mov qword [rsp + 0x20], rax
lea rax, [rbp + 0x74]
mov qword [rsp + 0x28], rax
call fcn.0053ae80
lea rcx, [rbp + 0x78]
call fcn.005d1000
lea rcx, [rbp + 0x7c]
lea rdx, [rbp + 0x70]
lea r8, [rbp + 0x68]
lea r9, [rbp + 0x9c]
lea rax, [rbp + 0x98]
mov qword [rsp + 0x20], rax
call fcn.005c3760
mov eax, dword [rbp + 0x5c]
imul eax, eax, 0x24a
mov dword [rbp + 0x60], eax
mov eax, dword [rbp + 0x78]
cmp eax, dword [rbp + 0x70]
jle 0x5d1665
lea rcx, [rbp + 0x6c]
lea rdx, [rbp + 0x9c]
lea r8, [rbp + 0x98]
lea r9, [rbp + 0x5c]
lea rax, [rbp + 0x7c]
mov qword [rsp + 0x20], rax
lea rax, [rbp + 0x70]
mov qword [rsp + 0x28], rax
call fcn.00561140
mov eax, dword [rbp + 0x74]
add eax, dword [rbp + 0x70]
mov ecx, dword [rbp + 0x68]
add ecx, dword [rbp + 0x9c]
cmp eax, ecx
jge 0x5d169c
lea rcx, [rbp + 0x68]
lea rdx, [rbp + 0x9c]
lea r8, [rbp + 0x98]
lea r9, [rbp + 0x7c]
lea rax, [rbp + 0x78]
mov qword [rsp + 0x20], rax
call fcn.00567c50
lea rcx, [rbp + 0x74]
lea rdx, [rbp + 0x6c]
lea r8, [rbp + 0x9c]
lea r9, [rbp + 0x60]
lea rax, [rbp + 0x5c]
mov qword [rsp + 0x20], rax
lea rax, [rbp + 0x78]
mov qword [rsp + 0x28], rax
call fcn.005cbf50
mov rcx, qword [rbp + 0xb0]
call fcn.0040f580
mov rcx, rax
mov edx, 0xc0000000
mov r8d, 3
xor r9, r9
mov dword [rsp + 0x20], 1
mov dword [rsp + 0x28], 0x80
mov qword [rsp + 0x30], 0
call sub.kernel32.dll_CreateFileW
mov dword [rbp + 0x8c], eax
call sub.kernel32.dll_GetLastError_2
mov dword [rbp + 0x90], eax
mov eax, dword [rbp + 0x78]
imul eax, dword [rbp + 0x70]
mov dword [rbp + 0x7c], eax
mov eax, dword [rbp + 0x8c]
cmp rax, 0xffffffffffffffff
je 0x5d19ba
cmp dword [rbp + 0x90], 0
jne 0x5d19ba
mov eax, dword [rbp + 0x98]
sub eax, 0x197
mov dword [rbp + 0x9c], eax
mov eax, dword [rbp + 0x70]
mov dword [rbp + 0x78], eax
mov eax, dword [rbp + 0x98]
sub eax, 0x1a4
mov dword [rbp + 0x9c], eax
mov eax, dword [rbp + 0x74]
imul eax, dword [rbp + 0x6c]
mov dword [rbp + 0x7c], eax
mov eax, dword [rbp + 0x60]
add eax, 0x171
mov dword [rbp + 0x64], eax
mov eax, dword [rbp + 0x78]
imul eax, dword [rbp + 0x70]
mov dword [rbp + 0x7c], eax
mov dword [rbp + 0x70], 0
mov eax, dword [rbp + 0x74]
add eax, 0x33f
mov dword [rbp + 0x7c], eax
mov eax, dword [rbp + 0x74]
add eax, dword [rbp + 0x6c]
mov ecx, dword [rbp + 0x68]
add ecx, dword [rbp + 0x9c]
cmp eax, ecx
jge 0x5d17bd
mov eax, dword [rbp + 0x98]
sub eax, 0x1cb
mov dword [rbp + 0x9c], eax
mov eax, dword [rbp + 0x60]
sub eax, dword [rbp + 0x7c]
cmp eax, dword [rbp + 0x78]
jge 0x5d17d2
mov eax, dword [rbp + 0x74]
imul eax, dword [rbp + 0x6c]
mov dword [rbp + 0x7c], eax
mov eax, 0x3fa
sub eax, dword [rbp + 0x68]
mov dword [rbp + 0x78], eax
add dword [rbp + 0x70], 1
cmp dword [rbp + 0x70], 3
jne 0x5d178c
nop
mov eax, dword [rbp + 0x74]
imul eax, dword [rbp + 0x70]
mov dword [rbp + 0x7c], eax
mov byte [rbp + 0x97], 1
mov eax, dword [rbp + 0x5c]
add eax, dword [rbp + 0x7c]
mov dword [rbp + 0x98], eax
mov dword [rbp + 0x70], 0
cmp dword [rbp + 0x70], 1
jge 0x5d1857
add dword [rbp + 0x70], 1
mov eax, dword [rbp + 0x74]
add eax, 0x345
mov dword [rbp + 0x7c], eax
mov eax, dword [rbp + 0x70]
sub eax, dword [rbp + 0x68]
mov ecx, dword [rbp + 0x9c]
sub ecx, dword [rbp + 0x60]
cmp eax, ecx
jle 0x5d1842
mov eax, dword [rbp + 0x5c]
imul eax, eax, 0x210
mov dword [rbp + 0x60], eax
mov eax, dword [rbp + 0x78]
mov dword [rbp + 0x7c], eax
mov eax, dword [rbp + 0x64]
imul eax, eax, 0x3b
mov dword [rbp + 0x6c], eax
cmp dword [rbp + 0x70], 1
jl 0x5d1813
nop
mov eax, dword [rbp + 0x74]
imul eax, dword [rbp + 0x6c]
mov dword [rbp + 0x7c], eax
mov eax, dword [rbp + 0x98]
sub eax, 0x1a9
mov dword [rbp + 0x9c], eax
mov eax, dword [rbp + 0x74]
mov dword [rbp + 0x78], eax
mov dword [rbp + 0x6c], 0
mov eax, dword [rbp + 0x74]
add eax, 0x378
mov dword [rbp + 0x7c], eax
mov eax, dword [rbp + 0x70]
sub eax, dword [rbp + 0x6c]
mov ecx, dword [rbp + 0x64]
sub ecx, dword [rbp + 0x60]
cmp eax, ecx
jle 0x5d18af
mov eax, dword [rbp + 0x98]
sub eax, 0x1a3
mov dword [rbp + 0x9c], eax
mov eax, dword [rbp + 0x9c]
sub eax, dword [rbp + 0x7c]
cmp eax, dword [rbp + 0x7c]
jge 0x5d18c7
mov eax, dword [rbp + 0x78]
imul eax, dword [rbp + 0x70]
mov dword [rbp + 0x7c], eax
mov eax, 0x3f2
sub eax, dword [rbp + 0x68]
mov dword [rbp + 0x74], eax
mov eax, dword [rbp + 0x60]
add eax, dword [rbp + 0x98]
cmp dword [rbp + 0x6c], eax
jne 0x5d18ea
mov eax, dword [rbp + 0x7c]
add eax, dword [rbp + 0x78]
mov dword [rbp + 0x5c], eax
add dword [rbp + 0x6c], 1
cmp dword [rbp + 0x6c], 4
jne 0x5d1881
nop
mov dword [rbp + 0x6c], 0
mov eax, dword [rbp + 0x74]
imul eax, dword [rbp + 0x70]
mov dword [rbp + 0x7c], eax
mov eax, dword [rbp + 0x70]
add eax, 0x3eb
mov dword [rbp + 0x74], eax
mov eax, 0x90
sub eax, dword [rbp + 0x68]
mov dword [rbp + 0x70], eax
mov eax, dword [rbp + 0x70]
sub eax, dword [rbp + 0x68]
mov ecx, dword [rbp + 0x9c]
sub ecx, dword [rbp + 0x98]
cmp eax, ecx
jle 0x5d1940
mov eax, dword [rbp + 0x5c]
imul eax, eax, 0x1fa
mov dword [rbp + 0x60], eax
mov eax, dword [rbp + 0x7c]
sub eax, dword [rbp + 0x74]
mov dword [rbp + 0x5c], eax
add dword [rbp + 0x6c], 1
cmp dword [rbp + 0x6c], 3
jne 0x5d18fc
nop
mov dword [rbp + 0x70], 0
mov eax, dword [rbp + 0x78]
mov dword [rbp + 0x7c], eax
mov eax, dword [rbp + 0x6c]
add eax, 0x4e
mov dword [rbp + 0x74], eax
mov eax, dword [rbp + 0x74]
sub eax, dword [rbp + 0x6c]
mov ecx, dword [rbp + 0x64]
sub ecx, dword [rbp + 0x60]
cmp eax, ecx
jle 0x5d198c
mov eax, dword [rbp + 0x98]
sub eax, 0x197
mov dword [rbp + 0x9c], eax
mov eax, dword [rbp + 0x9c]
add eax, dword [rbp + 0x5c]
cmp eax, dword [rbp + 0x7c]
jle 0x5d19a0
mov eax, dword [rbp + 0x74]
mov dword [rbp + 0x7c], eax
add dword [rbp + 0x70], 1
cmp dword [rbp + 0x70], 3
jne 0x5d195b
nop
mov eax, dword [rbp + 0x98]
imul eax, eax, 0x1e9
mov dword [rbp + 0x60], eax
mov eax, dword [rbp + 0x78]
imul eax, dword [rbp + 0x70]
mov dword [rbp + 0x7c], eax
mov ecx, dword [rbp + 0x8c]
call sub.kernel32.dll_CloseHandle_1
mov eax, dword [rbp + 0x78]
imul eax, dword [rbp + 0x70]
mov dword [rbp + 0x7c], eax
jmp 0x5d19f5
mov eax, dword [rbp + 0x98]
imul eax, eax, 0x1de
mov dword [rbp + 0x9c], eax
mov eax, dword [rbp + 0x70]
mov dword [rbp + 0x78], eax
mov eax, dword [rbp + 0x9c]
add eax, dword [rbp + 0x98]
cmp dword [rbp + 0x6c], eax
jne 0x5d1a27
mov eax, dword [rbp + 0x7c]
add eax, dword [rbp + 0x78]
mov dword [rbp + 0x5c], eax
nop
lea rcx, [rbp + 0x80]
call fcn.0040e5d0
lea rcx, [rbp + 0xb0]
call fcn.0040e670
movzx rax, byte [rbp + 0x97]
lea rsp, [rbp + 0xa0]
pop rbp
ret