Function at 0x1401749e0
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 - 0xb0]
sub rsp, 0x1b0
mov rax, qword [0x14055f260]
xor rax, rsp
mov qword [rbp + 0xa0], rax
mov r12, rcx
xor r13d, r13d
mov edi, r13d
mov dword [rsp + 0x30], r13d
test r8, r8
je 0x140174e88
test rdx, rdx
je 0x140174e4a
mov ecx, dword [rcx]
cmp ecx, 0xffffffff
je 0x140174e4a
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll__read]
cdqe
cmp rax, 0xffffffffffffffff
jne 0x140174e8a
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__errno]
mov ecx, dword [rax]
mov dword [r12 + 4], ecx
xor al, al
lea r14, str.C:ProjectwxWidgets_3.2.2.1_srccommon_file.cpp
lea r15, str.wxFile::Read
lea rsi, [0x1403c8f48]
test al, al
jne 0x140174ac4
mov rdx, rsi
lea rcx, [rbp + 0x40]
call fcn.14010a1d0
mov rbx, rax
or edi, 1
mov dword [rsp + 0x30], edi
cmp dword [0x140575068], 0
je 0x140174aa8
call sub.KERNEL32.dll_GetCurrentThreadId
cmp eax, dword [0x140575068]
je 0x140174aa8
call fcn.140136fe0
jmp 0x140174aaf
movzx eax, byte [reloc.WS2_32.dll_accept]
test al, al
je 0x140174ac4
mov rcx, rbx
call fcn.140136b60
cmp eax, 1
jb 0x140174ac4
mov bl, 1
jmp 0x140174ac6
xor bl, bl
test dil, 1
je 0x140174ae2
and edi, 0xfffffffe
mov rcx, qword [rbp + 0x60]
call qword [sym.imp.api_ms_win_crt_heap_l1_1_0.dll_free]
lea rcx, [rbp + 0x40]
call fcn.14000e160
test bl, bl
je 0x140174e41
lea rdx, str.cant_read_from_file_descriptor__d
lea rcx, [rbp + 0x70]
call fcn.1400104b0
nop
mov qword [rbp - 0x70], r13
mov qword [rbp - 0x60], r13
mov qword [rbp - 0x58], 7
mov word [rbp - 0x70], r13w
mov qword [rbp - 0x50], r13
mov qword [rbp - 0x48], r13
mov qword [rsp + 0x60], r13
mov qword [rsp + 0x70], r13
mov qword [rsp + 0x78], 7
mov word [rsp + 0x60], r13w
mov qword [rbp - 0x80], r13
mov qword [rbp - 0x78], r13
call fcn.140149fa0
test rax, rax
je 0x140174b60
lea r9, [rbp - 0x70]
lea r8, [rsp + 0x60]
lea rdx, [rbp + 0x70]
mov rcx, rax
call fcn.14014a3e0
mov rbx, rax
test rax, rax
jne 0x140174b6c
lea rcx, [rbp + 0x70]
call fcn.14014b190
mov rbx, rax
call fcn.14010aa30
mov qword [rsp + 0x38], rax
call fcn.14010aa30
mov qword [rsp + 0x40], rax
call fcn.14010aa30
mov qword [rsp + 0x48], rax
mov qword [rsp + 0x50], rbx
mov qword [rsp + 0x58], r13
lea rdx, str.wx.sys_error
lea rcx, [rbp + 0x40]
call fcn.1400104b0
nop
mov dword [rbp - 0x40], 1
mov qword [rbp - 0x38], r14
mov qword [rbp - 0x28], r15
mov dword [rbp - 0x30], 0x14d
mov qword [rbp - 0x20], rsi
mov qword [rbp - 0x18], r13
mov qword [rbp - 0x10], r13
call sub.KERNEL32.dll_GetCurrentThreadId
mov dword [rbp - 8], eax
xorps xmm0, xmm0
movdqa xmmword [rbp], xmm0
mov qword [rbp + 0x18], r13
mov qword [rbp + 0x20], 7
mov word [rbp + 8], r13w
mov qword [rbp + 0x28], r13
mov qword [rbp + 0x30], r13
mov ebx, dword [r12]
call sub.KERNEL32.dll_GetLastError
mov r8d, eax
lea rdx, [rbp + 0x40]
lea rcx, [rbp - 0x40]
call fcn.1401216e0
mov rsi, rax
mov edx, 1
lea rcx, [rsp + 0x38]
call fcn.1401448b0
mov ecx, eax
and ecx, 9
cmp ecx, eax
je 0x140174c6a
cmp qword [0x14055a4b8], 0
je 0x140174c6a
lea rax, str.format_specifier_doesnt_match_argument_type
mov qword [rsp + 0x20], rax
lea r9, str._argtype___wxFormatStringSpecifier_T_::value____argtype
lea r8, str.wxArgNormalizer_int_::wxArgNormalizer
mov edx, 0x1e4
lea rcx, str.C:ProjectwxWidgets_3.2.2.1includewx_strvararg.h
call fcn.140118ee0
cmp byte [0x1405750a8], 0
je 0x140174c6a
mov byte [0x1405750a8], 0
int3
lea rcx, [rsp + 0x38]
call fcn.140143f20
mov r8d, ebx
mov rdx, rax
mov rcx, rsi
call fcn.140011670
nop
mov rcx, qword [rbp + 0x28]
call qword [sym.imp.api_ms_win_crt_heap_l1_1_0.dll_free]
mov rdx, qword [rbp + 0x20]
cmp rdx, 8
jb 0x140174ccd
lea rdx, [rdx*2 + 2]
mov rcx, qword [rbp + 8]
mov rax, rcx
cmp rdx, 0x1000
jb 0x140174cc8
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
ja 0x140174e2c
call fcn.14036c454
mov qword [rbp + 0x18], r13
mov qword [rbp + 0x20], 7
mov word [rbp + 8], r13w
mov rbx, qword [rbp]
test rbx, rbx
je 0x140174d39
lea r8, [0x1400110e0]
mov rdx, qword [rbx + 0x20]
mov rcx, qword [rbx + 0x28]
call fcn.14011b9f0
mov qword [rbx + 0x30], r13
mov rcx, qword [rbx + 0x20]
call qword [sym.imp.api_ms_win_crt_heap_l1_1_0.dll_free]
nop
lea r8, [0x140011220]
mov rdx, qword [rbx]
mov rcx, qword [rbx + 8]
call fcn.14011b9f0
mov qword [rbx + 0x10], r13
mov rcx, qword [rbx]
call qword [sym.imp.api_ms_win_crt_heap_l1_1_0.dll_free]
nop
mov edx, 0x40
mov rcx, rbx
call fcn.14036c454
nop
mov rcx, qword [rbp + 0x60]
call qword [sym.imp.api_ms_win_crt_heap_l1_1_0.dll_free]
lea rcx, [rbp + 0x40]
call fcn.14000e160
nop
lea rcx, [rsp + 0x38]
call fcn.140010cb0
nop
mov rcx, qword [rbp - 0x80]
call qword [sym.imp.api_ms_win_crt_heap_l1_1_0.dll_free]
mov rdx, qword [rsp + 0x78]
cmp rdx, 8
jb 0x140174da4
lea rdx, [rdx*2 + 2]
mov rcx, qword [rsp + 0x60]
mov rax, rcx
cmp rdx, 0x1000
jb 0x140174d9f
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
ja 0x140174e33
call fcn.14036c454
mov qword [rsp + 0x70], r13
mov qword [rsp + 0x78], 7
mov word [rsp + 0x60], r13w
mov rcx, qword [rbp - 0x50]
call qword [sym.imp.api_ms_win_crt_heap_l1_1_0.dll_free]
mov rdx, qword [rbp - 0x58]
cmp rdx, 8
jb 0x140174dfe
lea rdx, [rdx*2 + 2]
mov rcx, qword [rbp - 0x70]
mov rax, rcx
cmp rdx, 0x1000
jb 0x140174df9
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
ja 0x140174e3a
call fcn.14036c454
mov qword [rbp - 0x60], r13
mov qword [rbp - 0x58], 7
mov word [rbp - 0x70], r13w
mov rcx, qword [rbp + 0x90]
call qword [sym.imp.api_ms_win_crt_heap_l1_1_0.dll_free]
lea rcx, [rbp + 0x70]
call fcn.14000e160
mov al, 1
jmp 0x140174a6a
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
nop
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
nop
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
nop
mov rax, 0xffffffffffffffff
jmp 0x140174e8a
cmp qword [0x14055a4b8], rdi
je 0x140174e88
mov qword [rsp + 0x20], r13
lea r9, str.__pBuf___0___IsOpened___
lea r8, str.wxFile::Read
mov edx, 0x147
lea rcx, str.C:ProjectwxWidgets_3.2.2.1_srccommon_file.cpp
call fcn.140118ee0
cmp byte [0x1405750a8], dil
je 0x140174e88
mov byte [0x1405750a8], dil
int3
xor eax, eax
mov rcx, qword [rbp + 0xa0]
xor rcx, rsp
call fcn.14036c0d0
mov rbx, qword [rsp + 0x208]
add rsp, 0x1b0
pop r15
pop r14
pop r13
pop r12
pop rdi
pop rsi
pop rbp
ret