Function at 0x140037d24
Capabilities:
Read file on windows

Disassembly:
mov rax, rsp
push rbp
push rsi
push rdi
push r12
push r13
push r14
push r15
mov rbp, rsp
sub rsp, 0x60
mov qword [rbp - 0x10], 0xfffffffffffffffe
mov qword [rax + 8], rbx
mov r12d, r8d
mov r15, rdx
mov r13, rcx
xor esi, esi
mov r14d, esi
lea edi, [rsi + 1]
test r8d, r8d
je 0x140037f7f
mov dword [rbp + 0x58], esi
mov qword [rsp + 0x20], rsi
lea r9, [rbp + 0x58]
mov r8d, 4
lea rdx, [rbp + 0x50]
mov rcx, r15
call qword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
je 0x140037f7b
cmp dword [rbp + 0x58], 4
jne 0x140037f70
movzx eax, word [rbp + 0x50]
test ax, ax
je 0x140037da0
add ax, di
mov word [rbp + 0x50], ax
mov rdi, rsi
mov qword [rbp - 0x20], rsi
cmp word [rbp + 0x52], si
je 0x140037ef7
mov qword [rbp - 0x28], rsi
mov dword [rbp + 0x58], esi
mov qword [rsp + 0x20], rsi
lea r9, [rbp + 0x58]
mov r8d, 4
lea rdx, [rbp - 0x30]
mov rcx, r15
call qword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
je 0x140037f65
cmp dword [rbp + 0x58], 4
jne 0x140037f5a
lea rdx, [rbp - 0x28]
mov rcx, r15
call fcn.140028080
test eax, eax
je 0x140037f65
mov ebx, dword [rbp - 0x30]
test bl, 8
je 0x140037e41
lea rdx, [rbp - 0x18]
mov rcx, r15
call fcn.140028080
test eax, eax
je 0x140037f65
mov edx, dword [rbp - 0x30]
or edx, 1
mov r9, qword [rbp - 0x18]
mov r8, qword [rbp - 0x28]
mov rcx, rdi
call fcn.1400345f4
mov rdi, rax
mov qword [rbp - 0x20], rax
lea rcx, [rbp - 0x18]
call fcn.140027d90
jmp 0x140037edf
test bl, 4
je 0x140037e8a
cmp word [rbp + 0x50], si
jne 0x140037e6b
lea rdx, [0x14000c958]
mov rcx, qword [rbp - 0x28]
call sub.msvcrt.dll_strcmp
test eax, eax
jne 0x140037e6b
mov eax, 1
mov word [rbp + 0x50], ax
jmp 0x140037edf
mov edx, 1
or edx, ebx
xor r9d, r9d
mov r8, qword [rbp - 0x28]
mov rcx, rdi
call fcn.1400345f4
mov rdi, rax
mov qword [rbp - 0x20], rax
jmp 0x140037edf
test rdi, rdi
je 0x140037ec0
mov rsi, rdi
mov rax, qword [rdi]
jmp 0x140037e9d
mov rsi, rax
mov rax, qword [rax]
test rax, rax
jne 0x140037e97
or ebx, 1
mov rcx, qword [rbp - 0x28]
test rcx, rcx
je 0x140037eb7
mov edx, ebx
call fcn.140034520
jmp 0x140037eb9
xor eax, eax
mov qword [rsi], rax
xor esi, esi
jmp 0x140037edf
or ebx, 1
mov rcx, qword [rbp - 0x28]
test rcx, rcx
je 0x140037ed8
mov edx, ebx
call fcn.140034520
mov rdi, rax
jmp 0x140037edb
mov rdi, rsi
mov qword [rbp - 0x20], rdi
lea rcx, [rbp - 0x28]
call fcn.140027d90
mov eax, 0xffff
add word [rbp + 0x52], ax
jne 0x140037db1
mov ecx, 0x18
call qword [sym.imp.MFC42.dll_CReBarCtrl::SetColorScheme]
mov rbx, rax
mov qword [rbp + 0x58], rax
test rax, rax
je 0x140037f1e
movzx ecx, word [rbp + 0x50]
mov qword [rax], rsi
mov dword [rax + 8], ecx
mov qword [rax + 0x10], rdi
jmp 0x140037f21
mov rbx, rsi
mov edi, 1
test rbx, rbx
jne 0x140037f3e
xor r9d, r9d
xor r8d, r8d
mov edx, edi
mov ecx, 0xc0000017
call qword [sym.imp.KERNEL32.dll_RaiseException]
test r14, r14
je 0x140037f48
mov qword [r14], rbx
jmp 0x140037f4f
mov qword [r13 + 0xc0], rbx
mov r14, rbx
dec r12d
jmp 0x140037d59
mov ecx, 0xd
call qword [sym.imp.KERNEL32.dll_SetLastError]
lea rcx, [rbp - 0x20]
call fcn.140034788
jmp 0x140037f7b
mov ecx, 0xd
call qword [sym.imp.KERNEL32.dll_SetLastError]
xor eax, eax
jmp 0x140037f81
mov eax, edi
mov rbx, qword [rsp + 0xa0]
add rsp, 0x60
pop r15
pop r14
pop r13
pop r12
pop rdi
pop rsi
pop rbp
ret