Function at 0x18012c590
Capabilities:
Read file on windows

Disassembly:
mov dword [rsp + 0x18], r8d
mov qword [rsp + 0x10], rdx
mov qword [rsp + 8], rcx
sub rsp, 0xd8
mov qword [rsp + 0x98], 0
mov qword [rsp + 0x70], 0
mov dword [rsp + 0x8c], 0
mov dword [rsp + 0x90], 0
xor eax, eax
mov word [rsp + 0xa8], ax
mov dword [rsp + 0x88], 0
mov qword [rsp + 0x60], 0
mov dword [rsp + 0xa4], 0x80004021
mov dword [rsp + 0x68], 0x78
mov eax, dword [rsp + 0xf0]
mov dword [rsp + 0x84], eax
mov rax, qword [rsp + 0xe8]
mov qword [rsp + 0xb0], rax
mov dword [rsp + 0xa0], 0
mov dword [rsp + 0x80], 0
mov rax, qword [rsp + 0xe8]
mov qword [rsp + 0x78], rax
lea r8, [0x18005f6c8]
lea rdx, [0x180062950]
mov ecx, 1
call fcn.1801276b0
mov rdx, qword [rsp + 0xe0]
add rdx, 8
lea rcx, [rsp + 0xb8]
call fcn.180131df0
lea rcx, [rsp + 0xb8]
call fcn.180131e30
nop
mov r9, qword [rsp + 0xe8]
lea r8, [0x180062928]
lea rdx, [0x180062950]
mov ecx, 2
call fcn.1801276b0
mov r11d, dword [rsp + 0xf0]
mov dword [rsp + 0x20], r11d
mov r9d, dword [rsp + 0xf0]
lea r8, [0x180060a90]
lea rdx, [0x180062950]
mov ecx, 2
call fcn.1801276b0
cmp dword [rsp + 0xf0], 0
jne 0x18012c723
mov dword [rsp + 0x68], 0
mov ecx, dword [rsp + 0x68]
call fcn.180094b00
mov dword [rsp + 0xa4], eax
mov eax, dword [rsp + 0x68]
mov dword [rsp + 0x28], eax
mov eax, dword [rsp + 0x68]
mov dword [rsp + 0x20], eax
mov r9d, dword [rsp + 0xf0]
lea r8, [0x1800628f8]
lea rdx, [0x180062950]
xor ecx, ecx
call fcn.1801276b0
jmp 0x18012d241
mov edx, dword [rsp + 0xf0]
mov rcx, qword [rsp + 0xe8]
call qword [sym.imp.KERNEL32.dll_IsBadWritePtr]
test eax, eax
je 0x18012c791
mov dword [rsp + 0x68], 0x57
mov ecx, dword [rsp + 0x68]
call fcn.180094b00
mov dword [rsp + 0xa4], eax
mov eax, dword [rsp + 0x68]
mov dword [rsp + 0x30], eax
mov eax, dword [rsp + 0x68]
mov dword [rsp + 0x28], eax
mov eax, dword [rsp + 0xf0]
mov dword [rsp + 0x20], eax
mov r9, qword [rsp + 0xe8]
lea r8, [0x18005f6e0]
lea rdx, [0x180062950]
xor ecx, ecx
call fcn.1801276b0
jmp 0x18012d241
mov rax, qword [rsp + 0xe0]
movzx eax, byte [rax + 0x418]
cmp eax, 1
jne 0x18012c918
mov qword [rsp + 0x20], 0
lea r9, [rsp + 0xa0]
mov r8d, dword [rsp + 0xf0]
mov rdx, qword [rsp + 0xe8]
mov rcx, qword [rsp + 0xe0]
mov rcx, qword [rcx + 0x420]
call qword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
jne 0x18012c85b
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [rsp + 0x68], eax
mov ecx, dword [rsp + 0x68]
call fcn.180094b00
mov dword [rsp + 0xa4], eax
mov eax, dword [rsp + 0x68]
mov dword [rsp + 0x40], eax
mov eax, dword [rsp + 0x68]
mov dword [rsp + 0x38], eax
lea rax, [rsp + 0xa0]
mov qword [rsp + 0x30], rax
mov eax, dword [rsp + 0xf0]
mov dword [rsp + 0x28], eax
mov rax, qword [rsp + 0xe8]
mov qword [rsp + 0x20], rax
mov r9, qword [rsp + 0xe0]
mov r9, qword [r9 + 0x420]
lea r8, [0x18005f910]
lea rdx, [0x180062950]
xor ecx, ecx
call fcn.1801276b0
jmp 0x18012d241
mov eax, dword [rsp + 0xf0]
cmp dword [rsp + 0xa0], eax
je 0x18012c8fb
mov dword [rsp + 0x68], 0x3e4
mov ecx, dword [rsp + 0x68]
call fcn.180094b00
mov dword [rsp + 0xa4], eax
mov eax, dword [rsp + 0x68]
mov dword [rsp + 0x50], eax
mov eax, dword [rsp + 0x68]
mov dword [rsp + 0x48], eax
mov eax, dword [rsp + 0xf0]
mov dword [rsp + 0x40], eax
mov eax, dword [rsp + 0xa0]
mov dword [rsp + 0x38], eax
lea rax, [rsp + 0xa0]
mov qword [rsp + 0x30], rax
mov eax, dword [rsp + 0xf0]
mov dword [rsp + 0x28], eax
mov rax, qword [rsp + 0xe8]
mov qword [rsp + 0x20], rax
mov r9, qword [rsp + 0xe0]
mov r9, qword [r9 + 0x420]
lea r8, [0x18005f8a0]
lea rdx, [0x180062950]
xor ecx, ecx
call fcn.1801276b0
jmp 0x18012d241
mov dword [rsp + 0x68], 0
mov ecx, dword [rsp + 0x68]
call fcn.180094b00
mov dword [rsp + 0xa4], eax
jmp 0x18012d241
mov rax, qword [rsp + 0xe0]
movzx eax, byte [rax + 0xac]
cmp eax, 1
jne 0x18012cd38
mov rax, qword [rsp + 0xe0]
cmp qword [rax + 0xb0], 0
je 0x18012cb00
mov rax, qword [rsp + 0xe0]
mov eax, dword [rax + 0xb8]
mov dword [rsp + 0x88], eax
mov rax, qword [rsp + 0xe0]
mov rax, qword [rax + 0xb0]
mov qword [rsp + 0x60], rax
mov rax, qword [rsp + 0xe0]
mov ecx, dword [rax + 0xa8]
mov eax, dword [rsp + 0x88]
sub eax, ecx
cmp dword [rsp + 0x84], eax
ja 0x18012ca2d
mov r8d, dword [rsp + 0x84]
mov rax, qword [rsp + 0xe0]
mov eax, dword [rax + 0xa8]
mov rdx, qword [rsp + 0x60]
add rdx, rax
mov rcx, qword [rsp + 0xb0]
call fcn.1800eb460
mov rax, qword [rsp + 0xe0]
mov ecx, dword [rax + 0xa8]
mov eax, dword [rsp + 0x88]
sub eax, ecx
cmp dword [rsp + 0x84], eax
jne 0x18012ca05
mov rcx, qword [rsp + 0xe0]
mov rcx, qword [rcx + 0xb0]
call fcn.1800ecacc
mov r11, qword [rsp + 0xe0]
mov qword [r11 + 0xb0], 0
mov rax, qword [rsp + 0xe0]
mov ecx, dword [rax + 0xa8]
add ecx, dword [rsp + 0x84]
mov rax, qword [rsp + 0xe0]
mov dword [rax + 0xa8], ecx
jmp 0x18012cafb
mov rax, qword [rsp + 0xe0]
mov ecx, dword [rax + 0xa8]
mov eax, dword [rsp + 0x88]
sub eax, ecx
mov r8d, eax
mov rax, qword [rsp + 0xe0]
mov eax, dword [rax + 0xa8]
mov rdx, qword [rsp + 0x60]
add rdx, rax
mov rcx, qword [rsp + 0xb0]
call fcn.1800eb460
mov rcx, qword [rsp + 0xe0]
mov rcx, qword [rcx + 0xb0]
call fcn.1800ecacc
mov r11, qword [rsp + 0xe0]
mov qword [r11 + 0xb0], 0
mov rax, qword [rsp + 0xe0]
mov ecx, dword [rax + 0xa8]
mov eax, dword [rsp + 0x88]
sub eax, ecx
mov ecx, eax
mov rax, qword [rsp + 0xb0]
add rax, rcx
mov qword [rsp + 0xb0], rax
mov rax, qword [rsp + 0xe0]
mov eax, dword [rax + 0xa8]
mov ecx, dword [rsp + 0x88]
sub ecx, eax
mov eax, dword [rsp + 0x84]
sub eax, ecx
mov dword [rsp + 0x84], eax
mov rax, qword [rsp + 0xe0]
mov dword [rax + 0xa8], 0
jmp 0x18012c930
jmp 0x18012cd1b
mov ecx, dword [rsp + 0xf0]
call fcn.1800eca10
mov r11, rax
mov rax, qword [rsp + 0xe0]
mov qword [rax + 0xb0], r11
mov rax, qword [rsp + 0xe0]
cmp qword [rax + 0xb0], 0
jne 0x18012cb6a
mov dword [rsp + 0x68], 0xe
mov ecx, dword [rsp + 0x68]
call fcn.180094b00
mov dword [rsp + 0xa4], eax
mov r9d, dword [rsp + 0xf0]
lea r8, [0x1800628c8]
lea rdx, [0x180062950]
xor ecx, ecx
call fcn.1801276b0
jmp 0x18012d241
mov rax, qword [rsp + 0xe0]
add rax, 0x410
mov rcx, qword [rsp + 0xe0]
add rcx, 0xc0
mov qword [rsp + 0x30], rax
mov dword [rsp + 0x28], 1
mov dword [rsp + 0x20], 2
xor r9d, r9d
mov r8d, dword [rsp + 0xf0]
mov rdx, qword [rsp + 0xe0]
mov rdx, qword [rdx + 0xb0]
mov rax, qword [rsp + 0xe0]
call qword [rax + 0x78]
mov dword [rsp + 0x80], eax
cmp dword [rsp + 0x80], 0
jge 0x18012cc5d
mov eax, dword [rsp + 0x80]
mov dword [rsp + 0x68], eax
mov ecx, dword [rsp + 0x68]
call fcn.180094b00
mov dword [rsp + 0xa4], eax
mov rcx, qword [rsp + 0xe0]
add rcx, 0x410
mov r9, qword [rsp + 0xe0]
add r9, 0xc0
mov eax, dword [rsp + 0x68]
mov dword [rsp + 0x40], eax
mov eax, dword [rsp + 0x68]
mov dword [rsp + 0x38], eax
mov qword [rsp + 0x30], rcx
mov eax, dword [rsp + 0xf0]
mov dword [rsp + 0x28], eax
mov rax, qword [rsp + 0xe0]
mov rax, qword [rax + 0xb0]
mov qword [rsp + 0x20], rax
lea r8, [0x180062870]
lea rdx, [0x180062950]
xor ecx, ecx
call fcn.1801276b0
jmp 0x18012d241
cmp dword [rsp + 0x80], 0
jne 0x18012ccef
mov dword [rsp + 0x68], 0x26
mov ecx, dword [rsp + 0x68]
call fcn.180094b00
mov dword [rsp + 0xa4], eax
mov rcx, qword [rsp + 0xe0]
add rcx, 0x410
mov r9, qword [rsp + 0xe0]
add r9, 0xc0
mov eax, dword [rsp + 0x68]
mov dword [rsp + 0x40], eax
mov eax, dword [rsp + 0x68]
mov dword [rsp + 0x38], eax
mov qword [rsp + 0x30], rcx
mov eax, dword [rsp + 0xf0]
mov dword [rsp + 0x28], eax
mov rax, qword [rsp + 0xe0]
mov rax, qword [rax + 0xb0]
mov qword [rsp + 0x20], rax
lea r8, [0x180062810]
lea rdx, [0x180062950]
xor ecx, ecx
call fcn.1801276b0
jmp 0x18012d241
mov rcx, qword [rsp + 0xe0]
mov eax, dword [rsp + 0x80]
mov dword [rcx + 0xb8], eax
mov rax, qword [rsp + 0xe0]
mov dword [rax + 0xa8], 0
jmp 0x18012c930
mov dword [rsp + 0x68], 0
mov ecx, dword [rsp + 0x68]
call fcn.180094b00
mov dword [rsp + 0xa4], eax
jmp 0x18012d241
mov rax, qword [rsp + 0xe0]
cmp qword [rax + 0x88], 0
jne 0x18012cd89
mov dword [rsp + 0x68], 0x548
mov ecx, dword [rsp + 0x68]
call fcn.180094b00
mov dword [rsp + 0xa4], eax
mov eax, dword [rsp + 0x68]
mov dword [rsp + 0x20], eax
mov r9d, dword [rsp + 0x68]
lea r8, [0x1800624a0]
lea rdx, [0x180062950]
xor ecx, ecx
call fcn.1801276b0
jmp 0x18012d241
mov rax, qword [rsp + 0xe0]
cmp qword [rax + 0x98], 0
je 0x18012d062
mov rax, qword [rsp + 0xe0]
mov rax, qword [rax + 0x98]
mov rcx, qword [rsp + 0xe0]
mov rcx, qword [rcx + 0x98]
mov rax, qword [rax]
lea rdx, [rsp + 0x88]
call qword [rax + 0x18]
mov dword [rsp + 0xa4], eax
cmp dword [rsp + 0xa4], 0
jge 0x18012ce19
mov eax, dword [rsp + 0xa4]
mov dword [rsp + 0x68], eax
mov eax, dword [rsp + 0x68]
mov dword [rsp + 0x28], eax
mov eax, dword [rsp + 0x68]
mov dword [rsp + 0x20], eax
lea r9, [rsp + 0x88]
lea r8, [0x180062350]
lea rdx, [0x180062950]
xor ecx, ecx
call fcn.1801276b0
jmp 0x18012d241
mov rax, qword [rsp + 0xe0]
mov rax, qword [rax + 0x98]
mov rcx, qword [rsp + 0xe0]
mov rcx, qword [rcx + 0x98]
mov rax, qword [rax]
lea rdx, [rsp + 0x60]
call qword [rax + 0x30]
mov dword [rsp + 0xa4], eax
cmp dword [rsp + 0xa4], 0
jge 0x18012ce8d
mov eax, dword [rsp + 0xa4]
mov dword [rsp + 0x68], eax
mov eax, dword [rsp + 0x68]
mov dword [rsp + 0x28], eax
mov eax, dword [rsp + 0x68]
mov dword [rsp + 0x20], eax
lea r9, [rsp + 0x60]
lea r8, [0x1800627c0]
lea rdx, [0x180062950]
xor ecx, ecx
call fcn.1801276b0
jmp 0x18012d241
mov rax, qword [rsp + 0xe0]
mov ecx, dword [rax + 0xa8]
mov eax, dword [rsp + 0x88]
sub eax, ecx
cmp dword [rsp + 0x84], eax
ja 0x18012cf6d
mov r8d, dword [rsp + 0x84]
mov rax, qword [rsp + 0xe0]
mov eax, dword [rax + 0xa8]
mov rdx, qword [rsp + 0x60]
add rdx, rax
mov rcx, qword [rsp + 0xb0]
call fcn.1800eb460
mov rax, qword [rsp + 0xe0]
mov ecx, dword [rax + 0xa8]
mov eax, dword [rsp + 0x88]
sub eax, ecx
cmp dword [rsp + 0x84], eax
jne 0x18012cf45
mov rax, qword [rsp + 0xe0]
cmp qword [rax + 0x98], 0
je 0x18012cf45
mov rax, qword [rsp + 0xe0]
mov rax, qword [rax + 0x98]
mov rcx, qword [rsp + 0xe0]
mov rcx, qword [rcx + 0x98]
mov rax, qword [rax]
call qword [rax + 0x10]
mov r11, qword [rsp + 0xe0]
mov qword [r11 + 0x98], 0
mov rax, qword [rsp + 0xe0]
mov ecx, dword [rax + 0xa8]
add ecx, dword [rsp + 0x84]
mov rax, qword [rsp + 0xe0]
mov dword [rax + 0xa8], ecx
jmp 0x18012d05d
mov rax, qword [rsp + 0xe0]
mov ecx, dword [rax + 0xa8]
mov eax, dword [rsp + 0x88]
sub eax, ecx
mov r8d, eax
mov rax, qword [rsp + 0xe0]
mov eax, dword [rax + 0xa8]
mov rdx, qword [rsp + 0x60]
add rdx, rax
mov rcx, qword [rsp + 0xb0]
call fcn.1800eb460
mov rax, qword [rsp + 0xe0]
cmp qword [rax + 0x98], 0
je 0x18012cff3
mov rax, qword [rsp + 0xe0]
mov rax, qword [rax + 0x98]
mov rcx, qword [rsp + 0xe0]
mov rcx, qword [rcx + 0x98]
mov rax, qword [rax]
call qword [rax + 0x10]
mov r11, qword [rsp + 0xe0]
mov qword [r11 + 0x98], 0
mov rax, qword [rsp + 0xe0]
mov ecx, dword [rax + 0xa8]
mov eax, dword [rsp + 0x88]
sub eax, ecx
mov ecx, eax
mov rax, qword [rsp + 0xb0]
add rax, rcx
mov qword [rsp + 0xb0], rax
mov rax, qword [rsp + 0xe0]
mov eax, dword [rax + 0xa8]
mov ecx, dword [rsp + 0x88]
sub ecx, eax
mov eax, dword [rsp + 0x84]
sub eax, ecx
mov dword [rsp + 0x84], eax
mov rax, qword [rsp + 0xe0]
mov dword [rax + 0xa8], 0
jmp 0x18012cd89
jmp 0x18012d229
mov r8, qword [rsp + 0xe0]
add r8, 0x98
mov r10, qword [rsp + 0xe0]
mov r10, qword [r10 + 0x88]
mov rcx, qword [rsp + 0xe0]
mov rcx, qword [rcx + 0x88]
mov r10, qword [r10]
lea rax, [rsp + 0xa8]
mov qword [rsp + 0x38], rax
lea rax, [rsp + 0x90]
mov qword [rsp + 0x30], rax
lea rax, [rsp + 0x8c]
mov qword [rsp + 0x28], rax
lea rax, [rsp + 0x70]
mov qword [rsp + 0x20], rax
lea r9, [rsp + 0x98]
xor edx, edx
call qword [r10 + 0x38]
mov dword [rsp + 0xa4], eax
cmp dword [rsp + 0xa4], 0
jge 0x18012d1bc
cmp dword [rsp + 0xa4], 0xc00d0bcf
jne 0x18012d13a
mov dword [rsp + 0x68], 0
mov ecx, dword [rsp + 0x68]
call fcn.180094b00
mov dword [rsp + 0xa4], eax
mov eax, dword [rsp + 0x68]
mov dword [rsp + 0x20], eax
mov r9d, dword [rsp + 0x68]
lea r8, [0x180062790]
lea rdx, [0x180062950]
mov ecx, 3
call fcn.1801276b0
jmp 0x18012d241
mov eax, dword [rsp + 0xa4]
mov dword [rsp + 0x68], eax
mov r9, qword [rsp + 0xe0]
add r9, 0x98
mov eax, dword [rsp + 0x68]
mov dword [rsp + 0x50], eax
mov eax, dword [rsp + 0x68]
mov dword [rsp + 0x48], eax
lea rax, [rsp + 0xa8]
mov qword [rsp + 0x40], rax
lea rax, [rsp + 0x90]
mov qword [rsp + 0x38], rax
lea rax, [rsp + 0x8c]
mov qword [rsp + 0x30], rax
lea rax, [rsp + 0x70]
mov qword [rsp + 0x28], rax
lea rax, [rsp + 0x98]
mov qword [rsp + 0x20], rax
lea r8, [0x1800623a0]
lea rdx, [0x180062950]
xor ecx, ecx
call fcn.1801276b0
jmp 0x18012d241
movzx eax, word [rsp + 0xa8]
cmp eax, 1
je 0x18012d212
mov rax, qword [rsp + 0xe0]
cmp qword [rax + 0x98], 0
je 0x18012d212
mov rax, qword [rsp + 0xe0]
mov rax, qword [rax + 0x98]
mov rcx, qword [rsp + 0xe0]
mov rcx, qword [rcx + 0x98]
mov rax, qword [rax]
call qword [rax + 0x10]
mov r11, qword [rsp + 0xe0]
mov qword [r11 + 0x98], 0
mov rax, qword [rsp + 0xe0]
mov dword [rax + 0xa8], 0
jmp 0x18012cd89
mov dword [rsp + 0x68], 0
mov ecx, dword [rsp + 0x68]
call fcn.180094b00
mov dword [rsp + 0xa4], eax
jmp 0x18012d288
cmp dword [rsp + 0x68], 0
jne 0x18012d2a9
lea r8, [0x18005f618]
lea rdx, [0x180062950]
mov ecx, 1
call fcn.1801276b0
jmp 0x18012d2cb
mov eax, dword [rsp + 0x68]
mov dword [rsp + 0x20], eax
mov r9d, dword [rsp + 0x68]
lea r8, [0x180061970]
lea rdx, [0x180062950]
xor ecx, ecx
call fcn.1801276b0
mov eax, dword [rsp + 0xa4]
add rsp, 0xd8
ret