Function at 0x1400a15b0
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 [0x1404b3028]
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 0x1400a1a5e
test rdx, rdx
je 0x1400a1a20
mov ecx, dword [rcx]
cmp ecx, 0xffffffff
je 0x1400a1a20
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll__read]
cdqe
cmp rax, 0xffffffffffffffff
jne 0x1400a1a60
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:LibrarieswxWidgets3.2.4_srccommon_file.cpp
lea r15, str.wxFile::Read
lea rsi, [0x14033a5f8]
test al, al
jne 0x1400a1694
mov rdx, rsi
lea rcx, [rbp + 0x40]
call fcn.140044710
mov rbx, rax
or edi, 1
mov dword [rsp + 0x30], edi
cmp dword [0x1404c4ab8], 0
je 0x1400a1678
call sub.KERNEL32.dll_GetCurrentThreadId
cmp eax, dword [0x1404c4ab8]
je 0x1400a1678
call fcn.140051d10
jmp 0x1400a167f
movzx eax, byte [reloc.WS2_32.dll_accept]
test al, al
je 0x1400a1694
mov rcx, rbx
call fcn.1400518b0
cmp eax, 1
jb 0x1400a1694
mov bl, 1
jmp 0x1400a1696
xor bl, bl
test dil, 1
je 0x1400a16b2
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.1400119a0
test bl, bl
je 0x1400a1a17
lea rdx, str.cant_read_from_file_descriptor__d
lea rcx, [rbp + 0x70]
call fcn.140010ee0
nop
xorps xmm0, xmm0
movups xmmword [rbp - 0x70], xmm0
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
movups xmmword [rsp + 0x60], xmm0
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.14007be90
test rax, rax
je 0x1400a1733
lea r9, [rbp - 0x70]
lea r8, [rsp + 0x60]
lea rdx, [rbp + 0x70]
mov rcx, rax
call fcn.14007c2d0
mov rbx, rax
test rax, rax
jne 0x1400a173f
lea rcx, [rbp + 0x70]
call fcn.14007d380
mov rbx, rax
call fcn.140044e20
mov qword [rsp + 0x38], rax
call fcn.140044e20
mov qword [rsp + 0x40], rax
call fcn.140044e20
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.140010ee0
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
mov qword [rbp], r13
xorps xmm0, xmm0
movups xmmword [rbp + 8], 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.14005c970
mov rsi, rax
mov edx, 1
lea rcx, [rsp + 0x38]
call fcn.1400559f0
mov ecx, eax
and ecx, 9
cmp ecx, eax
je 0x1400a1840
cmp qword [0x1404b3060], 0
je 0x1400a1840
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:LibrarieswxWidgets3.2.4includewx_strvararg.h
call fcn.140041e40
cmp byte [0x1404c47a8], 0
je 0x1400a1840
mov byte [0x1404c47a8], 0
int3
lea rcx, [rsp + 0x38]
call fcn.140055070
mov r8d, ebx
mov rdx, rax
mov rcx, rsi
call fcn.14003f190
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 0x1400a18a3
lea rdx, [rdx*2 + 2]
mov rcx, qword [rbp + 8]
mov rax, rcx
cmp rdx, 0x1000
jb 0x1400a189e
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
ja 0x1400a1a02
call fcn.14003b258
mov qword [rbp + 0x18], r13
mov qword [rbp + 0x20], 7
mov word [rbp + 8], r13w
mov rbx, qword [rbp]
test rbx, rbx
je 0x1400a190f
lea r8, [0x14003f090]
mov rdx, qword [rbx + 0x20]
mov rcx, qword [rbx + 0x28]
call fcn.140059540
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, [0x14003f050]
mov rdx, qword [rbx]
mov rcx, qword [rbx + 8]
call fcn.140059540
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.14003b258
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.1400119a0
nop
lea rcx, [rsp + 0x38]
call fcn.14003dbf0
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 0x1400a197a
lea rdx, [rdx*2 + 2]
mov rcx, qword [rsp + 0x60]
mov rax, rcx
cmp rdx, 0x1000
jb 0x1400a1975
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
ja 0x1400a1a09
call fcn.14003b258
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 0x1400a19d4
lea rdx, [rdx*2 + 2]
mov rcx, qword [rbp - 0x70]
mov rax, rcx
cmp rdx, 0x1000
jb 0x1400a19cf
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
ja 0x1400a1a10
call fcn.14003b258
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.1400119a0
mov al, 1
jmp 0x1400a163a
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 0x1400a1a60
cmp qword [0x1404b3060], rdi
je 0x1400a1a5e
mov qword [rsp + 0x20], r13
lea r9, str.__pBuf___0___IsOpened___
lea r8, str.wxFile::Read
mov edx, 0x147
lea rcx, str.C:LibrarieswxWidgets3.2.4_srccommon_file.cpp
call fcn.140041e40
cmp byte [0x1404c47a8], dil
je 0x1400a1a5e
mov byte [0x1404c47a8], dil
int3
xor eax, eax
mov rcx, qword [rbp + 0xa0]
xor rcx, rsp
call fcn.14003b100
mov rbx, qword [rsp + 0x208]
add rsp, 0x1b0
pop r15
pop r14
pop r13
pop r12
pop rdi
pop rsi
pop rbp
ret