Function at 0x140139d70
Capabilities:
Check if file exists

Disassembly:
mov qword [rsp + 0x18], rbx
push rbp
push rsi
push rdi
push r12
push r13
push r14
push r15
lea rbp, [rsp - 0x3f0]
sub rsp, 0x4f0
mov rax, qword [0x14055f260]
xor rax, rsp
mov qword [rbp + 0x3e0], rax
mov r15, rdx
mov rdi, rcx
mov qword [rsp + 0x40], rdx
xor esi, esi
mov r14d, esi
mov dword [rsp + 0x34], esi
mov qword [rsp + 0x78], rsi
mov qword [rbp - 0x78], rsi
mov r12d, 7
mov qword [rbp - 0x70], r12
mov word [rsp + 0x78], si
xorps xmm0, xmm0
movdqu xmmword [rbp - 0x68], xmm0
xor r8d, r8d
lea rdx, [rbp - 0x28]
call fcn.140139c60
nop
lea rcx, [rbp - 0x28]
cmp qword [rbp - 0x10], 8
cmovae rcx, qword [rbp - 0x28]
xor r8d, r8d
xor edx, edx
call qword [sym.imp.KERNEL32.dll_GetLongPathNameW]
mov ebx, eax
test eax, eax
je 0x140139f50
mov r8d, ebx
lea rdx, [rsp + 0x78]
lea rcx, [rsp + 0x40]
call fcn.140121540
mov rcx, qword [rax + 8]
lea rax, [rbp - 0x28]
cmp qword [rbp - 0x10], 8
cmovae rax, qword [rbp - 0x28]
mov r8d, ebx
mov rdx, qword [rcx]
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_GetLongPathNameW]
mov ebx, eax
lea rcx, [rsp + 0x40]
call fcn.1401080a0
test ebx, ebx
je 0x140139f69
mov qword [r15], rsi
mov qword [r15 + 0x10], rsi
mov qword [r15 + 0x18], rsi
mov rdi, qword [rbp - 0x78]
lea rbx, [rsp + 0x78]
cmp qword [rbp - 0x70], 8
cmovae rbx, qword [rsp + 0x78]
cmp rdi, 8
jae 0x140139e79
movups xmm0, xmmword [rbx]
movups xmmword [r15], xmm0
jmp 0x140139eb4
mov r12, rdi
or r12, 7
movabs rax, 0x7ffffffffffffffe
cmp r12, rax
cmova r12, rax
lea rdx, [r12 + 1]
mov rcx, r15
call fcn.140020710
mov qword [r15], rax
lea r8, [rdi*2 + 2]
mov rdx, rbx
mov rcx, rax
call sub.VCRUNTIME140.dll_memcpy
mov qword [r15 + 0x10], rdi
mov qword [r15 + 0x18], r12
mov qword [r15 + 0x20], rsi
mov qword [r15 + 0x28], rsi
mov rcx, qword [rbp - 8]
call qword [sym.imp.api_ms_win_crt_heap_l1_1_0.dll_free]
lea rcx, [rbp - 0x28]
call fcn.14000e160
nop
mov rcx, qword [rbp - 0x68]
call qword [sym.imp.api_ms_win_crt_heap_l1_1_0.dll_free]
mov rdx, qword [rbp - 0x70]
cmp rdx, 8
jb 0x140139f23
lea rdx, [rdx*2 + 2]
mov rcx, qword [rsp + 0x78]
mov rax, rcx
cmp rdx, 0x1000
jb 0x140139f1e
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
ja 0x14013a804
call fcn.14036c454
mov rax, r15
mov rcx, qword [rbp + 0x3e0]
xor rcx, rsp
call fcn.14036c0d0
mov rbx, qword [rsp + 0x540]
add rsp, 0x4f0
pop r15
pop r14
pop r13
pop r12
pop rdi
pop rsi
pop rbp
ret
call qword [sym.imp.KERNEL32.dll_GetLastError]
nop
cmp eax, 2
je 0x14013a795
cmp eax, 0x35
je 0x14013a795
cmp qword [rdi + 0x10], 0
je 0x14013a068
mov rdx, rdi
lea rcx, [rbp + 0x98]
call fcn.140010410
mov r14d, 4
mov dword [rsp + 0x34], r14d
lea r8d, [r14 - 1]
lea rdx, [rbp + 0x98]
lea rcx, [rbp + 0x128]
call fcn.14013f750
mov rsi, rax
lea edx, [r14 - 1]
lea rcx, [rbp + 0xc8]
call fcn.14013af90
cmp qword [rax + 0x18], 8
jb 0x140139fc2
mov rax, qword [rax]
movzx ebx, word [rax]
mov rcx, qword [rbp + 0xe8]
call qword [sym.imp.api_ms_win_crt_heap_l1_1_0.dll_free]
lea rcx, [rbp + 0xc8]
call fcn.14000e160
mov r8d, ebx
mov rdx, rsi
lea rcx, [rbp + 0xf8]
call fcn.140108860
nop
lea rcx, [rsp + 0x78]
cmp rcx, rax
je 0x14013a017
mov rdx, rax
cmp qword [rax + 0x18], 8
jb 0x14013a008
mov rdx, qword [rax]
mov r8, qword [rax + 0x10]
lea rcx, [rsp + 0x78]
call fcn.14001d300
nop
mov rcx, qword [rbp + 0x118]
call qword [sym.imp.api_ms_win_crt_heap_l1_1_0.dll_free]
lea rcx, [rbp + 0xf8]
call fcn.14000e160
nop
mov rcx, qword [rbp + 0x148]
call qword [sym.imp.api_ms_win_crt_heap_l1_1_0.dll_free]
lea rcx, [rbp + 0x128]
call fcn.14000e160
nop
mov rcx, qword [rbp + 0xb8]
call qword [sym.imp.api_ms_win_crt_heap_l1_1_0.dll_free]
lea rcx, [rbp + 0x98]
call fcn.14000e160
xor esi, esi
jmp 0x14013a07f
mov qword [rbp - 0x78], rsi
lea rax, [rsp + 0x78]
cmp qword [rbp - 0x70], 8
cmovae rax, qword [rsp + 0x78]
mov word [rax], si
lea rdx, [rdi + 0x30]
lea rcx, [rsp + 0x50]
call fcn.14011a3e0
nop
lea rdx, [rdi + 0x58]
lea rcx, [rbp + 0x68]
call fcn.140010410
or r14d, 8
mov dword [rsp + 0x34], r14d
cmp byte [rdi + 0xb9], 0
je 0x14013a0e7
mov edx, 1
lea r8d, [rdx + 0x2d]
lea rcx, [rbp + 0x68]
call fcn.14013ddf0
lea rdx, [rdi + 0x88]
cmp qword [rdi + 0xa0], 8
jb 0x14013a0d7
mov rdx, qword [rdi + 0x88]
mov r8, qword [rdi + 0x98]
lea rcx, [rbp + 0x68]
call fcn.14010c3b0
mov r8d, 1
lea rdx, [rbp + 0x68]
lea rcx, [rsp + 0x50]
call fcn.14011a680
and r14d, 0xfffffff7
mov dword [rsp + 0x30], r14d
mov rcx, qword [rbp + 0x88]
call qword [sym.imp.api_ms_win_crt_heap_l1_1_0.dll_free]
lea rcx, [rbp + 0x68]
call fcn.14000e160
mov qword [rbp - 0x58], rsi
mov qword [rbp - 0x48], rsi
mov qword [rbp - 0x40], r12
mov word [rbp - 0x58], si
xorps xmm0, xmm0
movdqu xmmword [rbp - 0x38], xmm0
mov rax, qword [rsp + 0x60]
mov qword [rsp + 0x38], rax
mov r13, rsi
movabs rdi, 0x7ffffffffffffffe
test rax, rax
je 0x14013a6c3
mov rbx, rsi
mov qword [rsp + 0x40], rbx
lea rcx, str.wxArrayString:_index_out_of_bounds
cmp r13, rax
jb 0x14013a1a5
cmp qword [0x14055a4b8], 0
je 0x14013a1a5
mov qword [rsp + 0x20], rcx
lea r9, str.nIndex___m_nCount
lea r8, str.wxArrayString::Item
mov edx, Ordinal_217
lea rcx, str.C:ProjectwxWidgets_3.2.2.1includewx_arrstr.h
call fcn.1401190f0
cmp byte [0x1405750a8], 0
je 0x14013a1a5
mov byte [0x1405750a8], 0
int3
add rbx, qword [rsp + 0x68]
mov r8, rbx
lea rdx, [rsp + 0x78]
lea rcx, [rbp + 0x158]
call fcn.1401084f0
nop
lea rcx, [rbp - 0x58]
cmp rcx, rax
je 0x14013a1e3
mov rdx, rax
cmp qword [rax + 0x18], 8
jb 0x14013a1d5
mov rdx, qword [rax]
mov r8, qword [rax + 0x10]
lea rcx, [rbp - 0x58]
call fcn.14001d300
nop
mov rcx, qword [rbp + 0x178]
call qword [sym.imp.api_ms_win_crt_heap_l1_1_0.dll_free]
lea rcx, [rbp + 0x158]
call fcn.14000e160
cmp qword [rbp - 0x48], 0
je 0x14013a2cc
mov r8b, 1
mov edx, reloc.WLDAP32.dll_Ordinal_46
mov rcx, rbx
call fcn.14010aaf0
test al, al
jne 0x14013a2cc
lea rdx, [0x1403cf318]
mov rcx, rbx
call fcn.14010c6d0
test eax, eax
je 0x14013a2cc
mov edx, 3
lea rcx, [rbp + 8]
call fcn.14013c020
mov rbx, rax
or r14d, 2
mov dword [rsp + 0x30], r14d
mov dword [rsp + 0x34], r14d
cmp qword [rbp - 0x48], 0
jne 0x14013a2a2
cmp qword [0x14055a4b8], 0
je 0x14013a2a2
lea rax, str.wxString:_index_out_of_bounds
mov qword [rsp + 0x20], rax
lea r9, str._empty__
lea r8, str.wxString::Last
mov edx, 0x5e1
lea rcx, str.C:ProjectwxWidgets_3.2.2.1includewx_string.h
call fcn.1401190f0
cmp byte [0x1405750a8], 0
je 0x14013a2a2
mov byte [0x1405750a8], 0
int3
lea rcx, [rbp - 0x58]
cmp qword [rbp - 0x40], 8
cmovae rcx, qword [rbp - 0x58]
mov rax, qword [rbp - 0x48]
movzx edx, word [rcx + rax*2 - 2]
mov r8b, 1
mov rcx, rbx
call fcn.14010aaf0
test al, al
jne 0x14013a2cc
xor bl, bl
jmp 0x14013a2ce
mov bl, 1
test r14b, 2
je 0x14013a333
and r14d, 0xfffffffd
mov dword [rsp + 0x30], r14d
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 0x14013a327
lea rdx, [rdx*2 + 2]
mov rcx, qword [rbp + 8]
mov rax, rcx
cmp rdx, 0x1000
jb 0x14013a322
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
ja 0x14013a507
call fcn.14036c454
mov qword [rbp + 0x18], rsi
mov qword [rbp + 0x20], r12
mov word [rbp + 8], si
lea rcx, [rbp - 0x58]
test bl, bl
je 0x14013a46e
mov edx, 0x5c
call fcn.140108b40
lea r12, [rbp - 0x58]
cmp qword [rbp - 0x40], 8
cmovae r12, qword [rbp - 0x58]
mov r14, qword [rbp - 0x48]
mov rsi, qword [rbp - 0x70]
cmp r14, rsi
ja 0x14013a3a7
lea rdi, [rsp + 0x78]
cmp rsi, 8
cmovae rdi, qword [rsp + 0x78]
mov qword [rbp - 0x78], r14
lea rbx, [r14 + r14]
mov r8, rbx
mov rdx, r12
mov rcx, rdi
call sub.VCRUNTIME140.dll_memmove
xor esi, esi
mov word [rdi + rbx], si
mov r14d, dword [rsp + 0x30]
movabs rdi, 0x7ffffffffffffffe
lea r12d, [rsi + 7]
jmp 0x14013a4e1
cmp r14, rdi
ja 0x14013a80b
mov rbx, r14
or rbx, 7
cmp rbx, rdi
jbe 0x14013a3c1
mov rbx, rdi
jmp 0x14013a3e2
mov rcx, rsi
shr rcx, 1
mov rax, rdi
sub rax, rcx
cmp rsi, rax
jbe 0x14013a3d7
mov rbx, rdi
jmp 0x14013a3e2
lea rax, [rsi + rcx]
cmp rbx, rax
cmovb rbx, rax
lea rdx, [rbx + 1]
lea rcx, [rsp + 0x78]
call fcn.140020710
mov rdi, rax
mov qword [rbp - 0x78], r14
mov qword [rbp - 0x70], rbx
lea rbx, [r14 + r14]
mov r8, rbx
mov rdx, r12
mov rcx, rax
call sub.VCRUNTIME140.dll_memcpy
xor r14d, r14d
mov word [rdi + rbx], r14w
cmp rsi, 8
jb 0x14013a452
lea rdx, [rsi*2 + 2]
mov rcx, qword [rsp + 0x78]
mov rax, rcx
cmp rdx, 0x1000
jb 0x14013a44d
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
ja 0x14013a50e
call fcn.14036c454
mov qword [rsp + 0x78], rdi
mov r14d, dword [rsp + 0x30]
movabs rdi, 0x7ffffffffffffffe
xor esi, esi
lea r12d, [rsi + 7]
jmp 0x14013a4e1
cmp qword [rbp - 0x40], 8
cmovae rcx, qword [rbp - 0x58]
lea rdx, [rbp + 0x190]
call qword [sym.imp.KERNEL32.dll_FindFirstFileW]
mov rbx, rax
cmp rax, 0xffffffffffffffff
je 0x14013a515
lea rax, [rbp + 0x1bc]
mov r8, 0xffffffffffffffff
inc r8
cmp word [rax + r8*2], 0
jne 0x14013a4a0
lea rdx, [rbp + 0x1bc]
lea rcx, [rsp + 0x78]
call fcn.14010c3b0
mov rax, qword [rsp + 0x38]
dec rax
cmp r13, rax
jae 0x14013a4d8
mov edx, 0x5c
lea rcx, [rsp + 0x78]
call fcn.140108b40
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_FindClose]
inc r13
mov rbx, qword [rsp + 0x40]
add rbx, 0x30
mov qword [rsp + 0x40], rbx
cmp r13, qword [rsp + 0x38]
jae 0x14013a6c3
mov rax, qword [rsp + 0x60]
jmp 0x14013a15a
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
int3
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
int3
inc r13
mov rdi, qword [rsp + 0x38]
cmp r13, rdi
jae 0x14013a5e1
lea rbx, [r13*2]
add rbx, r13
shl rbx, 4
lea rsi, str.wxArrayString:_index_out_of_bounds
nop dword [rax]
cmp r13, qword [rsp + 0x60]
jb 0x14013a586
cmp qword [0x14055a4b8], 0
je 0x14013a586
mov qword [rsp + 0x20], rsi
lea r9, str.nIndex___m_nCount
lea r8, str.wxArrayString::Item
mov edx, Ordinal_217
lea rcx, str.C:ProjectwxWidgets_3.2.2.1includewx_arrstr.h
call fcn.1401190f0
cmp byte [0x1405750a8], 0
je 0x14013a586
mov byte [0x1405750a8], 0
int3
mov r8, qword [rsp + 0x68]
add r8, rbx
mov edx, 0x5c
lea rcx, [rbp + 0x38]
call fcn.140108ae0
or r14d, 0x20
lea rdx, [rbp + 0x38]
cmp qword [rbp + 0x50], 8
cmovae rdx, qword [rbp + 0x38]
mov r8, qword [rbp + 0x48]
lea rcx, [rbp - 0x58]
call fcn.14010c3b0
nop
mov rcx, qword [rbp + 0x58]
call qword [sym.imp.api_ms_win_crt_heap_l1_1_0.dll_free]
lea rcx, [rbp + 0x38]
call fcn.14000e160
inc r13
add rbx, 0x30
cmp r13, rdi
jb 0x14013a540
xor esi, esi
mov qword [r15], rsi
mov qword [r15 + 0x10], rsi
mov qword [r15 + 0x18], rsi
mov rsi, qword [rbp - 0x48]
lea rdi, [rbp - 0x58]
cmp qword [rbp - 0x40], 8
cmovae rdi, qword [rbp - 0x58]
cmp rsi, 8
jae 0x14013a610
movups xmm0, xmmword [rdi]
movups xmmword [r15], xmm0
mov rbx, r12
jmp 0x14013a64a
mov rbx, rsi
or rbx, 7
movabs rax, 0x7ffffffffffffffe
cmp rbx, rax
cmova rbx, rax
lea rdx, [rbx + 1]
mov rcx, r15
call fcn.140020710
mov qword [r15], rax
lea r8, [rsi*2 + 2]
mov rdx, rdi
mov rcx, rax
call sub.VCRUNTIME140.dll_memcpy
mov qword [r15 + 0x10], rsi
mov qword [r15 + 0x18], rbx
xor r14d, r14d
mov qword [r15 + 0x20], r14
mov qword [r15 + 0x28], r14
mov rcx, qword [rbp - 0x38]
call qword [sym.imp.api_ms_win_crt_heap_l1_1_0.dll_free]
mov rdx, qword [rbp - 0x40]
cmp rdx, 8
jb 0x14013a6a7
lea rdx, [rdx*2 + 2]
mov rcx, qword [rbp - 0x58]
mov rax, rcx
cmp rdx, 0x1000
jb 0x14013a6a2
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
ja 0x14013a78e
call fcn.14036c454
mov qword [rbp - 0x48], r14
mov qword [rbp - 0x40], r12
mov word [rbp - 0x58], r14w
lea rcx, [rsp + 0x50]
call fcn.14011a4c0
jmp 0x140139ec4
mov qword [r15], rsi
mov qword [r15 + 0x10], rsi
mov qword [r15 + 0x18], rsi
mov rsi, qword [rbp - 0x78]
lea rdi, [rsp + 0x78]
cmp qword [rbp - 0x70], 8
cmovae rdi, qword [rsp + 0x78]
cmp rsi, 8
jae 0x14013a6f4
movups xmm0, xmmword [rdi]
movups xmmword [r15], xmm0
mov rbx, r12
jmp 0x14013a72e
mov rbx, rsi
or rbx, 7
movabs rax, 0x7ffffffffffffffe
cmp rbx, rax
cmova rbx, rax
lea rdx, [rbx + 1]
mov rcx, r15
call fcn.140020710
mov qword [r15], rax
lea r8, [rsi*2 + 2]
mov rdx, rdi
mov rcx, rax
call sub.VCRUNTIME140.dll_memcpy
mov qword [r15 + 0x10], rsi
mov qword [r15 + 0x18], rbx
xor r14d, r14d
mov qword [r15 + 0x20], r14
mov qword [r15 + 0x28], r14
mov rcx, qword [rbp - 0x38]
call qword [sym.imp.api_ms_win_crt_heap_l1_1_0.dll_free]
mov rdx, qword [rbp - 0x40]
cmp rdx, 8
jb 0x14013a6a7
lea rdx, [rdx*2 + 2]
mov rcx, qword [rbp - 0x58]
mov rax, rcx
cmp rdx, 0x1000
jb 0x14013a6a2
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
jbe 0x14013a6a2
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
nop
lea rdx, [rbp - 0x28]
mov rcx, r15
call fcn.140010410
nop
mov rcx, qword [rbp - 8]
call qword [sym.imp.api_ms_win_crt_heap_l1_1_0.dll_free]
lea rcx, [rbp - 0x28]
call fcn.14000e160
nop
mov rcx, qword [rbp - 0x68]
call qword [sym.imp.api_ms_win_crt_heap_l1_1_0.dll_free]
mov rdx, qword [rbp - 0x70]
cmp rdx, 8
jb 0x140139f23
lea rdx, [rdx*2 + 2]
mov rcx, qword [rsp + 0x78]
mov rax, rcx
cmp rdx, 0x1000
jb 0x140139f1e
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
jbe 0x140139f1e
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
nop
call fcn.14000dc40
int3