Function at 0x1800de190
Capabilities:
Read file on windows

Disassembly:
mov qword [rsp + 0x20], r9
mov byte [rsp + 0x18], r8b
mov qword [rsp + 0x10], rdx
mov qword [rsp + 8], rcx
push rsi
push rdi
sub rsp, 0x838
mov qword [rsp + 0x7d0], 0xfffffffffffffffe
mov rax, qword [0x180161180]
xor rax, rsp
mov qword [rsp + 0x820], rax
mov qword [rsp + 0x2b0], 0
mov qword [rsp + 0x510], 0
mov dword [rsp + 0x2dc], 0
mov qword [rsp + 0x2b8], 0
mov qword [rsp + 0x4f8], 0
mov byte [rsp + 0x500], 0
mov qword [rsp + 0x4f0], 0
mov byte [rsp + 0x501], 0
mov dword [rsp + 0x2d8], 0
mov byte [rsp + 0x190], 0
mov dword [rsp + 0x518], 0
mov ecx, dword [rsp + 0x878]
call fcn.1800eb9ac
mov qword [rsp + 0x730], rax
mov rax, qword [rsp + 0x730]
mov qword [rsp + 0x2b0], rax
cmp qword [rsp + 0x2b0], 0
jne 0x1800de34b
lea rcx, [0x180034b50]
call fcn.1800892c0
mov ecx, 0x1020
call fcn.1800eb9ac
mov qword [rsp + 0x740], rax
cmp qword [rsp + 0x740], 0
je 0x1800de2c2
lea r9, [0x180034af0]
xor r8d, r8d
mov edx, 4
mov rcx, qword [rsp + 0x740]
call fcn.18008d120
mov qword [rsp + 0x7d8], rax
jmp 0x1800de2ce
mov qword [rsp + 0x7d8], 0
mov rax, qword [rsp + 0x7d8]
mov qword [rsp + 0x738], rax
mov rax, qword [rsp + 0x738]
mov qword [rsp + 0x510], rax
cmp qword [rsp + 0x510], 0
je 0x1800de327
mov rcx, qword [rsp + 0x510]
call fcn.18008d1e0
mov rdi, rax
mov rcx, qword [rsp + 0x510]
call fcn.1800e3fe0
mov r8, rdi
mov edx, eax
lea rcx, [0x180034a70]
call fcn.1800892c0
mov rax, qword [rsp + 0x510]
mov qword [rsp + 0x748], rax
lea rdx, [0x18015a158]
lea rcx, [rsp + 0x748]
call fcn.1800ec370
lea rdx, [rsp + 0x2b0]
lea rcx, [rsp + 0x2c0]
call fcn.18008d020
nop
mov edx, dword [rsp + 0x870]
imul edx, edx, 0x800
xor r9d, r9d
xor r8d, r8d
mov rcx, qword [rsp + 0x888]
call qword [sym.imp.KERNEL32.dll_SetFilePointer]
cmp eax, 0xffffffff
jne 0x1800de4ba
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [rsp + 0x2d8], eax
mov r8d, dword [rsp + 0x870]
imul r8d, r8d, 0x800
mov eax, dword [rsp + 0x2d8]
mov dword [rsp + 0x30], eax
mov eax, dword [rsp + 0x2d8]
mov dword [rsp + 0x28], eax
mov qword [rsp + 0x20], 0
xor r9d, r9d
mov edx, dword [rsp + 0x888]
lea rcx, [0x1800349f0]
call fcn.1800892c0
mov ecx, 0x1020
call fcn.1800eb9ac
mov qword [rsp + 0x758], rax
cmp qword [rsp + 0x758], 0
je 0x1800de46a
mov ecx, dword [rsp + 0x870]
imul ecx, ecx, 0x800
mov r8d, dword [rsp + 0x2d8]
mov eax, dword [rsp + 0x2d8]
mov dword [rsp + 0x48], eax
mov eax, dword [rsp + 0x2d8]
mov dword [rsp + 0x40], eax
mov qword [rsp + 0x38], 0
mov qword [rsp + 0x30], 0
mov dword [rsp + 0x28], ecx
mov rax, qword [rsp + 0x888]
mov qword [rsp + 0x20], rax
lea r9, [0x180034970]
mov edx, 5
mov rcx, qword [rsp + 0x758]
call fcn.18008d120
mov qword [rsp + 0x7e0], rax
jmp 0x1800de476
mov qword [rsp + 0x7e0], 0
mov rax, qword [rsp + 0x7e0]
mov qword [rsp + 0x750], rax
mov rax, qword [rsp + 0x750]
mov qword [rsp + 0x510], rax
mov rax, qword [rsp + 0x510]
mov qword [rsp + 0x760], rax
lea rdx, [0x18015a158]
lea rcx, [rsp + 0x760]
call fcn.1800ec370
mov ecx, dword [rsp + 0x878]
mov rdi, qword [rsp + 0x2b0]
xor eax, eax
rep stosb byte [rdi], al
mov qword [rsp + 0x20], 0
lea r9, [rsp + 0x518]
mov r8d, dword [rsp + 0x878]
mov rdx, qword [rsp + 0x2b0]
mov rcx, qword [rsp + 0x888]
call qword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
jne 0x1800de649
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [rsp + 0x2d8], eax
mov eax, dword [rsp + 0x2d8]
mov dword [rsp + 0x38], eax
mov eax, dword [rsp + 0x2d8]
mov dword [rsp + 0x30], eax
mov qword [rsp + 0x28], 0
lea rax, [rsp + 0x518]
mov qword [rsp + 0x20], rax
mov r9d, dword [rsp + 0x878]
mov r8, qword [rsp + 0x2b0]
mov edx, dword [rsp + 0x888]
lea rcx, [0x1800348f0]
call fcn.1800892c0
mov ecx, 0x1020
call fcn.1800eb9ac
mov qword [rsp + 0x770], rax
cmp qword [rsp + 0x770], 0
je 0x1800de5f9
mov r8d, dword [rsp + 0x2d8]
mov eax, dword [rsp + 0x2d8]
mov dword [rsp + 0x50], eax
mov eax, dword [rsp + 0x2d8]
mov dword [rsp + 0x48], eax
mov qword [rsp + 0x40], 0
lea rax, [rsp + 0x518]
mov qword [rsp + 0x38], rax
mov eax, dword [rsp + 0x878]
mov dword [rsp + 0x30], eax
mov rax, qword [rsp + 0x2b0]
mov qword [rsp + 0x28], rax
mov rax, qword [rsp + 0x888]
mov qword [rsp + 0x20], rax
lea r9, [0x180034870]
mov edx, 5
mov rcx, qword [rsp + 0x770]
call fcn.18008d120
mov qword [rsp + 0x7e8], rax
jmp 0x1800de605
mov qword [rsp + 0x7e8], 0
mov rax, qword [rsp + 0x7e8]
mov qword [rsp + 0x768], rax
mov rax, qword [rsp + 0x768]
mov qword [rsp + 0x510], rax
mov rax, qword [rsp + 0x510]
mov qword [rsp + 0x778], rax
lea rdx, [0x18015a158]
lea rcx, [rsp + 0x778]
call fcn.1800ec370
mov eax, dword [rsp + 0x878]
cmp dword [rsp + 0x518], eax
je 0x1800de7d0
mov dword [rsp + 0x2d8], 0x3e4
mov eax, dword [rsp + 0x2d8]
mov dword [rsp + 0x48], eax
mov eax, dword [rsp + 0x2d8]
mov dword [rsp + 0x40], eax
mov eax, dword [rsp + 0x878]
mov dword [rsp + 0x38], eax
mov eax, dword [rsp + 0x518]
mov dword [rsp + 0x30], eax
mov qword [rsp + 0x28], 0
lea rax, [rsp + 0x518]
mov qword [rsp + 0x20], rax
mov r9d, dword [rsp + 0x878]
mov r8, qword [rsp + 0x2b0]
mov edx, dword [rsp + 0x888]
lea rcx, [0x1800347d0]
call fcn.1800892c0
mov ecx, 0x1020
call fcn.1800eb9ac
mov qword [rsp + 0x788], rax
cmp qword [rsp + 0x788], 0
je 0x1800de780
mov r8d, dword [rsp + 0x2d8]
mov eax, dword [rsp + 0x2d8]
mov dword [rsp + 0x60], eax
mov eax, dword [rsp + 0x2d8]
mov dword [rsp + 0x58], eax
mov eax, dword [rsp + 0x878]
mov dword [rsp + 0x50], eax
mov eax, dword [rsp + 0x518]
mov dword [rsp + 0x48], eax
mov qword [rsp + 0x40], 0
lea rax, [rsp + 0x518]
mov qword [rsp + 0x38], rax
mov eax, dword [rsp + 0x878]
mov dword [rsp + 0x30], eax
mov rax, qword [rsp + 0x2b0]
mov qword [rsp + 0x28], rax
mov rax, qword [rsp + 0x888]
mov qword [rsp + 0x20], rax
lea r9, [0x180034740]
mov edx, 5
mov rcx, qword [rsp + 0x788]
call fcn.18008d120
mov qword [rsp + 0x7f0], rax
jmp 0x1800de78c
mov qword [rsp + 0x7f0], 0
mov rax, qword [rsp + 0x7f0]
mov qword [rsp + 0x780], rax
mov rax, qword [rsp + 0x780]
mov qword [rsp + 0x510], rax
mov rax, qword [rsp + 0x510]
mov qword [rsp + 0x790], rax
lea rdx, [0x18015a158]
lea rcx, [rsp + 0x790]
call fcn.1800ec370
mov ecx, dword [rsp + 0x2dc]
mov rax, qword [rsp + 0x2b0]
movzx ecx, byte [rax + rcx]
mov eax, dword [rsp + 0x2dc]
add eax, ecx
mov dword [rsp + 0x2dc], eax
mov ecx, dword [rsp + 0x2dc]
mov rax, qword [rsp + 0x2b0]
movzx ecx, byte [rax + rcx]
mov eax, dword [rsp + 0x2dc]
add eax, ecx
mov dword [rsp + 0x2dc], eax
mov ecx, dword [rsp + 0x2dc]
mov rax, qword [rsp + 0x2b0]
movzx eax, byte [rax + rcx]
test eax, eax
je 0x1800dee1a
mov eax, dword [rsp + 0x878]
cmp dword [rsp + 0x2dc], eax
jae 0x1800dee1a
mov ecx, dword [rsp + 0x2dc]
mov rax, qword [rsp + 0x2b0]
add rax, rcx
mov qword [rsp + 0x2b8], rax
lea rdi, [rsp + 0x520]
xor eax, eax
mov ecx, 0x208
rep stosb byte [rdi], al
lea rdi, [rsp + 0x1a0]
xor eax, eax
mov ecx, 0x104
rep stosb byte [rdi], al
movzx eax, byte [rsp + 0x860]
test eax, eax
jne 0x1800de8b8
mov rax, qword [rsp + 0x2b8]
movzx r8d, byte [rax + 0x20]
mov rdx, qword [rsp + 0x2b8]
add rdx, 0x21
lea rcx, [rsp + 0x1a0]
call fcn.1800eb2b0
jmp 0x1800deaed
mov rax, qword [rsp + 0x2b8]
movzx eax, byte [rax + 0x20]
mov byte [rsp + 0x500], al
mov rax, qword [rsp + 0x2b8]
add rax, 0x21
mov qword [rsp + 0x4f8], rax
movzx eax, byte [rsp + 0x500]
sar eax, 1
movsxd r8, eax
mov rdx, qword [rsp + 0x4f8]
lea rcx, [rsp + 0x520]
call fcn.1800ec180
lea rdx, [rsp + 0x520]
mov qword [rsp + 0x7f8], rdx
lea rax, [rsp + 0x2e0]
mov qword [rsp + 0x800], rax
mov rax, qword [rsp + 0x800]
mov qword [rsp + 0x808], rax
mov rax, qword [rsp + 0x7f8]
movzx eax, word [rax]
mov word [rsp + 0x810], ax
mov rcx, qword [rsp + 0x800]
movzx eax, word [rsp + 0x810]
mov word [rcx], ax
mov rax, qword [rsp + 0x7f8]
add rax, 2
mov qword [rsp + 0x7f8], rax
mov rax, qword [rsp + 0x800]
add rax, 2
mov qword [rsp + 0x800], rax
cmp word [rsp + 0x810], 0
jne 0x1800de931
movzx edx, byte [rsp + 0x500]
sar edx, 1
lea rcx, [rsp + 0x520]
call fcn.18008a340
movzx r9d, byte [rsp + 0x500]
sar r9d, 1
mov qword [rsp + 0x38], 0
lea rax, [0x1800341d0]
mov qword [rsp + 0x30], rax
mov dword [rsp + 0x28], 0x104
lea rax, [rsp + 0x1a0]
mov qword [rsp + 0x20], rax
lea r8, [rsp + 0x520]
xor edx, edx
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_WideCharToMultiByte]
test eax, eax
jne 0x1800deaed
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [rsp + 0x2d8], eax
mov edx, dword [rsp + 0x2d8]
lea rcx, [0x1800346d0]
call fcn.1800892c0
mov ecx, 0x1020
call fcn.1800eb9ac
mov qword [rsp + 0x7a0], rax
cmp qword [rsp + 0x7a0], 0
je 0x1800dea64
mov r8d, dword [rsp + 0x2d8]
mov eax, dword [rsp + 0x2d8]
mov dword [rsp + 0x20], eax
lea r9, [0x1800346d0]
mov edx, 5
mov rcx, qword [rsp + 0x7a0]
call fcn.18008d120
mov qword [rsp + 0x818], rax
jmp 0x1800dea70
mov qword [rsp + 0x818], 0
mov rax, qword [rsp + 0x818]
mov qword [rsp + 0x798], rax
mov rax, qword [rsp + 0x798]
mov qword [rsp + 0x510], rax
cmp qword [rsp + 0x510], 0
je 0x1800deac9
mov rcx, qword [rsp + 0x510]
call fcn.18008d1e0
mov rdi, rax
mov rcx, qword [rsp + 0x510]
call fcn.1800e3fe0
mov r8, rdi
mov edx, eax
lea rcx, [0x180034650]
call fcn.1800892c0
mov rax, qword [rsp + 0x510]
mov qword [rsp + 0x7a8], rax
lea rdx, [0x18015a158]
lea rcx, [rsp + 0x7a8]
call fcn.1800ec370
xor eax, eax
mov rcx, 0xffffffffffffffff
lea rdi, [rsp + 0x1a0]
repne scasb al, byte [rdi]
not rcx
sub rcx, 1
mov byte [rsp + 0x501], cl
movzx eax, byte [rsp + 0x501]
cmp eax, 2
jle 0x1800deb4a
movzx eax, byte [rsp + 0x501]
sub eax, 2
cdqe
movsx eax, byte [rsp + rax + 0x1a0]
cmp eax, 0x3b
jne 0x1800deb4a
movzx eax, byte [rsp + 0x501]
sub eax, 2
cdqe
mov byte [rsp + rax + 0x1a0], 0
lea r9, [rsp + 0x1a0]
mov r8, qword [rsp + 0x868]
lea rdx, [0x1800340e8]
lea rcx, [rsp + 0x80]
call fcn.1800eb79c
mov rdx, qword [rsp + 0x2b8]
mov eax, dword [rdx + 0xa]
mov qword [rsp + 0x508], rax
mov byte [rsp + 0x190], 0
mov rax, qword [rsp + 0x2b8]
movzx eax, byte [rax + 0x19]
and eax, 2
test eax, eax
je 0x1800debae
movzx eax, byte [rsp + 0x190]
or eax, 0x10
mov byte [rsp + 0x190], al
mov rax, qword [rsp + 0x2b8]
movzx eax, byte [rax + 0x19]
and eax, 1
test eax, eax
je 0x1800debd3
movzx eax, byte [rsp + 0x190]
or eax, 2
mov byte [rsp + 0x190], al
movzx eax, byte [rsp + 0x190]
and eax, 0x10
test eax, eax
jne 0x1800deca4
cmp qword [rsp + 0x508], 0
jne 0x1800deca4
mov rax, qword [rsp + 0x2b8]
cmp dword [rax + 2], 0
jne 0x1800deca4
lea rdi, [rsp + 0x7b0]
mov rsi, qword [rsp + 0x2b8]
add rsi, 0x12
mov ecx, 7
rep movsb byte [rdi], byte [rsi]
movzx edx, byte [rsp + 0x190]
mov rdi, qword [rsp + 0x858]
mov rdi, qword [rdi]
mov rax, qword [rsp + 0x880]
mov qword [rsp + 0x48], rax
mov rax, qword [rsp + 0x508]
mov qword [rsp + 0x40], rax
mov dword [rsp + 0x38], 1
lea rax, [rsp + 0x7b0]
mov qword [rsp + 0x30], rax
mov dword [rsp + 0x28], edx
movzx eax, byte [rsp + 0x500]
mov byte [rsp + 0x20], al
lea r9, [rsp + 0x2e0]
lea r8, [rsp + 0x1a0]
lea rdx, [rsp + 0x80]
mov rcx, qword [rsp + 0x858]
call qword [rdi + 0x48]
mov qword [rsp + 0x4f0], rax
jmp 0x1800ded43
lea rdi, [rsp + 0x7c0]
mov rsi, qword [rsp + 0x2b8]
add rsi, 0x12
mov ecx, 7
rep movsb byte [rdi], byte [rsi]
movzx edx, byte [rsp + 0x190]
mov rdi, qword [rsp + 0x858]
mov rdi, qword [rdi]
mov rax, qword [rsp + 0x880]
mov qword [rsp + 0x48], rax
mov rax, qword [rsp + 0x508]
mov qword [rsp + 0x40], rax
mov rax, qword [rsp + 0x2b8]
mov eax, dword [rax + 2]
mov dword [rsp + 0x38], eax
lea rax, [rsp + 0x7c0]
mov qword [rsp + 0x30], rax
mov dword [rsp + 0x28], edx
movzx eax, byte [rsp + 0x500]
mov byte [rsp + 0x20], al
lea r9, [rsp + 0x2e0]
lea r8, [rsp + 0x1a0]
lea rdx, [rsp + 0x80]
mov rcx, qword [rsp + 0x858]
call qword [rdi + 0x48]
mov qword [rsp + 0x4f0], rax
mov rax, qword [rsp + 0x2b8]
movzx eax, byte [rax + 0x19]
and eax, 2
cmp eax, 2
jne 0x1800dedc0
cmp qword [rsp + 0x4f0], 0
je 0x1800dedc0
mov rax, qword [rsp + 0x888]
mov qword [rsp + 0x38], rax
mov rax, qword [rsp + 0x4f0]
mov qword [rsp + 0x30], rax
mov rax, qword [rsp + 0x2b8]
mov eax, dword [rax + 0xa]
mov dword [rsp + 0x28], eax
mov rax, qword [rsp + 0x2b8]
mov eax, dword [rax + 2]
mov dword [rsp + 0x20], eax
lea r9, [rsp + 0x80]
movzx r8d, byte [rsp + 0x860]
mov rdx, qword [rsp + 0x858]
mov rcx, qword [rsp + 0x850]
call fcn.1800de190
mov rax, qword [rsp + 0x2b8]
movzx ecx, byte [rax]
mov eax, dword [rsp + 0x2dc]
add eax, ecx
mov dword [rsp + 0x2dc], eax
mov ecx, dword [rsp + 0x2dc]
mov rax, qword [rsp + 0x2b0]
movzx eax, byte [rax + rcx]
test eax, eax
jne 0x1800dee15
mov eax, dword [rsp + 0x878]
cmp dword [rsp + 0x2dc], eax
jae 0x1800dee15
mov eax, dword [rsp + 0x2dc]
add eax, 1
mov dword [rsp + 0x2dc], eax
jmp 0x1800deddb
jmp 0x1800de831
lea rcx, [rsp + 0x2c0]
call fcn.18008d0b0
mov rcx, qword [rsp + 0x820]
xor rcx, rsp
call fcn.1800eb430
add rsp, 0x838
pop rdi
pop rsi
ret