Function at 0x140037fa0
Capabilities:
Read file on windows

Disassembly:
mov rax, rsp
push rbp
push rsi
push rdi
push r14
push r15
lea rbp, [rax - 0x5f]
sub rsp, 0xd0
mov qword [rbp - 0x61], 0xfffffffffffffffe
mov qword [rax + 0x18], rbx
mov rax, qword [section..data]
xor rax, rsp
mov qword [rbp + 0x27], rax
mov r14, rdx
mov r15, rcx
xor esi, esi
and dword [rbp - 0x69], esi
and qword [rsp + 0x20], rsi
lea r9, [rbp - 0x69]
lea r8d, [rsi + 0x78]
lea rdx, [rbp - 0x59]
mov rcx, r14
call qword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
je 0x140038216
cmp dword [rbp - 0x69], 0x78
je 0x140038010
lea ecx, [rsi + 0xd]
call qword [sym.imp.KERNEL32.dll_SetLastError]
jmp 0x140038216
mov edi, 0xb0
mov ecx, edi
call qword [sym.imp.MFC42.dll_CReBarCtrl::SetColorScheme]
mov rbx, rax
mov qword [rbp - 0x69], rax
test rax, rax
je 0x140038040
mov r8d, edi
xor edx, edx
mov rcx, rax
call sub.msvcrt.dll_memset
or qword [rbx + 0x80], 0xffffffffffffffff
jmp 0x140038042
xor ebx, ebx
test rbx, rbx
jne 0x14003805b
xor r9d, r9d
xor r8d, r8d
lea edx, [rbx + 1]
mov ecx, 0xc0000017
call qword [sym.imp.KERNEL32.dll_RaiseException]
inc dword [r15 + 0x6c]
mov eax, dword [rbp - 0x4d]
mov dword [rbx + 0xc], eax
mov eax, dword [rbp - 0x49]
mov dword [rbx + 0x10], eax
mov eax, dword [rbp - 0x45]
mov dword [rbx + 0x34], eax
mov rax, qword [rbp - 0x41]
mov qword [rbx + 0x18], rax
mov rax, qword [rbp - 0x39]
mov qword [rbx + 0x20], rax
mov eax, dword [rbp - 0x31]
mov dword [rbx + 0x28], eax
mov eax, dword [rbp - 0x2d]
mov dword [rbx + 0x2c], eax
mov eax, dword [rbp - 0x29]
mov dword [rbx + 0x30], eax
mov eax, dword [rbp - 0x25]
mov dword [rbx + 0x38], eax
mov eax, dword [rbp - 0x21]
mov dword [rbx + 0x3c], eax
mov eax, dword [rbp - 0x1d]
mov dword [rbx + 0x40], eax
mov rax, qword [rbp - 0x19]
mov qword [rbx + 0x48], rax
mov rax, qword [rbp - 0x11]
mov qword [rbx + 0x50], rax
mov eax, dword [rbp - 9]
mov dword [rbx + 0x58], eax
mov eax, dword [rbp - 5]
mov dword [rbx + 0x14], eax
mov eax, dword [rbp - 1]
mov dword [rbx + 0x5c], eax
mov eax, dword [rbp + 3]
mov dword [rbx + 0x60], eax
mov eax, dword [rbp + 7]
mov dword [rbx + 0x64], eax
mov eax, dword [rbp + 0xb]
mov dword [rbx + 0x68], eax
mov eax, dword [rbp + 0xf]
mov dword [rbx + 0x6c], eax
mov eax, dword [rbp + 0x13]
mov dword [rbx + 0x70], eax
mov eax, dword [rbp + 0x17]
mov dword [rbx + 0x74], eax
mov eax, dword [rbp + 0x1b]
mov dword [rbx + 0x78], eax
lea rdi, [rbx + 0xa8]
mov rdx, rdi
mov rcx, r14
call fcn.140028080
test eax, eax
je 0x1400381ca
cmp qword [rdi], 0
je 0x1400381ca
lea rdx, [rbx + 0x98]
mov rcx, r14
call fcn.140028080
test eax, eax
je 0x1400381ca
mov edx, 0x5c
mov rcx, qword [rdi]
call qword [sym.imp.msvcrt.dll_strrchr]
mov qword [rbx + 0xa0], rax
test rax, rax
je 0x14003814b
inc rax
jmp 0x14003814e
mov rax, qword [rdi]
mov qword [rbx + 0xa0], rax
cmp dword [rbp - 0x51], 0
jbe 0x140038181
mov rdx, r14
call fcn.140037720
test rax, rax
je 0x1400381ca
test rsi, rsi
je 0x140038172
mov qword [rsi], rax
jmp 0x140038179
mov qword [rbx + 0x90], rax
mov rsi, rax
dec dword [rbp - 0x51]
jne 0x14003815b
mov ecx, 0x18
call qword [sym.imp.MFC42.dll_CReBarCtrl::SetColorScheme]
mov rdi, rax
mov qword [rbp - 0x69], rax
test rax, rax
je 0x1400381aa
mov rax, qword [rbp - 0x59]
and qword [rdi], 0
mov qword [rdi + 8], rbx
mov qword [rdi + 0x10], rax
jmp 0x1400381ac
xor edi, edi
test rdi, rdi
jne 0x1400381c5
xor r9d, r9d
xor r8d, r8d
lea edx, [rdi + 1]
mov ecx, 0xc0000017
call qword [sym.imp.KERNEL32.dll_RaiseException]
mov rax, rdi
jmp 0x140038218
mov rdx, rbx
call fcn.140039318
lea rcx, [rbx + 0x98]
call fcn.140027d90
mov rcx, rdi
call fcn.140027d90
mov rcx, qword [rbx + 0x80]
cmp rcx, 0xffffffffffffffff
je 0x140038209
mov rax, qword [0x140049440]
test rax, rax
je 0x140038209
call rax
or qword [rbx + 0x80], 0xffffffffffffffff
mov rcx, rbx
call qword [sym.imp.MFC42.dll_CListCtrl::SetColumnOrderArray]
dec dword [r15 + 0x6c]
xor eax, eax
mov rcx, qword [rbp + 0x27]
xor rcx, rsp
call fcn.14003f730
mov rbx, qword [rsp + 0x110]
add rsp, 0xd0
pop r15
pop r14
pop rdi
pop rsi
pop rbp
ret