Function at 0x787470
Capabilities:
Check if file exists

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x879886
mov eax, dword fs:[0]
push eax
sub esp, 0x374
mov eax, dword [0xa5e224]
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.00787370
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 0x7875fb
push eax
lea eax, [ebp - 0x30]
push eax
lea ecx, [ebp - 0x364]
call fcn.004d0c30
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.004d1340
test esi, esi
je 0x7876ef
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.00436e00
push dword [ebp - 0x18]
call fcn.00805aaa
mov edx, dword [ebp - 0x1c]
add esp, 4
cmp edx, 8
jb 0x7875dc
mov ecx, dword [ebp - 0x30]
lea edx, [edx*2 + 2]
mov eax, ecx
cmp edx, 0x1000
jb 0x7875d2
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x787ff7
push edx
push ecx
call fcn.00800125
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.00800392
mov esp, ebp
pop ebp
ret 4
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 2
je 0x78760f
cmp eax, 0x35
jne 0x7876f5
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.00805aaa
mov edx, dword [ebp - 0x5c]
add esp, 4
cmp edx, 8
jb 0x787693
mov ecx, dword [ebp - 0x70]
lea edx, [edx*2 + 2]
mov eax, ecx
cmp edx, 0x1000
jb 0x787689
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x787ff7
push edx
push ecx
call fcn.00800125
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.00805aaa
mov edx, dword [ebp - 0x1c]
add esp, 4
cmp edx, 8
jb 0x7875dc
mov ecx, dword [ebp - 0x30]
lea edx, [edx*2 + 2]
mov eax, ecx
cmp edx, 0x1000
jb 0x7875d2
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x787ff7
jmp 0x7875d2
mov esi, dword [ebp - 0x34c]
cmp dword [esi + 0x10], 0
je 0x78780f
push esi
lea ecx, [ebp - 0x90]
call fcn.004cb5a0
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.0078d2b0
mov edi, eax
lea eax, [ebp - 0xd0]
mov byte [ebp - 4], 3
push 3
push eax
call fcn.00788550
add esp, 0x14
cmp dword [eax + 0x14], 8
jb 0x78774e
mov eax, dword [eax]
movzx esi, word [eax]
lea ecx, [ebp - 0xd0]
call fcn.00436e00
push esi
lea eax, [ebp - 0xf0]
push edi
push eax
call fcn.00735d80
mov esi, eax
add esp, 0xc
lea eax, [ebp - 0x30]
cmp eax, esi
je 0x7877e2
mov edx, dword [ebp - 0x1c]
cmp edx, 8
jb 0x7877b0
mov ecx, dword [ebp - 0x30]
lea edx, [edx*2 + 2]
mov eax, ecx
cmp edx, 0x1000
jb 0x7877a6
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x787ffc
push edx
push ecx
call fcn.00800125
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.00436e00
lea ecx, [ebp - 0xb0]
call fcn.00436e00
lea ecx, [ebp - 0x90]
mov byte [ebp - 4], 1
call fcn.00436e00
mov esi, dword [ebp - 0x34c]
jmp 0x787826
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.00746e90
lea eax, [ebp - 0xb0]
mov byte [ebp - 4], 4
push eax
mov ecx, esi
call fcn.007872e0
push 1
push eax
lea ecx, [ebp - 0x380]
mov byte [ebp - 4], 5
call fcn.007471b0
lea ecx, [ebp - 0xb0]
call fcn.00436e00
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 0x787cf8
xor esi, esi
mov dword [ebp - 0x354], esi
cmp edi, eax
jb 0x7878f0
cmp dword [0xa5d6f8], 0
je 0x7878f0
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.0073cfd0
add esp, 0x14
cmp byte [0xea569c], 0
je 0x7878f0
mov byte [0xea569c], 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.00735a60
mov esi, eax
add esp, 0xc
lea eax, [ebp - 0x50]
cmp eax, esi
je 0x787987
mov edx, dword [ebp - 0x3c]
cmp edx, 8
jb 0x787955
mov ecx, dword [ebp - 0x50]
lea edx, [edx*2 + 2]
mov eax, ecx
cmp edx, 0x1000
jb 0x78794b
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x787ffc
push edx
push ecx
call fcn.00800125
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.00805aaa
mov edx, dword [ebp - 0x7c]
add esp, 4
cmp edx, 8
jb 0x7879cf
mov ecx, dword [ebp - 0x90]
lea edx, [edx*2 + 2]
mov eax, ecx
cmp edx, 0x1000
jb 0x7879c5
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x787ffc
push edx
push ecx
call fcn.00800125
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 0x787ab1
mov esi, dword [ebp - 0x358]
mov ecx, esi
push 1
push 0x2e
call fcn.00737ca0
test al, al
jne 0x787ab1
push 0x9bf220
mov ecx, esi
call fcn.007395d0
test eax, eax
je 0x787ab1
lea eax, [ebp - 0x90]
push 3
push eax
call fcn.00789e40
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 0x787a89
cmp dword [0xa5d6f8], 0
je 0x787a89
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.0073cfd0
add esp, 0x14
cmp byte [0xea569c], 0
je 0x787a89
mov byte [0xea569c], 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.00737ca0
mov byte [ebp - 0x341], 0
test al, al
je 0x787ab8
mov byte [ebp - 0x341], 1
mov eax, dword [ebp - 0x348]
mov dword [ebp - 4], 6
test al, 2
je 0x787b31
push dword [ebp - 0x78]
and eax, 0xfffffffd
mov dword [ebp - 0x348], eax
call fcn.00805aaa
mov edx, dword [ebp - 0x7c]
add esp, 4
cmp edx, 8
jb 0x787b1a
mov ecx, dword [ebp - 0x90]
lea edx, [edx*2 + 2]
mov eax, ecx
cmp edx, 0x1000
jb 0x787b10
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x787ffc
push edx
push ecx
call fcn.00800125
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 0x787c64
push 0x5c
lea ecx, [ebp - 0x50]
call fcn.004841b0
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 0x787b9b
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.008020c0
add esp, 0xc
xor eax, eax
mov word [edi + esi], ax
mov edi, dword [ebp - 0x350]
jmp 0x787ccc
cmp eax, 0x7ffffffe
ja 0x788001
mov esi, eax
or esi, 7
cmp esi, 0x7ffffffe
jbe 0x787bba
mov esi, SysReAllocString
jmp 0x787bd8
mov edx, ecx
mov eax, SysReAllocString
shr edx, 1
sub eax, edx
cmp ecx, eax
jbe 0x787bd0
mov esi, SysReAllocString
jmp 0x787bd8
lea eax, [edx + ecx]
cmp esi, eax
cmovb esi, eax
lea eax, [esi + 1]
push eax
lea ecx, [ebp - 0x30]
call fcn.00437720
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.008020c0
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 0x787c5f
mov ecx, dword [ebp - 0x30]
lea edx, [eax*2 + 2]
mov eax, ecx
cmp edx, 0x1000
jb 0x787c4a
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x787ff7
push edx
push ecx
call fcn.00800125
mov eax, dword [ebp - 0x350]
add esp, 8
mov dword [ebp - 0x30], eax
jmp 0x787ccc
mov dword [ebp - 0x30], ecx
jmp 0x787ccc
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 0x787e01
lea ecx, [ebp - 0x314]
lea edx, [ecx + 2]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x787c91
sub ecx, edx
lea eax, [ebp - 0x314]
sar ecx, 1
push ecx
push eax
lea ecx, [ebp - 0x30]
call fcn.00455b50
mov eax, dword [ebp - 0x34c]
dec eax
cmp edi, eax
jae 0x787cc5
push 0x5c
lea ecx, [ebp - 0x30]
call fcn.004841b0
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 0x787cf5
mov eax, dword [ebp - 0x378]
jmp 0x7878b1
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.00805aaa
mov edx, dword [ebp - 0x3c]
add esp, 4
cmp edx, 8
jb 0x787d80
mov ecx, dword [ebp - 0x50]
lea edx, [edx*2 + 2]
mov eax, ecx
cmp edx, 0x1000
jb 0x787d76
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x787ff7
push edx
push ecx
call fcn.00800125
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.00746fb0
push dword [ebp - 0x58]
call fcn.00805aaa
mov edx, dword [ebp - 0x5c]
add esp, 4
cmp edx, 8
jb 0x787fde
mov ecx, dword [ebp - 0x70]
lea edx, [edx*2 + 2]
mov eax, ecx
cmp edx, 0x1000
jb 0x787dde
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x787ff7
push edx
push ecx
call fcn.00800125
add esp, 8
mov dword [ebp - 0x60], 0
xor eax, eax
mov dword [ebp - 0x5c], 7
mov word [ebp - 0x70], ax
jmp 0x787597
inc edi
cmp edi, dword [ebp - 0x34c]
jae 0x787ef4
mov esi, edi
shl esi, 5
cmp edi, dword [ebp - 0x378]
jb 0x787e56
cmp dword [0xa5d6f8], 0
je 0x787e56
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.0073cfd0
add esp, 0x14
cmp byte [0xea569c], 0
je 0x787e56
mov byte [0xea569c], 0
int3
mov eax, dword [ebp - 0x374]
add eax, esi
push eax
lea eax, [ebp - 0x90]
push 0x5c
push eax
call fcn.00736020
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.00455b50
push dword [ebp - 0x78]
mov byte [ebp - 4], 6
call fcn.00805aaa
mov edx, dword [ebp - 0x7c]
add esp, 4
cmp edx, 8
jb 0x787ee4
mov ecx, dword [ebp - 0x90]
lea edx, [edx*2 + 2]
mov eax, ecx
cmp edx, 0x1000
jb 0x787eda
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x787ffc
push edx
push ecx
call fcn.00800125
add esp, 8
inc edi
add esi, 0x20
cmp edi, dword [ebp - 0x34c]
jb 0x787e13
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.00805aaa
mov edx, dword [ebp - 0x3c]
add esp, 4
cmp edx, 8
jb 0x787f7e
mov ecx, dword [ebp - 0x50]
lea edx, [edx*2 + 2]
mov eax, ecx
cmp edx, 0x1000
jb 0x787f74
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x787ff7
push edx
push ecx
call fcn.00800125
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.00746fb0
push dword [ebp - 0x58]
call fcn.00805aaa
mov edx, dword [ebp - 0x5c]
add esp, 4
cmp edx, 8
jb 0x787fde
mov ecx, dword [ebp - 0x70]
lea edx, [edx*2 + 2]
mov eax, ecx
cmp edx, 0x1000
jb 0x787fd4
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x787ff7
push edx
push ecx
call fcn.00800125
add esp, 8
xor eax, eax
mov dword [ebp - 0x60], 0
mov dword [ebp - 0x5c], 7
mov word [ebp - 0x70], ax
jmp 0x787597
call fcn.00805a59
call fcn.00805a59
call fcn.00437710
int3