Function at 0x40a980
Capabilities:
Check if file exists

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x270
mov eax, dword [0x440480]
xor eax, ebp
mov dword [ebp - 8], eax
mov eax, dword [ebp + 8]
push ebx
push esi
push edi
mov dword [ebp - 0x268], eax
mov dword [ebp - 0x26c], 0x41
mov dword [ebp - 0x270], 0x1a
mov ecx, dword [ebp - 0x26c]
push ecx
lea edx, [ebp - 0x10]
push str._c:_
push edx
call fcn.00420bc7
add esp, 0xc
lea eax, [ebp - 0x10]
push eax
call dword [sym.imp.SHLWAPI.dll_PathFileExistsA]
test eax, eax
je 0x40ac7f
lea eax, [ebp - 0x10]
lea edx, [eax + 1]
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x40a9e3
sub eax, edx
mov edx, eax
mov eax, dword [ebp - 0x268]
lea esi, [eax + 1]
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x40a9f7
sub eax, esi
lea ecx, [edx + eax + 0x20]
push ecx
call fcn.0041f974
add esp, 4
lea edx, [ebp - 0x10]
push edx
mov ebx, eax
push 0x43d0c8
push ebx
call fcn.00420bc7
add esp, 0xc
lea eax, [ebp - 0x13c]
push eax
push ebx
call fcn.00422452
mov edi, eax
add esp, 8
test edi, edi
je 0x40ab81
cmp edi, 0xffffffff
je 0x40ab81
test byte [ebp - 0x13c], 0x10
je 0x40ab60
mov ecx, 0x43d0cc
lea eax, [ebp - 0x118]
lea esp, [esp]
mov dl, byte [eax]
cmp dl, byte [ecx]
jne 0x40aa80
test dl, dl
je 0x40aa7c
mov dl, byte [eax + 1]
cmp dl, byte [ecx + 1]
jne 0x40aa80
add eax, 2
add ecx, 2
test dl, dl
jne 0x40aa60
xor eax, eax
jmp 0x40aa85
sbb eax, eax
sbb eax, 0xffffffff
test eax, eax
je 0x40ab60
mov ecx, 0x43d0d0
lea eax, [ebp - 0x118]
mov dl, byte [eax]
cmp dl, byte [ecx]
jne 0x40aab8
test dl, dl
je 0x40aab4
mov dl, byte [eax + 1]
cmp dl, byte [ecx + 1]
jne 0x40aab8
add eax, 2
add ecx, 2
test dl, dl
jne 0x40aa98
xor eax, eax
jmp 0x40aabd
sbb eax, eax
sbb eax, 0xffffffff
test eax, eax
je 0x40ab60
mov ecx, 0x43c5b8
lea eax, [ebp - 0x118]
mov dl, byte [eax]
cmp dl, byte [ecx]
jne 0x40aaf0
test dl, dl
je 0x40aaec
mov dl, byte [eax + 1]
cmp dl, byte [ecx + 1]
jne 0x40aaf0
add eax, 2
add ecx, 2
test dl, dl
jne 0x40aad0
xor eax, eax
jmp 0x40aaf5
sbb eax, eax
sbb eax, 0xffffffff
test eax, eax
je 0x40ab60
lea eax, [ebp - 0x10]
lea edx, [eax + 1]
nop
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x40ab00
sub eax, edx
mov edx, eax
lea eax, [ebp - 0x118]
lea esi, [eax + 1]
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x40ab14
sub eax, esi
lea ecx, [eax + edx + 8]
push ecx
call fcn.0041f974
add esp, 4
mov esi, eax
lea edx, [ebp - 0x118]
push edx
lea eax, [ebp - 0x10]
push eax
push str._s_s_
push esi
call fcn.00420bc7
mov ecx, dword [ebp - 0x268]
push fcn.0040a340
push ecx
push esi
call fcn.0040a690
add esp, 0x1c
push esi
call fcn.00420c4b
add esp, 4
lea edx, [ebp - 0x13c]
push edx
push edi
call fcn.00422579
add esp, 8
test eax, eax
je 0x40aa44
push edi
call fcn.004226a7
add esp, 4
mov eax, dword [ebp - 0x268]
push eax
lea ecx, [ebp - 0x10]
push ecx
push str._s_s
push ebx
call fcn.00420bc7
lea edx, [ebp - 0x264]
push edx
push ebx
call fcn.00422452
mov edi, eax
add esp, 0x18
test edi, edi
je 0x40ac76
cmp edi, 0xffffffff
je 0x40ac76
test byte [ebp - 0x264], 0x10
jne 0x40ac55
mov ecx, 0x43c5b8
lea eax, [ebp - 0x240]
mov dl, byte [eax]
cmp dl, byte [ecx]
jne 0x40abf2
test dl, dl
je 0x40abee
mov dl, byte [eax + 1]
cmp dl, byte [ecx + 1]
jne 0x40abf2
add eax, 2
add ecx, 2
test dl, dl
jne 0x40abd2
xor eax, eax
jmp 0x40abf7
sbb eax, eax
sbb eax, 0xffffffff
test eax, eax
je 0x40ac55
lea eax, [ebp - 0x10]
lea edx, [eax + 1]
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x40ac01
sub eax, edx
mov edx, eax
lea eax, [ebp - 0x240]
lea esi, [eax + 1]
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x40ac15
sub eax, esi
lea eax, [eax + edx + 8]
push eax
call fcn.0041f974
add esp, 4
lea ecx, [ebp - 0x240]
push ecx
lea edx, [ebp - 0x10]
push edx
mov esi, eax
push str._s_s
push esi
call fcn.00420bc7
push esi
call fcn.0040a340
add esp, 0x14
push esi
call fcn.00420c4b
add esp, 4
lea eax, [ebp - 0x264]
push eax
push edi
call fcn.00422579
add esp, 8
test eax, eax
je 0x40abba
push edi
call fcn.004226a7
add esp, 4
push ebx
call fcn.00420c4b
add esp, 4
mov eax, 1
add dword [ebp - 0x26c], eax
sub dword [ebp - 0x270], eax
jne 0x40a9b3
mov ecx, dword [ebp - 8]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.004204c6
mov esp, ebp
pop ebp
ret