Function at 0x787300
Capabilities:
Check if file exists

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x879666
mov eax, dword fs:[0]
push eax
sub esp, 0x374
mov eax, dword [0xa5d1d4]
xor eax, ebp
mov dword [ebp - 0x10], eax
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov esi, ecx
mov dword [ebp - 0x34c], esi
mov edi, dword [ebp + 8]
xor eax, eax
mov dword [ebp - 0x360], edi
mov dword [ebp - 0x368], eax
mov dword [ebp - 0x30], eax
mov dword [ebp - 0x35c], edi
mov dword [ebp - 0x348], eax
mov dword [ebp - 0x20], eax
mov dword [ebp - 0x1c], 7
mov word [ebp - 0x30], ax
mov dword [ebp - 0x18], eax
mov dword [ebp - 0x14], eax
push eax
mov dword [ebp - 4], eax
lea eax, [ebp - 0x70]
push eax
call fcn.00787200
cmp dword [ebp - 0x5c], 8
lea eax, [ebp - 0x70]
push 0
cmovae eax, dword [ebp - 0x70]
push 0
push eax
mov byte [ebp - 4], 1
call dword [sym.imp.KERNEL32.dll_GetLongPathNameW]
mov dword [ebp - 0x354], eax
test eax, eax
je 0x78748b
push eax
lea eax, [ebp - 0x30]
push eax
lea ecx, [ebp - 0x364]
call fcn.004d0af0
push dword [ebp - 0x354]
cmp dword [ebp - 0x5c], 8
lea ecx, [ebp - 0x70]
mov eax, dword [eax + 4]
cmovae ecx, dword [ebp - 0x70]
push dword [eax]
push ecx
call dword [sym.imp.KERNEL32.dll_GetLongPathNameW]
lea ecx, [ebp - 0x364]
mov esi, eax
call fcn.004d1200
test esi, esi
je 0x78757f
movups xmm0, xmmword [ebp - 0x30]
mov dword [edi], 0
lea ecx, [ebp - 0x70]
mov dword [edi + 0x10], 0
xor eax, eax
mov dword [edi + 0x14], 0
movups xmmword [edi], xmm0
mov word [ebp - 0x30], ax
movq xmm0, qword [ebp - 0x20]
movq qword [edi + 0x10], xmm0
mov dword [ebp - 0x20], 0
mov dword [ebp - 0x1c], 7
mov dword [edi + 0x18], eax
mov dword [edi + 0x1c], eax
call fcn.00436d10
push dword [ebp - 0x18]
call fcn.008058ea
mov edx, dword [ebp - 0x1c]
add esp, 4
cmp edx, 8
jb 0x78746c
mov ecx, dword [ebp - 0x30]
lea edx, [edx*2 + 2]
mov eax, ecx
cmp edx, 0x1000
jb 0x787462
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x787e87
push edx
push ecx
call fcn.007fff65
add esp, 8
mov eax, edi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.008001d2
mov esp, ebp
pop ebp
ret 4
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 2
je 0x78749f
cmp eax, 0x35
jne 0x787585
movups xmm0, xmmword [ebp - 0x70]
mov dword [edi], 0
xor eax, eax
push dword [ebp - 0x58]
mov dword [edi + 0x10], 0
mov dword [edi + 0x14], 0
movups xmmword [edi], xmm0
mov word [ebp - 0x70], ax
movq xmm0, qword [ebp - 0x60]
movq qword [edi + 0x10], xmm0
mov dword [ebp - 0x60], 0
mov dword [ebp - 0x5c], 7
mov dword [edi + 0x18], eax
mov dword [edi + 0x1c], eax
call fcn.008058ea
mov edx, dword [ebp - 0x5c]
add esp, 4
cmp edx, 8
jb 0x787523
mov ecx, dword [ebp - 0x70]
lea edx, [edx*2 + 2]
mov eax, ecx
cmp edx, 0x1000
jb 0x787519
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x787e87
push edx
push ecx
call fcn.007fff65
add esp, 8
push dword [ebp - 0x18]
xor eax, eax
mov dword [ebp - 0x60], 0
mov dword [ebp - 0x5c], 7
mov word [ebp - 0x70], ax
call fcn.008058ea
mov edx, dword [ebp - 0x1c]
add esp, 4
cmp edx, 8
jb 0x78746c
mov ecx, dword [ebp - 0x30]
lea edx, [edx*2 + 2]
mov eax, ecx
cmp edx, 0x1000
jb 0x787462
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x787e87
jmp 0x787462
mov esi, dword [ebp - 0x34c]
cmp dword [esi + 0x10], 0
je 0x78769f
push esi
lea ecx, [ebp - 0x90]
call fcn.004cb460
mov eax, 4
mov dword [ebp - 0x348], eax
push 3
lea eax, [ebp - 0x90]
mov byte [ebp - 4], 2
push eax
lea eax, [ebp - 0xb0]
push eax
call fcn.0078d130
mov edi, eax
lea eax, [ebp - 0xd0]
mov byte [ebp - 4], 3
push 3
push eax
call fcn.007883e0
add esp, 0x14
cmp dword [eax + 0x14], 8
jb 0x7875de
mov eax, dword [eax]
movzx esi, word [eax]
lea ecx, [ebp - 0xd0]
call fcn.00436d10
push esi
lea eax, [ebp - 0xf0]
push edi
push eax
call fcn.00735c40
mov esi, eax
add esp, 0xc
lea eax, [ebp - 0x30]
cmp eax, esi
je 0x787672
mov edx, dword [ebp - 0x1c]
cmp edx, 8
jb 0x787640
mov ecx, dword [ebp - 0x30]
lea edx, [edx*2 + 2]
mov eax, ecx
cmp edx, 0x1000
jb 0x787636
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x787e8c
push edx
push ecx
call fcn.007fff65
add esp, 8
mov dword [ebp - 0x20], 0
xor eax, eax
mov dword [ebp - 0x1c], 7
mov word [ebp - 0x30], ax
movups xmm0, xmmword [esi]
movups xmmword [ebp - 0x30], xmm0
movq xmm0, qword [esi + 0x10]
movq qword [ebp - 0x20], xmm0
mov dword [esi + 0x10], eax
mov dword [esi + 0x14], 7
mov word [esi], ax
lea ecx, [ebp - 0xf0]
call fcn.00436d10
lea ecx, [ebp - 0xb0]
call fcn.00436d10
lea ecx, [ebp - 0x90]
mov byte [ebp - 4], 1
call fcn.00436d10
mov esi, dword [ebp - 0x34c]
jmp 0x7876b6
cmp dword [ebp - 0x1c], 8
lea eax, [ebp - 0x30]
mov dword [ebp - 0x20], 0
cmovae eax, dword [ebp - 0x30]
xor ecx, ecx
mov word [eax], cx
lea eax, [esi + 0x20]
push eax
lea ecx, [ebp - 0x380]
call fcn.00746d50
lea eax, [ebp - 0xb0]
mov byte [ebp - 4], 4
push eax
mov ecx, esi
call fcn.00787170
push 1
push eax
lea ecx, [ebp - 0x380]
mov byte [ebp - 4], 5
call fcn.00747070
lea ecx, [ebp - 0xb0]
call fcn.00436d10
xor eax, eax
mov dword [ebp - 0x50], 0
xor ecx, ecx
mov dword [ebp - 0x40], 0
mov dword [ebp - 0x3c], 7
mov word [ebp - 0x50], ax
mov dword [ebp - 0x38], ecx
mov dword [ebp - 0x34], eax
mov eax, dword [ebp - 0x378]
xor edi, edi
mov edx, eax
mov byte [ebp - 4], 6
mov dword [ebp - 0x34c], edx
mov dword [ebp - 0x350], edi
test edx, edx
je 0x787b88
xor esi, esi
mov dword [ebp - 0x354], esi
cmp edi, eax
jb 0x787780
cmp dword [0xa5c6a0], 0
je 0x787780
push str.wxArrayString:_index_out_of_bounds
push str.nIndex___m_nCount
push str.wxArrayString::Item
push 0xd7
push str.C:_vcpkg_buildtreeswxwidgets_src_v3.2.3_90b1eb06ca.cleanincludewx_arrstr.h
call fcn.0073ce90
add esp, 0x14
cmp byte [0xea464c], 0
je 0x787780
mov byte [0xea464c], 0
int3
mov eax, dword [ebp - 0x374]
add eax, esi
push eax
mov dword [ebp - 0x358], eax
lea eax, [ebp - 0x30]
push eax
lea eax, [ebp - 0x90]
push eax
call fcn.00735920
mov esi, eax
add esp, 0xc
lea eax, [ebp - 0x50]
cmp eax, esi
je 0x787817
mov edx, dword [ebp - 0x3c]
cmp edx, 8
jb 0x7877e5
mov ecx, dword [ebp - 0x50]
lea edx, [edx*2 + 2]
mov eax, ecx
cmp edx, 0x1000
jb 0x7877db
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x787e8c
push edx
push ecx
call fcn.007fff65
add esp, 8
mov dword [ebp - 0x40], 0
xor eax, eax
mov dword [ebp - 0x3c], 7
mov word [ebp - 0x50], ax
movups xmm0, xmmword [esi]
movups xmmword [ebp - 0x50], xmm0
movq xmm0, qword [esi + 0x10]
movq qword [ebp - 0x40], xmm0
mov dword [esi + 0x10], eax
mov dword [esi + 0x14], 7
mov word [esi], ax
push dword [ebp - 0x78]
call fcn.008058ea
mov edx, dword [ebp - 0x7c]
add esp, 4
cmp edx, 8
jb 0x78785f
mov ecx, dword [ebp - 0x90]
lea edx, [edx*2 + 2]
mov eax, ecx
cmp edx, 0x1000
jb 0x787855
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x787e8c
push edx
push ecx
call fcn.007fff65
add esp, 8
xor eax, eax
mov dword [ebp - 0x80], 0
mov dword [ebp - 0x7c], 7
mov word [ebp - 0x90], ax
cmp dword [ebp - 0x40], eax
je 0x787941
mov esi, dword [ebp - 0x358]
mov ecx, esi
push 1
push 0x2e
call fcn.00737b60
test al, al
jne 0x787941
push 0x9be1a0
mov ecx, esi
call fcn.00739490
test eax, eax
je 0x787941
lea eax, [ebp - 0x90]
push 3
push eax
call fcn.00789cd0
add esp, 8
mov esi, eax
mov eax, dword [ebp - 0x348]
or eax, 2
mov byte [ebp - 4], 7
cmp dword [ebp - 0x40], 0
mov dword [ebp - 0x348], eax
mov dword [ebp - 0x368], eax
jne 0x787919
cmp dword [0xa5c6a0], 0
je 0x787919
push str.wxString:_index_out_of_bounds
push str._empty__
push str.wxString::Last
push 0x60c
push str.C:_vcpkg_buildtreeswxwidgets_src_v3.2.3_90b1eb06ca.cleanincludewx_string.h
call fcn.0073ce90
add esp, 0x14
cmp byte [0xea464c], 0
je 0x787919
mov byte [0xea464c], 0
int3
cmp dword [ebp - 0x3c], 8
lea ecx, [ebp - 0x50]
mov eax, dword [ebp - 0x40]
cmovae ecx, dword [ebp - 0x50]
push 1
movzx eax, word [ecx + eax*2 - 2]
mov ecx, esi
push eax
call fcn.00737b60
mov byte [ebp - 0x341], 0
test al, al
je 0x787948
mov byte [ebp - 0x341], 1
mov eax, dword [ebp - 0x348]
mov dword [ebp - 4], 6
test al, 2
je 0x7879c1
push dword [ebp - 0x78]
and eax, 0xfffffffd
mov dword [ebp - 0x348], eax
call fcn.008058ea
mov edx, dword [ebp - 0x7c]
add esp, 4
cmp edx, 8
jb 0x7879aa
mov ecx, dword [ebp - 0x90]
lea edx, [edx*2 + 2]
mov eax, ecx
cmp edx, 0x1000
jb 0x7879a0
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x787e8c
push edx
push ecx
call fcn.007fff65
add esp, 8
xor eax, eax
mov dword [ebp - 0x80], 0
mov dword [ebp - 0x7c], 7
mov word [ebp - 0x90], ax
cmp byte [ebp - 0x341], 0
je 0x787af4
push 0x5c
lea ecx, [ebp - 0x50]
call fcn.00484080
cmp dword [ebp - 0x3c], 8
lea edx, [ebp - 0x50]
mov eax, dword [ebp - 0x40]
cmovae edx, dword [ebp - 0x50]
mov ecx, dword [ebp - 0x1c]
mov dword [ebp - 0x36c], edx
mov dword [ebp - 0x358], eax
mov dword [ebp - 0x360], ecx
cmp eax, ecx
ja 0x787a2b
lea esi, [eax + eax]
mov dword [ebp - 0x20], eax
cmp ecx, 8
lea edi, [ebp - 0x30]
push esi
cmovae edi, dword [ebp - 0x30]
push edx
push edi
call fcn.00801f00
add esp, 0xc
xor eax, eax
mov word [edi + esi], ax
mov edi, dword [ebp - 0x350]
jmp 0x787b5c
cmp eax, 0x7ffffffe
ja 0x787e91
mov esi, eax
or esi, 7
cmp esi, 0x7ffffffe
jbe 0x787a4a
mov esi, SysReAllocString
jmp 0x787a68
mov edx, ecx
mov eax, SysReAllocString
shr edx, 1
sub eax, edx
cmp ecx, eax
jbe 0x787a60
mov esi, SysReAllocString
jmp 0x787a68
lea eax, [edx + ecx]
cmp esi, eax
cmovb esi, eax
lea eax, [esi + 1]
push eax
lea ecx, [ebp - 0x30]
call fcn.00437630
mov ecx, eax
mov dword [ebp - 0x1c], esi
mov eax, dword [ebp - 0x358]
mov dword [ebp - 0x350], ecx
mov dword [ebp - 0x20], eax
lea esi, [eax + eax]
push esi
push dword [ebp - 0x36c]
push ecx
call fcn.00801f00
mov ecx, dword [ebp - 0x350]
xor eax, eax
add esp, 0xc
mov word [ecx + esi], ax
mov eax, dword [ebp - 0x360]
cmp eax, 8
jb 0x787aef
mov ecx, dword [ebp - 0x30]
lea edx, [eax*2 + 2]
mov eax, ecx
cmp edx, 0x1000
jb 0x787ada
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x787e87
push edx
push ecx
call fcn.007fff65
mov eax, dword [ebp - 0x350]
add esp, 8
mov dword [ebp - 0x30], eax
jmp 0x787b5c
mov dword [ebp - 0x30], ecx
jmp 0x787b5c
cmp dword [ebp - 0x3c], 8
lea ecx, [ebp - 0x340]
lea eax, [ebp - 0x50]
cmovae eax, dword [ebp - 0x50]
push ecx
push eax
call dword [sym.imp.KERNEL32.dll_FindFirstFileW]
mov esi, eax
cmp esi, 0xffffffff
je 0x787c91
lea ecx, [ebp - 0x314]
lea edx, [ecx + 2]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x787b21
sub ecx, edx
lea eax, [ebp - 0x314]
sar ecx, 1
push ecx
push eax
lea ecx, [ebp - 0x30]
call fcn.00455a40
mov eax, dword [ebp - 0x34c]
dec eax
cmp edi, eax
jae 0x787b55
push 0x5c
lea ecx, [ebp - 0x30]
call fcn.00484080
push esi
call dword [sym.imp.KERNEL32.dll_FindClose]
mov esi, dword [ebp - 0x354]
inc edi
add esi, 0x20
mov dword [ebp - 0x350], edi
mov dword [ebp - 0x354], esi
cmp edi, dword [ebp - 0x34c]
jae 0x787b85
mov eax, dword [ebp - 0x378]
jmp 0x787741
mov ecx, dword [ebp - 0x38]
mov edi, dword [ebp - 0x35c]
xor eax, eax
movups xmm0, xmmword [ebp - 0x30]
push ecx
mov word [ebp - 0x30], ax
mov dword [edi], 0
mov dword [edi + 0x10], 0
mov dword [edi + 0x14], 0
movups xmmword [edi], xmm0
movq xmm0, qword [ebp - 0x20]
movq qword [edi + 0x10], xmm0
mov dword [ebp - 0x20], 0
mov dword [ebp - 0x1c], 7
mov dword [edi + 0x18], eax
mov dword [edi + 0x1c], eax
call fcn.008058ea
mov edx, dword [ebp - 0x3c]
add esp, 4
cmp edx, 8
jb 0x787c10
mov ecx, dword [ebp - 0x50]
lea edx, [edx*2 + 2]
mov eax, ecx
cmp edx, 0x1000
jb 0x787c06
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x787e87
push edx
push ecx
call fcn.007fff65
add esp, 8
xor eax, eax
mov dword [ebp - 0x40], 0
lea ecx, [ebp - 0x380]
mov dword [ebp - 0x3c], 7
mov word [ebp - 0x50], ax
call fcn.00746e70
push dword [ebp - 0x58]
call fcn.008058ea
mov edx, dword [ebp - 0x5c]
add esp, 4
cmp edx, 8
jb 0x787e6e
mov ecx, dword [ebp - 0x70]
lea edx, [edx*2 + 2]
mov eax, ecx
cmp edx, 0x1000
jb 0x787c6e
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x787e87
push edx
push ecx
call fcn.007fff65
add esp, 8
mov dword [ebp - 0x60], 0
xor eax, eax
mov dword [ebp - 0x5c], 7
mov word [ebp - 0x70], ax
jmp 0x787427
inc edi
cmp edi, dword [ebp - 0x34c]
jae 0x787d84
mov esi, edi
shl esi, 5
cmp edi, dword [ebp - 0x378]
jb 0x787ce6
cmp dword [0xa5c6a0], 0
je 0x787ce6
push str.wxArrayString:_index_out_of_bounds
push str.nIndex___m_nCount
push str.wxArrayString::Item
push 0xd7
push str.C:_vcpkg_buildtreeswxwidgets_src_v3.2.3_90b1eb06ca.cleanincludewx_arrstr.h
call fcn.0073ce90
add esp, 0x14
cmp byte [0xea464c], 0
je 0x787ce6
mov byte [0xea464c], 0
int3
mov eax, dword [ebp - 0x374]
add eax, esi
push eax
lea eax, [ebp - 0x90]
push 0x5c
push eax
call fcn.00735ee0
or dword [ebp - 0x348], 0x10
add esp, 0xc
cmp dword [ebp - 0x7c], 8
lea eax, [ebp - 0x90]
push dword [ebp - 0x80]
cmovae eax, dword [ebp - 0x90]
lea ecx, [ebp - 0x50]
push eax
mov byte [ebp - 4], 8
call fcn.00455a40
push dword [ebp - 0x78]
mov byte [ebp - 4], 6
call fcn.008058ea
mov edx, dword [ebp - 0x7c]
add esp, 4
cmp edx, 8
jb 0x787d74
mov ecx, dword [ebp - 0x90]
lea edx, [edx*2 + 2]
mov eax, ecx
cmp edx, 0x1000
jb 0x787d6a
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x787e8c
push edx
push ecx
call fcn.007fff65
add esp, 8
inc edi
add esi, 0x20
cmp edi, dword [ebp - 0x34c]
jb 0x787ca3
mov edi, dword [ebp - 0x35c]
xor eax, eax
movups xmm0, xmmword [ebp - 0x50]
mov word [ebp - 0x50], ax
push dword [ebp - 0x38]
mov dword [edi], 0
mov dword [edi + 0x10], 0
mov dword [edi + 0x14], 0
movups xmmword [edi], xmm0
movq xmm0, qword [ebp - 0x40]
movq qword [edi + 0x10], xmm0
mov dword [ebp - 0x40], 0
mov dword [ebp - 0x3c], 7
mov dword [edi + 0x18], eax
mov dword [edi + 0x1c], eax
call fcn.008058ea
mov edx, dword [ebp - 0x3c]
add esp, 4
cmp edx, 8
jb 0x787e0e
mov ecx, dword [ebp - 0x50]
lea edx, [edx*2 + 2]
mov eax, ecx
cmp edx, 0x1000
jb 0x787e04
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x787e87
push edx
push ecx
call fcn.007fff65
add esp, 8
xor eax, eax
mov dword [ebp - 0x40], 0
lea ecx, [ebp - 0x380]
mov dword [ebp - 0x3c], 7
mov word [ebp - 0x50], ax
call fcn.00746e70
push dword [ebp - 0x58]
call fcn.008058ea
mov edx, dword [ebp - 0x5c]
add esp, 4
cmp edx, 8
jb 0x787e6e
mov ecx, dword [ebp - 0x70]
lea edx, [edx*2 + 2]
mov eax, ecx
cmp edx, 0x1000
jb 0x787e64
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x787e87
push edx
push ecx
call fcn.007fff65
add esp, 8
xor eax, eax
mov dword [ebp - 0x60], 0
mov dword [ebp - 0x5c], 7
mov word [ebp - 0x70], ax
jmp 0x787427
call fcn.00805899
call fcn.00805899
call fcn.00437620
int3