Function at 0x4ad96d
Capabilities:
Check if file exists

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x6378fa
mov eax, dword fs:[0]
push eax
mov eax, 0x2088
call fcn.004d6ea0
mov eax, dword [0x6c9614]
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 ebx, ecx
lea esi, [ebx + 4]
cmp dword [esi + 0x14], 8
mov eax, esi
jb 0x4ad9ae
mov eax, dword [esi]
push eax
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
je 0x4adc13
xor edi, edi
cmp dword [esi + 0x14], 8
mov dword [ebp - 0x208c], edi
jb 0x4ad9cd
mov esi, dword [esi]
push 0x63c710
lea eax, [ebp - 0x208c]
push esi
push eax
call fcn.004f82eb
add esp, 0xc
cmp dword [ebp - 0x208c], edi
je 0x4adc13
push str..ACP
push edi
call fcn.004f719d
push 0x2000
lea eax, [ebp - 0x2010]
push edi
push eax
call fcn.004eddc0
push 0x1000
lea eax, [ebp - 0x2010]
push eax
push 0x648ae4
push dword [ebp - 0x208c]
call fcn.004aee0d
add esp, 0x24
jmp 0x4adbf5
xor eax, eax
mov dword [ebp - 0x2018], edi
mov word [ebp - 0x2028], ax
lea ecx, [ebp - 0x2028]
lea eax, [ebp - 0x2010]
mov dword [ebp - 0x2014], 7
push eax
call fcn.00401f68
xor eax, eax
mov dword [ebp - 4], edi
mov dword [ebp - 0x2078], edi
mov dword [ebp - 0x2074], 7
mov word [ebp - 0x2088], ax
mov dword [ebp - 0x2060], edi
mov dword [ebp - 0x205c], 7
mov word [ebp - 0x2070], ax
push edi
push 0x64b380
lea ecx, [ebp - 0x2028]
mov byte [ebp - 4], 2
call fcn.004a693a
mov esi, eax
cmp esi, 0xffffffff
jne 0x4adab1
or dword [ebp - 4], eax
jmp 0x4adbb5
inc esi
lea ecx, [ebp - 0x2028]
push esi
push 0x64b384
call fcn.004a693a
mov edi, eax
cmp edi, 0xffffffff
je 0x4adbaf
and dword [ebp - 0x2030], 0
lea ecx, [ebp - 0x2040]
xor eax, eax
mov dword [ebp - 0x202c], 7
mov word [ebp - 0x2040], ax
mov eax, edi
sub eax, esi
push eax
push esi
lea eax, [ebp - 0x2028]
push eax
call fcn.004a65c7
lea eax, [ebp - 0x2040]
push eax
lea ecx, [ebp - 0x2088]
call fcn.00403bf9
lea ecx, [ebp - 0x2040]
call fcn.00401ce8
and dword [ebp - 0x2030], 0
lea ecx, [ebp - 0x2040]
xor eax, eax
mov dword [ebp - 0x202c], 7
mov word [ebp - 0x2040], ax
lea eax, [edi + 1]
push 0xffffffffffffffff
push eax
lea eax, [ebp - 0x2028]
push eax
call fcn.004a65c7
lea eax, [ebp - 0x2040]
push eax
lea ecx, [ebp - 0x2070]
call fcn.00403bf9
lea ecx, [ebp - 0x2040]
call fcn.00401ce8
lea eax, [ebp - 0x2070]
push eax
lea eax, [ebp - 0x2088]
push eax
lea ecx, [ebp - 0x2058]
call fcn.004aa7ad
push eax
lea eax, [ebp - 0x2094]
mov byte [ebp - 4], 3
push eax
lea ecx, [ebx + 0x34]
call fcn.004ac8f5
lea ecx, [ebp - 0x2040]
call fcn.00401ce8
lea ecx, [ebp - 0x2058]
call fcn.00401ce8
or dword [ebp - 4], 0xffffffff
xor edi, edi
lea ecx, [ebp - 0x2070]
call fcn.00401ce8
lea ecx, [ebp - 0x2088]
call fcn.00401ce8
lea ecx, [ebp - 0x2028]
call fcn.00401ce8
push 0x1000
lea eax, [ebp - 0x2010]
push eax
push 0x648ae4
push dword [ebp - 0x208c]
call fcn.004aee0d
add esp, 0x10
cmp eax, 0xffffffff
jne 0x4ada2f
cmp dword [ebp - 0x208c], 0
je 0x4adc13
push dword [ebp - 0x208c]
call fcn.004f6dc4
pop ecx
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.004d5d93
mov esp, ebp
pop ebp
ret