Function at 0x4500a0
Capabilities:
Check if file exists

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x519746
mov eax, dword fs:[0]
push eax
sub esp, 0x360
mov eax, dword [0x578bd4]
xor eax, ebp
mov dword [ebp - 0x10], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov edi, ecx
mov eax, dword [ebp + 8]
xor ebx, ebx
mov dword [ebp - 0x350], eax
mov dword [ebp - 0x358], ebx
mov dword [ebp - 0x34c], eax
xor eax, eax
mov dword [ebp - 0x30], ebx
mov dword [ebp - 0x20], ebx
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 - 0x90]
push eax
call fcn.0044ffa0
cmp dword [ebp - 0x7c], 8
lea eax, [ebp - 0x90]
push ebx
cmovae eax, dword [ebp - 0x90]
push ebx
push eax
mov byte [ebp - 4], 1
call dword [sym.imp.KERNEL32.dll_GetLongPathNameW]
mov esi, eax
test esi, esi
je 0x4501fc
push esi
lea eax, [ebp - 0x30]
push eax
lea ecx, [ebp - 0x354]
call fcn.0044e380
cmp dword [ebp - 0x7c], 8
lea ecx, [ebp - 0x90]
push esi
cmovae ecx, dword [ebp - 0x90]
mov eax, dword [eax + 4]
push dword [eax]
push ecx
call dword [sym.imp.KERNEL32.dll_GetLongPathNameW]
lea ecx, [ebp - 0x354]
mov esi, eax
call fcn.0043d600
test esi, esi
je 0x450214
mov esi, dword [ebp - 0x34c]
lea eax, [ebp - 0x30]
push eax
mov ecx, esi
call fcn.00416dc0
lea ecx, [ebp - 0x90]
call fcn.00418510
push dword [ebp - 0x18]
call fcn.004e0f9d
mov ecx, dword [ebp - 0x1c]
add esp, 4
cmp ecx, 8
jb 0x4501dc
mov edx, dword [ebp - 0x30]
lea ecx, [ecx*2 + 2]
mov eax, edx
cmp ecx, 0x1000
jb 0x4501d2
mov edx, dword [eax - 4]
add ecx, 0x23
sub eax, edx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x450797
push ecx
push edx
call fcn.004c8cae
add esp, 8
mov eax, esi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.004c9126
mov esp, ebp
pop ebp
ret 4
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 2
je 0x450735
cmp eax, 0x35
je 0x450735
cmp dword [edi + 0x10], 0
je 0x4502ce
push edi
lea ecx, [ebp - 0x70]
call fcn.00416dc0
mov ebx, 0x10
push 3
lea eax, [ebp - 0x70]
mov byte [ebp - 4], 2
push eax
lea eax, [ebp - 0xb0]
push eax
call fcn.00454b60
mov dword [ebp - 0x350], eax
lea eax, [ebp - 0xd0]
mov byte [ebp - 4], 3
push 3
push eax
call fcn.00450d10
add esp, 0x14
cmp dword [eax + 0x14], 8
jb 0x450265
mov eax, dword [eax]
movzx esi, word [eax]
lea ecx, [ebp - 0xd0]
call fcn.00418510
push esi
push dword [ebp - 0x350]
lea eax, [ebp - 0xf0]
push eax
call fcn.0043dd50
add esp, 0xc
lea ecx, [ebp - 0x30]
mov byte [ebp - 4], 4
cmp ecx, eax
je 0x4502aa
cmp dword [eax + 0x14], 8
mov ecx, eax
jb 0x45029e
mov ecx, dword [eax]
push dword [eax + 0x10]
push ecx
lea ecx, [ebp - 0x30]
call fcn.00420000
lea ecx, [ebp - 0xf0]
call fcn.00418510
lea ecx, [ebp - 0xb0]
call fcn.00418510
lea ecx, [ebp - 0x70]
mov byte [ebp - 4], 1
call fcn.00418510
jmp 0x4502e5
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, [edi + 0x20]
push eax
lea ecx, [ebp - 0x36c]
call fcn.00445fc0
lea eax, [ebp - 0xb0]
mov byte [ebp - 4], 5
push eax
mov ecx, edi
call fcn.0044ff10
push 1
push eax
lea ecx, [ebp - 0x36c]
mov byte [ebp - 4], 6
call fcn.00446370
lea ecx, [ebp - 0xb0]
call fcn.00418510
xor eax, eax
mov dword [ebp - 0x50], 0
mov dword [ebp - 0x40], 0
mov dword [ebp - 0x3c], 7
mov word [ebp - 0x50], ax
mov dword [ebp - 0x38], eax
mov dword [ebp - 0x34], eax
mov eax, dword [ebp - 0x364]
xor esi, esi
mov ecx, eax
mov byte [ebp - 4], 7
mov dword [ebp - 0x348], ecx
test ecx, ecx
je 0x4506f5
xor edi, edi
mov dword [ebp - 0x350], edi
cmp esi, eax
jb 0x4503a7
cmp dword [0x57857c], 0
je 0x4503a7
push str.wxArrayString:_index_out_of_bounds
push str.nIndex___m_nCount
push str.wxArrayString::Item
push 0xd7
push str.D:wxWidgets_3.2.0includewx_arrstr.h
call fcn.0045f380
add esp, 0x14
cmp byte [0x57c0ac], 0
je 0x4503a7
mov byte [0x57c0ac], 0
int3
add edi, dword [ebp - 0x360]
lea eax, [ebp - 0x30]
push edi
push eax
lea eax, [ebp - 0x70]
push eax
call fcn.0043da10
add esp, 0xc
lea ecx, [ebp - 0x50]
mov byte [ebp - 4], 8
cmp ecx, eax
je 0x4503df
cmp dword [eax + 0x14], 8
mov ecx, eax
jb 0x4503d3
mov ecx, dword [eax]
push dword [eax + 0x10]
push ecx
lea ecx, [ebp - 0x50]
call fcn.00420000
push dword [ebp - 0x58]
mov byte [ebp - 4], 7
call fcn.004e0f9d
mov ecx, dword [ebp - 0x5c]
add esp, 4
cmp ecx, 8
jb 0x450428
mov edx, dword [ebp - 0x70]
lea ecx, [ecx*2 + 2]
mov eax, edx
cmp ecx, 0x1000
jb 0x45041e
mov edx, dword [eax - 4]
add ecx, 0x23
sub eax, edx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x450797
push ecx
push edx
call fcn.004c8cae
add esp, 8
xor eax, eax
mov dword [ebp - 0x60], 0
mov dword [ebp - 0x5c], 7
mov word [ebp - 0x70], ax
cmp dword [ebp - 0x40], eax
je 0x4504f5
push 1
push 0x2e
mov ecx, edi
call fcn.0043fbe0
test al, al
jne 0x4504f5
push 0x53074c
mov ecx, edi
call fcn.00440f90
test eax, eax
je 0x4504f5
lea eax, [ebp - 0xb0]
push 3
push eax
call fcn.00451a80
add esp, 8
mov edi, eax
or ebx, 2
mov byte [ebp - 4], 9
cmp dword [ebp - 0x40], 0
mov dword [ebp - 0x358], ebx
jne 0x4504cd
cmp dword [0x57857c], 0
je 0x4504cd
push str.wxString:_index_out_of_bounds
push str._empty__
push str.wxString::Last
push 0x5e1
push str.D:wxWidgets_3.2.0includewx_string.h
call fcn.0045f380
add esp, 0x14
cmp byte [0x57c0ac], 0
je 0x4504cd
mov byte [0x57c0ac], 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, edi
push eax
call fcn.0043fbe0
mov byte [ebp - 0x341], 0
test al, al
je 0x4504fc
mov byte [ebp - 0x341], 1
mov dword [ebp - 4], 7
test bl, 2
je 0x450516
lea ecx, [ebp - 0xb0]
and ebx, 0xfffffffd
call fcn.00418510
cmp byte [ebp - 0x341], 0
je 0x450542
push 0x5c
lea ecx, [ebp - 0x50]
call fcn.0043e0c0
cmp dword [ebp - 0x3c], 8
lea eax, [ebp - 0x50]
push dword [ebp - 0x40]
cmovae eax, dword [ebp - 0x50]
lea ecx, [ebp - 0x30]
push eax
call fcn.00420000
jmp 0x4505ab
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 edi, eax
cmp edi, 0xffffffff
je 0x4505d2
lea ecx, [ebp - 0x314]
lea edx, [ecx + 2]
nop dword [eax + eax]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x450570
sub ecx, edx
lea eax, [ebp - 0x314]
sar ecx, 1
push ecx
push eax
lea ecx, [ebp - 0x30]
call fcn.0041fe10
mov eax, dword [ebp - 0x348]
dec eax
cmp esi, eax
jae 0x4505a4
push 0x5c
lea ecx, [ebp - 0x30]
call fcn.0043e0c0
push edi
call dword [sym.imp.KERNEL32.dll_FindClose]
mov edi, dword [ebp - 0x350]
inc esi
add edi, 0x20
mov dword [ebp - 0x350], edi
cmp esi, dword [ebp - 0x348]
jae 0x4506f5
mov eax, dword [ebp - 0x364]
jmp 0x450368
inc esi
cmp esi, dword [ebp - 0x348]
jae 0x4506b5
mov edi, esi
shl edi, 5
cmp esi, dword [ebp - 0x364]
jb 0x450627
cmp dword [0x57857c], 0
je 0x450627
push str.wxArrayString:_index_out_of_bounds
push str.nIndex___m_nCount
push str.wxArrayString::Item
push 0xd7
push str.D:wxWidgets_3.2.0includewx_arrstr.h
call fcn.0045f380
add esp, 0x14
cmp byte [0x57c0ac], 0
je 0x450627
mov byte [0x57c0ac], 0
int3
mov eax, dword [ebp - 0x360]
add eax, edi
push eax
lea eax, [ebp - 0x70]
push 0x5c
push eax
call fcn.0043e010
add esp, 0xc
or ebx, 4
cmp dword [ebp - 0x5c], 8
lea eax, [ebp - 0x70]
push dword [ebp - 0x60]
cmovae eax, dword [ebp - 0x70]
lea ecx, [ebp - 0x50]
push eax
mov byte [ebp - 4], 0xa
call fcn.0041fe10
push dword [ebp - 0x58]
mov byte [ebp - 4], 7
call fcn.004e0f9d
mov ecx, dword [ebp - 0x5c]
add esp, 4
cmp ecx, 8
jb 0x4506a5
mov edx, dword [ebp - 0x70]
lea ecx, [ecx*2 + 2]
mov eax, edx
cmp ecx, 0x1000
jb 0x45069b
mov edx, dword [eax - 4]
add ecx, 0x23
sub eax, edx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x450797
push ecx
push edx
call fcn.004c8cae
add esp, 8
inc esi
add edi, 0x20
cmp esi, dword [ebp - 0x348]
jb 0x4505e4
mov ecx, dword [ebp - 0x34c]
lea eax, [ebp - 0x50]
push eax
call fcn.00416dc0
lea ecx, [ebp - 0x50]
call fcn.00418510
lea ecx, [ebp - 0x36c]
call fcn.004460f0
lea ecx, [ebp - 0x90]
call fcn.00418510
lea ecx, [ebp - 0x30]
call fcn.00418510
mov eax, dword [ebp - 0x34c]
jmp 0x4501de
mov ecx, dword [ebp - 0x34c]
lea eax, [ebp - 0x30]
push eax
call fcn.00416dc0
lea ecx, [ebp - 0x50]
call fcn.00418510
lea ecx, [ebp - 0x36c]
call fcn.004460f0
lea ecx, [ebp - 0x90]
call fcn.00418510
lea ecx, [ebp - 0x30]
call fcn.00418510
mov eax, dword [ebp - 0x34c]
jmp 0x4501de
mov esi, dword [ebp - 0x34c]
lea eax, [ebp - 0x90]
push eax
mov ecx, esi
call fcn.00416dc0
lea ecx, [ebp - 0x90]
call fcn.00418510
push dword [ebp - 0x18]
call fcn.004e0f9d
mov ecx, dword [ebp - 0x1c]
add esp, 4
cmp ecx, 8
jb 0x4501dc
mov edx, dword [ebp - 0x30]
lea ecx, [ecx*2 + 2]
mov eax, edx
cmp ecx, 0x1000
jb 0x4501d2
mov edx, dword [eax - 4]
add ecx, 0x23
sub eax, edx
add eax, 0xfffffffc
cmp eax, 0x1f
jbe 0x4501d2
call fcn.004ce51f
int3