Function at 0x180124530
Capabilities:
Delete file
Get file size
Read file on windows

Disassembly:
mov qword [rsp + 0x20], r9
mov dword [rsp + 0x18], r8d
mov qword [rsp + 0x10], rdx
mov qword [rsp + 8], rcx
sub rsp, 0xb8
mov dword [rsp + 0x6c], 0x78
mov qword [rsp + 0x80], 0
mov dword [rsp + 0x68], 0
mov dword [rsp + 0x74], 0
mov dword [rsp + 0x88], 0
mov dword [rsp + 0x64], 0
mov dword [rsp + 0x8c], 0
mov dword [rsp + 0x60], 0
mov dword [rsp + 0x70], 0
mov qword [rsp + 0x90], 0xffffffffffffffff
mov qword [rsp + 0x78], 0
lea r8, [0x18005f6c8]
lea rdx, [0x1800605d0]
mov ecx, 1
call fcn.1801276b0
nop
mov rax, qword [rsp + 0xc0]
mov qword [rsp + 0x20], rax
mov r9, qword [rsp + 0xc0]
lea r8, [0x180060590]
lea rdx, [0x1800605d0]
mov ecx, 2
call fcn.1801276b0
mov r11, qword [rsp + 0xc8]
mov qword [rsp + 0x20], r11
mov r9, qword [rsp + 0xc8]
lea r8, [0x180060550]
lea rdx, [0x1800605d0]
mov ecx, 2
call fcn.1801276b0
mov r11d, dword [rsp + 0xd0]
mov dword [rsp + 0x20], r11d
mov r9d, dword [rsp + 0xd0]
lea r8, [0x180060208]
lea rdx, [0x1800605d0]
mov ecx, 2
call fcn.1801276b0
mov r9, qword [rsp + 0xd8]
lea r8, [0x180060170]
lea rdx, [0x1800605d0]
mov ecx, 2
call fcn.1801276b0
mov r9, qword [rsp + 0xe0]
lea r8, [0x180060150]
lea rdx, [0x1800605d0]
mov ecx, 2
call fcn.1801276b0
mov r11d, dword [rsp + 0xe8]
mov dword [rsp + 0x20], r11d
mov r9d, dword [rsp + 0xe8]
lea r8, [0x180060520]
lea rdx, [0x1800605d0]
mov ecx, 2
call fcn.1801276b0
mov rcx, qword [rsp + 0xd8]
call qword [sym.imp.KERNEL32.dll_IsBadCodePtr]
test eax, eax
je 0x18012470b
mov dword [rsp + 0x6c], 0x57
mov eax, dword [rsp + 0x6c]
mov dword [rsp + 0x28], eax
mov eax, dword [rsp + 0x6c]
mov dword [rsp + 0x20], eax
mov r9, qword [rsp + 0xd8]
lea r8, [0x180060118]
lea rdx, [0x1800605d0]
xor ecx, ecx
call fcn.1801276b0
jmp 0x180124cd5
mov rcx, qword [rsp + 0xc0]
call fcn.180122cc0
mov dword [rsp + 0x6c], eax
cmp dword [rsp + 0x6c], 0
je 0x180124755
mov eax, dword [rsp + 0x6c]
mov dword [rsp + 0x28], eax
mov eax, dword [rsp + 0x6c]
mov dword [rsp + 0x20], eax
mov r9, qword [rsp + 0xc0]
lea r8, [0x1800604d0]
lea rdx, [0x1800605d0]
xor ecx, ecx
call fcn.1801276b0
jmp 0x180124cd5
mov qword [rsp + 0x30], 0
mov dword [rsp + 0x28], 0x80
mov dword [rsp + 0x20], 3
xor r9d, r9d
mov r8d, 1
mov edx, 0x80000000
mov rcx, qword [rsp + 0xc0]
call qword [sym.imp.KERNEL32.dll_CreateFileA]
mov qword [rsp + 0x90], rax
cmp qword [rsp + 0x90], 0xffffffffffffffff
jne 0x1801247d9
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [rsp + 0x6c], eax
mov eax, dword [rsp + 0x6c]
mov dword [rsp + 0x28], eax
mov eax, dword [rsp + 0x6c]
mov dword [rsp + 0x20], eax
mov r9, qword [rsp + 0xc0]
lea r8, [0x18005f9b0]
lea rdx, [0x1800605d0]
xor ecx, ecx
call fcn.1801276b0
jmp 0x180124cd5
xor edx, edx
mov rcx, qword [rsp + 0x90]
call qword [sym.imp.KERNEL32.dll_GetFileSize]
mov dword [rsp + 0x68], eax
cmp dword [rsp + 0x68], 0xffffffff
jne 0x180124830
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [rsp + 0x6c], eax
mov eax, dword [rsp + 0x6c]
mov dword [rsp + 0x28], eax
mov eax, dword [rsp + 0x6c]
mov dword [rsp + 0x20], eax
mov r9, qword [rsp + 0x90]
lea r8, [0x180060490]
lea rdx, [0x1800605d0]
xor ecx, ecx
call fcn.1801276b0
jmp 0x180124cd5
mov eax, dword [rsp + 0x68]
sub rax, 0x2c
mov dword [rsp + 0x68], eax
xor r9d, r9d
xor r8d, r8d
mov edx, 0x2c
mov rcx, qword [rsp + 0x90]
call qword [sym.imp.KERNEL32.dll_SetFilePointer]
mov dword [rsp + 0x74], eax
cmp dword [rsp + 0x74], 0xffffffff
jne 0x1801248a5
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [rsp + 0x6c], eax
mov eax, dword [rsp + 0x6c]
mov dword [rsp + 0x30], eax
mov eax, dword [rsp + 0x6c]
mov dword [rsp + 0x28], eax
mov qword [rsp + 0x20], 0x2c
mov r9, qword [rsp + 0x90]
lea r8, [0x180060440]
lea rdx, [0x1800605d0]
xor ecx, ecx
call fcn.1801276b0
jmp 0x180124cd5
mov eax, dword [rsp + 0x74]
cmp rax, 0x2c
je 0x180124903
mov dword [rsp + 0x6c], 0x19
mov eax, dword [rsp + 0x6c]
mov dword [rsp + 0x40], eax
mov eax, dword [rsp + 0x6c]
mov dword [rsp + 0x38], eax
mov qword [rsp + 0x30], 0x2c
mov eax, dword [rsp + 0x74]
mov dword [rsp + 0x28], eax
mov qword [rsp + 0x20], 0x2c
mov r9, qword [rsp + 0x90]
lea r8, [0x1800603d0]
lea rdx, [0x1800605d0]
xor ecx, ecx
call fcn.1801276b0
jmp 0x180124cd5
mov ecx, dword [rsp + 0xd0]
call fcn.1800eb9ac
mov qword [rsp + 0x98], rax
mov rax, qword [rsp + 0x98]
mov qword [rsp + 0x78], rax
cmp qword [rsp + 0x78], 0
jne 0x180124966
mov dword [rsp + 0x6c], 0xe
mov eax, dword [rsp + 0x6c]
mov dword [rsp + 0x28], eax
mov eax, dword [rsp + 0x6c]
mov dword [rsp + 0x20], eax
mov r9d, dword [rsp + 0xd0]
lea r8, [0x180060018]
lea rdx, [0x1800605d0]
xor ecx, ecx
call fcn.1801276b0
jmp 0x180124cd5
call fcn.180127230
mov dword [rsp + 0x6c], eax
cmp dword [rsp + 0x6c], 0
je 0x18012499d
mov eax, dword [rsp + 0x6c]
mov dword [rsp + 0x20], eax
mov r9d, dword [rsp + 0x6c]
lea r8, [0x18005f7b8]
lea rdx, [0x1800605d0]
xor ecx, ecx
call fcn.1801276b0
jmp 0x180124cd5
mov r8d, dword [rsp + 0xe8]
mov rdx, qword [rsp + 0xc8]
lea rcx, [rsp + 0x80]
call fcn.180126890
mov dword [rsp + 0x6c], eax
cmp dword [rsp + 0x6c], 0
je 0x180124a0f
mov eax, dword [rsp + 0x6c]
mov dword [rsp + 0x38], eax
mov eax, dword [rsp + 0x6c]
mov dword [rsp + 0x30], eax
mov eax, dword [rsp + 0xe8]
mov dword [rsp + 0x28], eax
mov rax, qword [rsp + 0xc8]
mov qword [rsp + 0x20], rax
lea r9, [rsp + 0x80]
lea r8, [0x180060370]
lea rdx, [0x1800605d0]
xor ecx, ecx
call fcn.1801276b0
jmp 0x180124cd5
mov eax, dword [rsp + 0x68]
mov dword [rsp + 0x88], eax
mov eax, dword [rsp + 0xd0]
mov dword [rsp + 0x64], eax
mov dword [rsp + 0x60], 0
jmp 0x180124a40
mov ecx, dword [rsp + 0xd0]
mov eax, dword [rsp + 0x60]
add eax, ecx
mov dword [rsp + 0x60], eax
mov eax, dword [rsp + 0x68]
cmp dword [rsp + 0x60], eax
jae 0x180124ccd
mov ecx, dword [rsp + 0x88]
mov eax, dword [rsp + 0x68]
sub eax, ecx
mov dword [rsp + 0x28], eax
mov eax, dword [rsp + 0x68]
mov dword [rsp + 0x20], eax
mov r9d, dword [rsp + 0x88]
lea r8, [0x18005fe40]
lea rdx, [0x1800605d0]
mov ecx, 3
call fcn.1801276b0
cmp dword [rsp + 0x68], 0
je 0x180124ab0
mov ecx, dword [rsp + 0x88]
mov eax, dword [rsp + 0x68]
sub eax, ecx
mov eax, eax
imul rax, rax, 0x64
mov ecx, dword [rsp + 0x68]
cqo
idiv rcx
mov dword [rsp + 0x70], eax
jmp 0x180124ab8
mov dword [rsp + 0x70], 0
mov r8, qword [rsp + 0xe0]
mov edx, dword [rsp + 0x70]
mov ecx, 1
call qword [rsp + 0xd8]
mov dword [rsp + 0x6c], eax
cmp dword [rsp + 0x6c], 0
je 0x180124b32
mov dword [rsp + 0x6c], 0x4c7
mov eax, dword [rsp + 0x6c]
mov dword [rsp + 0x40], eax
mov eax, dword [rsp + 0x6c]
mov dword [rsp + 0x38], eax
mov rax, qword [rsp + 0xe0]
mov qword [rsp + 0x30], rax
mov eax, dword [rsp + 0x70]
mov dword [rsp + 0x28], eax
mov dword [rsp + 0x20], 1
mov r9, qword [rsp + 0xd8]
lea r8, [0x18005fe00]
lea rdx, [0x1800605d0]
xor ecx, ecx
call fcn.1801276b0
jmp 0x180124cd5
mov eax, dword [rsp + 0xd0]
cmp dword [rsp + 0x88], eax
jae 0x180124b4d
mov eax, dword [rsp + 0x88]
mov dword [rsp + 0x64], eax
mov qword [rsp + 0x20], 0
lea r9, [rsp + 0x8c]
mov r8d, dword [rsp + 0x64]
mov rdx, qword [rsp + 0x78]
mov rcx, qword [rsp + 0x90]
call qword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
jne 0x180124bd5
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [rsp + 0x6c], eax
mov eax, dword [rsp + 0x6c]
mov dword [rsp + 0x40], eax
mov eax, dword [rsp + 0x6c]
mov dword [rsp + 0x38], eax
lea rax, [rsp + 0x8c]
mov qword [rsp + 0x30], rax
mov eax, dword [rsp + 0x64]
mov dword [rsp + 0x28], eax
mov rax, qword [rsp + 0x78]
mov qword [rsp + 0x20], rax
mov r9, qword [rsp + 0x90]
lea r8, [0x18005f910]
lea rdx, [0x1800605d0]
xor ecx, ecx
call fcn.1801276b0
jmp 0x180124cd5
mov eax, dword [rsp + 0x64]
cmp dword [rsp + 0x8c], eax
je 0x180124c4e
mov dword [rsp + 0x6c], 0x3e4
mov eax, dword [rsp + 0x6c]
mov dword [rsp + 0x50], eax
mov eax, dword [rsp + 0x6c]
mov dword [rsp + 0x48], eax
mov eax, dword [rsp + 0x64]
mov dword [rsp + 0x40], eax
mov eax, dword [rsp + 0x8c]
mov dword [rsp + 0x38], eax
lea rax, [rsp + 0x8c]
mov qword [rsp + 0x30], rax
mov eax, dword [rsp + 0x64]
mov dword [rsp + 0x28], eax
mov rax, qword [rsp + 0x78]
mov qword [rsp + 0x20], rax
mov r9, qword [rsp + 0x90]
lea r8, [0x18005f8a0]
lea rdx, [0x1800605d0]
xor ecx, ecx
call fcn.1801276b0
jmp 0x180124cd5
mov r8d, dword [rsp + 0x64]
mov rdx, qword [rsp + 0x78]
mov rcx, qword [rsp + 0x80]
call fcn.180126f40
mov dword [rsp + 0x6c], eax
cmp dword [rsp + 0x6c], 0
je 0x180124cb1
mov eax, dword [rsp + 0x6c]
mov dword [rsp + 0x38], eax
mov eax, dword [rsp + 0x6c]
mov dword [rsp + 0x30], eax
mov eax, dword [rsp + 0x64]
mov dword [rsp + 0x28], eax
mov rax, qword [rsp + 0x78]
mov qword [rsp + 0x20], rax
mov r9, qword [rsp + 0x80]
lea r8, [0x1800602f0]
lea rdx, [0x1800605d0]
xor ecx, ecx
call fcn.1801276b0
jmp 0x180124cd5
mov ecx, dword [rsp + 0xd0]
mov eax, dword [rsp + 0x88]
sub eax, ecx
mov dword [rsp + 0x88], eax
jmp 0x180124a2f
mov dword [rsp + 0x6c], 0
cmp qword [rsp + 0x80], 0
je 0x180124ced
lea rcx, [rsp + 0x80]
call fcn.180126c20
cmp qword [rsp + 0x90], 0xffffffffffffffff
je 0x180124d06
mov rcx, qword [rsp + 0x90]
call qword [sym.imp.KERNEL32.dll_CloseHandle]
cmp qword [rsp + 0x78], 0
je 0x180124d28
mov rax, qword [rsp + 0x78]
mov qword [rsp + 0xa0], rax
mov rcx, qword [rsp + 0xa0]
call fcn.1800ec288
cmp dword [rsp + 0x6c], 0
je 0x180124d3d
mov rcx, qword [rsp + 0xc8]
call qword [sym.imp.KERNEL32.dll_DeleteFileA]
jmp 0x180124d74
lea r8, [0x18005f618]
lea rdx, [0x1800605d0]
mov ecx, 1
call fcn.1801276b0
mov eax, dword [rsp + 0x6c]
add rsp, 0xb8
ret