Function at 0x409600
Capabilities:
Check if file exists

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x49c953
mov eax, dword fs:[0]
push eax
sub esp, 0x5bc
mov eax, dword [0x4c20f4]
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 - 0x5c8], esi
mov dword [ebp - 0x5c0], esi
mov dword [ebp - 0x5c0], esi
mov dword [ebp - 4], 0
lea eax, [ebp + 8]
cmp dword [ebp + 0x1c], 0x10
cmovae eax, dword [ebp + 8]
push eax
call dword [sym.imp.SHLWAPI.dll_PathFileExistsA]
test eax, eax
jne 0x4096ca
push eax
mov dword [esi], eax
mov ecx, esi
mov dword [esi + 0x10], eax
mov dword [esi + 0x14], 0xf
push 0x4baf0b
mov byte [esi], al
call fcn.00406bb0
mov edx, dword [ebp + 0x1c]
cmp edx, 0x10
jb 0x4096ad
mov ecx, dword [ebp + 8]
inc edx
mov eax, ecx
cmp edx, 0x1000
jb 0x4096a3
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x409a04
push edx
push ecx
call fcn.00471ddf
add esp, 8
mov eax, esi
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.00471b4b
mov esp, ebp
pop ebp
ret
mov dword [ebp - 0x4a8], 0
mov dword [ebp - 0x498], 0
mov dword [ebp - 0x494], 0xf
mov byte [ebp - 0x4a8], 0
lea eax, [ebp - 0x504]
mov byte [ebp - 4], 1
push eax
call fcn.004168b0
push 0xb8
lea eax, [ebp - 0x5bc]
push 0
push eax
call fcn.00474010
cmp dword [ebp + 0x1c], 0x10
lea eax, [ebp + 8]
lea ecx, [ebp - 0x5bc]
cmovae eax, dword [ebp + 8]
add esp, 8
push 0x20
push eax
call fcn.00404890
mov eax, dword [ebp - 0x5bc]
mov eax, dword [eax + 4]
mov dword [ebp + eax - method.std::basic_ifstream_char__struct_std::char_traits_char__.virtual_0], vtable.std::basic_ifstream_char__struct_std::char_traits_char__.0
mov eax, dword [ebp - 0x5bc]
mov ecx, dword [eax + 4]
lea eax, [ecx - 0x70]
mov dword [ebp + ecx - 0x5c0], eax
mov byte [ebp - 4], 2
mov eax, dword [ebp - 0x5bc]
mov eax, dword [eax + 4]
test byte [ebp + eax - 0x5b0], 1
jne 0x4097c4
nop dword [eax]
sub esp, 8
lea eax, [ebp - 0x490]
lea ecx, [ebp - 0x5bc]
push eax
call fcn.00410210
cmp dword [ebp - 0x5b0], 0
jl 0x4097b1
mov eax, dword [ebp - 0x5b4]
jg 0x40979a
test eax, eax
je 0x4097b1
push eax
lea eax, [ebp - 0x490]
push eax
lea eax, [ebp - 0x504]
push eax
call fcn.004168f0
add esp, 0xc
mov eax, dword [ebp - 0x5bc]
mov eax, dword [eax + 4]
test byte [ebp + eax - 0x5b0], 1
je 0x409770
lea ecx, [ebp - 0x5ac]
call fcn.00406390
test eax, eax
jne 0x4097fe
mov eax, dword [ebp - 0x5bc]
lea ecx, [ebp - 0x5bc]
push 0
mov eax, dword [eax + 4]
add ecx, eax
xor eax, eax
cmp dword [ecx + 0x38], eax
sete al
lea eax, [eax*4 + 2]
or eax, dword [ecx + 0xc]
push eax
call fcn.004022b0
lea eax, [ebp - 0x504]
push eax
lea eax, [ebp - 0x90]
push eax
call fcn.00416790
add esp, 8
xor eax, eax
mov dword [ebp - 0x5c4], eax
nop dword [eax]
movzx eax, byte [ebp + eax - 0x90]
push eax
lea eax, [ebp - 0x50]
push str._02X
push eax
call fcn.004017f0
lea esi, [ebp - 0x50]
add esp, 0xc
lea ecx, [esi + 1]
mov al, byte [esi]
inc esi
test al, al
jne 0x409840
mov edx, dword [ebp - 0x494]
sub esi, ecx
mov ecx, dword [ebp - 0x498]
mov eax, edx
sub eax, ecx
push esi
cmp esi, eax
ja 0x40988c
lea eax, [ecx + esi]
cmp edx, 0x10
mov dword [ebp - 0x498], eax
lea edi, [ebp - 0x4a8]
cmovae edi, dword [ebp - 0x4a8]
lea eax, [ebp - 0x50]
add edi, ecx
push eax
push edi
call fcn.00473a90
add esp, 0xc
mov byte [edi + esi], 0
jmp 0x4098a9
lea eax, [ebp - 0x50]
mov byte [ebp - 0x5c0], 0
push eax
push dword [ebp - 0x5c0]
lea ecx, [ebp - 0x4a8]
push esi
call fcn.00407fc0
mov eax, dword [ebp - 0x5c4]
inc eax
mov dword [ebp - 0x5c4], eax
cmp eax, 0x10
jl 0x409820
mov esi, dword [ebp - 0x5c8]
movups xmm0, xmmword [ebp - 0x4a8]
mov eax, dword [ebp - 0x5bc]
mov byte [ebp - 0x4a8], 0
mov dword [esi], 0
mov dword [esi + 0x10], 0
mov dword [esi + 0x14], 0
movups xmmword [esi], xmm0
movq xmm0, qword [ebp - 0x498]
movq qword [esi + 0x10], xmm0
mov dword [ebp - 0x498], 0
mov dword [ebp - 0x494], 0xf
mov eax, dword [eax + 4]
mov dword [ebp + eax - method.std::basic_ifstream_char__struct_std::char_traits_char__.virtual_0], vtable.std::basic_ifstream_char__struct_std::char_traits_char__.0
mov eax, dword [ebp - 0x5bc]
mov ecx, dword [eax + 4]
lea eax, [ecx - 0x70]
mov dword [ebp + ecx - 0x5c0], eax
lea ecx, [ebp - 0x5ac]
call fcn.004054f0
mov eax, dword [ebp - 0x5bc]
mov eax, dword [eax + 4]
mov dword [ebp + eax - method.std::basic_istream_char__struct_std::char_traits_char__.virtual_0], vtable.std::basic_istream_char__struct_std::char_traits_char__.0
mov eax, dword [ebp - 0x5bc]
mov ecx, dword [eax + 4]
lea eax, [ecx - 0x18]
mov dword [ebp + ecx - 0x5c0], eax
lea eax, [ebp - 0x54c]
mov byte [ebp - 4], 3
push eax
mov dword [ebp - method.std::ios_base.virtual_0], vtable.std::ios_base.0
call fcn.004708bb
mov edx, dword [ebp - 0x494]
add esp, 4
cmp edx, 0x10
jb 0x4099b7
mov ecx, dword [ebp - 0x4a8]
inc edx
mov eax, ecx
cmp edx, 0x1000
jb 0x4099ad
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x409a04
push edx
push ecx
call fcn.00471ddf
add esp, 8
mov edx, dword [ebp + 0x1c]
mov dword [ebp - 0x498], 0
mov dword [ebp - 0x494], 0xf
mov byte [ebp - 0x4a8], 0
cmp edx, 0x10
jb 0x4096ad
mov ecx, dword [ebp + 8]
inc edx
mov eax, ecx
cmp edx, 0x1000
jb 0x4096a3
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
jbe 0x4096a3
call fcn.0047caa2
int3