Function at 0x140037888
Capabilities:
Read file on windows

Disassembly:
mov qword [rsp + 0x20], rbx
push rbp
push rsi
push rdi
push r12
push r13
push r14
push r15
lea rbp, [rsp - 0xfc0]
mov eax, 0x10c0
call fcn.140041280
sub rsp, rax
mov rax, qword [section..data]
xor rax, rsp
mov qword [rbp + 0xfb0], rax
xor r13d, r13d
mov rdi, rcx
mov r12, r8
mov r15, rdx
lea rcx, [rsp + 0x48]
mov r8d, 0x7f8
xor edx, edx
mov esi, r13d
mov ebx, r13d
mov qword [rsp + 0x40], r13
call sub.msvcrt.dll_memset
lea eax, [r13 + 1]
lea r9, [rsp + 0x30]
lea r8d, [r13 + 0xc]
lea rdx, [rbp + 0x744]
mov rcx, r15
mov dword [rdi + 0x60], eax
or r14d, 0xffffffff
mov dword [rsp + 0x30], r13d
mov qword [rsp + 0x20], r13
call qword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
je 0x140037aff
cmp dword [rsp + 0x30], 0xc
je 0x140037933
lea ecx, [r13 + 0xd]
call qword [sym.imp.KERNEL32.dll_SetLastError]
jmp 0x140037aff
mov eax, 1
cmp word [rbp + 0x744], ax
je 0x140037a20
movzx ecx, word [rbp + reloc.MFC42.dll_CRuntimeClassconstCMenu::classCMenu]
movzx eax, word [rbp + 0x748]
lea r8, [0x14000c980]
mov dword [rsp + 0x28], eax
mov dword [rsp + 0x20], ecx
lea rcx, [rbp + 0x770]
mov r9, r12
mov edx, reloc.MFC42.dll_CScrollBar::Create
call fcn.140027db8
lea rbx, [rbp + 0x770]
mov r8d, 1
movsxd rcx, eax
add rbx, rcx
movzx ecx, word [rbp + 0x74c]
movzx eax, cx
sub ax, r8w
cmp ax, 0x19
ja 0x1400379bd
lea rdx, [rbp + 0x770]
mov rax, rbx
sub rax, rdx
cmp rax, reloc.MFC42.dll_CScrollBar::Create
jae 0x1400379bd
add cl, 0x60
mov byte [rbx], cl
add rbx, r8
mov byte [rbx], r13b
movzx eax, word [rbp + reloc.MFC42.dll_CRuntimeClassCObArray::classCObArray]
test ax, ax
je 0x1400379e7
movzx r9d, ax
lea rax, [rbp + 0xfb0]
lea r8, [0x140007ac8]
sub eax, ebx
mov rcx, rbx
mov edx, eax
call fcn.140027db8
movzx eax, word [rbp + 0x74a]
test ax, ax
je 0x140037a0f
lea rdx, [rbp + 0xfb0]
lea r8, [0x14000ca00]
movzx r9d, ax
sub edx, ebx
mov rcx, rbx
call fcn.140027db8
lea rcx, [rbp + 0x770]
call fcn.140027cfc
jmp 0x140037af8
mov ecx, operator>>
call qword [sym.imp.MFC42.dll_CReBarCtrl::SetColorScheme]
mov qword [rdi + 0x58], rax
test rax, rax
jne 0x140037a48
lea edx, [rax + 1]
xor r9d, r9d
xor r8d, r8d
mov ecx, 0xc0000017
call qword [sym.imp.KERNEL32.dll_RaiseException]
mov rdx, qword [rdi + 0x58]
lea r9, [rsp + 0x30]
mov r8d, operator>>
mov rcx, r15
mov dword [rsp + 0x30], r13d
mov qword [rsp + 0x20], r13
call qword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
je 0x140037a87
cmp dword [rsp + 0x30], 0x360
je 0x140037b30
mov ecx, 0xd
call qword [sym.imp.KERNEL32.dll_SetLastError]
mov rdx, qword [rdi + 0x88]
test rdx, rdx
je 0x140037aa8
mov r8d, 1
mov rcx, rdi
call fcn.140039210
mov qword [rdi + 0x88], r13
mov rcx, qword [rdi + 0x58]
test rcx, rcx
je 0x140037abb
call qword [sym.imp.MFC42.dll_CListCtrl::SetColumnOrderArray]
mov qword [rdi + 0x58], r13
lea rcx, [rdi + 0xc0]
call fcn.1400344c8
call qword [sym.imp.KERNEL32.dll_GetLastError]
lea r8, [0x14000ca10]
lea rcx, [rbp + 0x770]
mov r9, r12
mov edx, reloc.MFC42.dll_CScrollBar::Create
mov ebx, eax
call fcn.140027db8
lea rdx, [rbp + 0x770]
mov ecx, ebx
call fcn.1400285f8
mov qword [rdi + 0x98], rax
bts dword [rdi + 0x64], 0x13
xor eax, eax
mov rcx, qword [rbp + 0xfb0]
xor rcx, rsp
call fcn.14003f730
mov rbx, qword [rsp + 0x1118]
add rsp, 0x10c0
pop r15
pop r14
pop r13
pop r12
pop rdi
pop rsi
pop rbp
ret
lea r9, [rsp + 0x30]
lea rdx, [rbp + 0x750]
mov r8d, 0x18
mov rcx, r15
mov dword [rsp + 0x30], r13d
mov qword [rsp + 0x20], r13
call qword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
je 0x140037a87
cmp dword [rsp + 0x30], 0x18
jne 0x140037a7c
mov eax, dword [rbp + 0x750]
mov r8d, dword [rbp + 0x75c]
mov rdx, r15
or dword [rdi + 0x60], eax
mov eax, dword [rbp + 0x754]
mov rcx, rdi
or dword [rdi + 0x64], eax
mov eax, dword [rbp + 0x758]
mov dword [rdi + 0x68], eax
call fcn.140037d24
test eax, eax
je 0x140037a87
cmp dword [rbp + 0x760], r13d
jbe 0x140037bd2
mov rdx, r15
mov rcx, rdi
call fcn.140037fa0
test rax, rax
je 0x140037c9a
test rbx, rbx
je 0x140037bc4
mov qword [rbx], rax
jmp 0x140037bc7
mov rsi, rax
dec dword [rbp + 0x760]
mov rbx, rax
jne 0x140037ba6
cmp dword [rbp + 0x764], r13d
jbe 0x140037c6f
mov r8, rsi
mov rdx, r15
call fcn.140038244
mov rbx, rax
test rax, rax
je 0x140037c9a
cmp dword [rax + 0x30], 0xff
ja 0x140037c92
lea ecx, [r14 + 1]
cmp dword [rax + 0x30], ecx
jg 0x140037c92
mov rdx, rax
mov rcx, rdi
call fcn.14003bca8
mov edx, dword [rbx + 0x30]
test edx, edx
je 0x140037c2e
lea eax, [rdx - 1]
mov rax, qword [rsp + rax*8 + 0x40]
mov qword [rbx + 8], rax
cmp edx, r14d
jg 0x140037c3d
mov rcx, qword [rsp + rdx*8 + 0x40]
mov qword [rcx], rbx
jmp 0x140037c4d
test edx, edx
je 0x140037c4d
lea eax, [rdx - 1]
mov rax, qword [rsp + rax*8 + 0x40]
mov qword [rax + 0x10], rbx
cmp r14d, 0xffffffff
jne 0x140037c5a
mov qword [rdi + 0x88], rbx
movsxd r14, dword [rbx + 0x30]
dec dword [rbp + 0x764]
mov qword [rsp + r14*8 + 0x40], rbx
jne 0x140037bdf
test rsi, rsi
je 0x140037c88
mov rbx, qword [rsi]
mov rcx, rsi
call qword [sym.imp.MFC42.dll_CListCtrl::SetColumnOrderArray]
mov rsi, rbx
test rbx, rbx
jne 0x140037c74
mov eax, 1
jmp 0x140037b06
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_SetLastError]
test rsi, rsi
je 0x140037a87
mov rdx, qword [rsi + 8]
cmp byte [rdx + 8], r13b
jne 0x140037d02
call fcn.140039318
mov rbx, qword [rsi + 8]
test rbx, rbx
je 0x140037cff
lea rcx, [rbx + 0x98]
call fcn.140027d90
lea rcx, [rbx + 0xa8]
call fcn.140027d90
mov rcx, qword [rbx + 0x80]
cmp rcx, 0xffffffffffffffff
je 0x140037cf6
mov rax, qword [0x140049440]
test rax, rax
je 0x140037cf6
call rax
or qword [rbx + 0x80], 0xffffffffffffffff
mov rcx, rbx
call qword [sym.imp.MFC42.dll_CListCtrl::SetColumnOrderArray]
dec dword [rdi + 0x6c]
mov rbx, qword [rsi]
mov rcx, rsi
call qword [sym.imp.MFC42.dll_CListCtrl::SetColumnOrderArray]
mov rsi, rbx
test rbx, rbx
jne 0x140037ca3
jmp 0x140037a87