Function at 0x4faa90
Capabilities:
Check if file exists

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x57458d
mov eax, dword fs:[0]
push eax
sub esp, 0xa4
mov eax, dword [0x61308c]
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 esi, ecx
mov ecx, dword [esi + 0x3b4]
sub esp, 0x84
mov eax, esp
mov dword [ebp - 0xb0], esp
mov edx, dword [ecx]
push eax
call dword [edx + 0x28]
mov dword [ebp - 4], 0
mov dword [ebp - 4], 0xffffffff
call fcn.004fa9a0
test eax, eax
jne 0x4facb2
mov ecx, dword [esi + 0x3b8]
sub esp, 0x84
mov eax, esp
mov dword [ebp - 0xb0], esp
mov edx, dword [ecx]
push eax
call dword [edx + 0x28]
mov dword [ebp - 4], 1
mov dword [ebp - 4], 0xffffffff
call fcn.004fa9a0
test eax, eax
jne 0x4facb2
mov ecx, dword [esi + 0x3b4]
lea edx, [ebp - 0xac]
push edx
mov eax, dword [ecx]
call dword [eax + 0x28]
mov dword [ebp - 4], 5
mov ecx, eax
mov edi, dword [sym.imp.DTLUI.dll_public:_wchar_t_const____thiscall_DuiLib::CDuiString::operator_wchar_t_const__void_const]
call edi
push eax
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
sete bl
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0xac]
call dword [sym.imp.DTLUI.dll_public:_void___thiscall_DuiLib::CDuiString::destructor_void_]
test bl, bl
je 0x4fac06
mov ecx, dword [esi + 0x3b4]
lea edx, [ebp - 0xac]
push edx
mov eax, dword [ecx]
call dword [eax + 0x28]
mov dword [ebp - 4], 6
mov ecx, eax
call edi
mov ecx, eax
call fcn.004066e0
test eax, eax
sete bl
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0xac]
call dword [sym.imp.DTLUI.dll_public:_void___thiscall_DuiLib::CDuiString::destructor_void_]
test bl, bl
je 0x4fac06
push 0
push 0
mov edx, str.STR_SETTING_WARNING1
lea ecx, [ebp - 0x28]
call fcn.0044b7f0
add esp, 8
mov edi, eax
mov dword [ebp - 4], 7
cmp dword [edi + 0x14], 8
jb 0x4fabd9
mov edi, dword [edi]
push 0
push ecx
push 0x30
mov ecx, esi
call dword [sym.imp.DTLUI.dll_public:_struct_HWND______thiscall_DuiLib::CWindowWnd::GetHWND_void_const]
mov edx, edi
mov ecx, eax
call fcn.004f40d0
add esp, 0xc
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x28]
call fcn.00409540
jmp 0x4fad88
mov ecx, dword [esi + 0x3b8]
lea edx, [ebp - 0xac]
push edx
mov eax, dword [ecx]
call dword [eax + 0x28]
mov dword [ebp - 4], 8
mov ecx, eax
call edi
push eax
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
sete bl
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0xac]
call dword [sym.imp.DTLUI.dll_public:_void___thiscall_DuiLib::CDuiString::destructor_void_]
test bl, bl
je 0x4faca8
mov ecx, dword [esi + 0x3b8]
lea edx, [ebp - 0xac]
push edx
mov eax, dword [ecx]
call dword [eax + 0x28]
mov dword [ebp - 4], 9
mov ecx, eax
call edi
mov ecx, eax
call fcn.004066e0
test eax, eax
sete bl
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0xac]
call dword [sym.imp.DTLUI.dll_public:_void___thiscall_DuiLib::CDuiString::destructor_void_]
test bl, bl
je 0x4faca8
push 0
push 0
mov edx, str.STR_SETTING_WARNING2
lea ecx, [ebp - 0x28]
call fcn.0044b7f0
add esp, 8
mov edi, eax
mov dword [ebp - 4], 0xa
jmp 0x4fabd1
mov eax, 1
jmp 0x4fad8a
push 0
push 0
mov edx, str.STR_SETTING_WARNING3
lea ecx, [ebp - 0x28]
call fcn.0044b7f0
add esp, 8
mov dword [ebp - 4], 2
lea ecx, [ebp - 0x28]
push 4
push str._r_n_s
call fcn.00406f60
cmp dword [ebp - 0x14], 8
lea eax, [ebp - 0x28]
push str.:____
cmovae eax, dword [ebp - 0x28]
push eax
lea eax, [ebp - 0x28]
push eax
call fcn.0040d480
add esp, 0xc
lea ebx, [ebp - 0x28]
cmp dword [ebp - 0x14], 8
mov ecx, esi
cmovae ebx, dword [ebp - 0x28]
call dword [sym.imp.DTLUI.dll_public:_struct_HWND______thiscall_DuiLib::CWindowWnd::GetHWND_void_const]
push 0x3fc
mov edi, eax
call fcn.005120b2
add esp, 4
mov dword [ebp - 0xb0], eax
mov byte [ebp - 4], 3
mov ecx, eax
call fcn.004f3c40
mov esi, eax
mov byte [ebp - 4], 2
push 0
push 0x30
push 0
push 0
push 0
push ebx
push edi
mov ecx, esi
mov dword [esi + 0x3dc], 0
call fcn.004f4de0
mov eax, dword [esi]
mov ecx, esi
push 1
call dword [eax + 0x18]
mov dword [ebp - 4], 0xffffffff
mov eax, dword [ebp - 0x14]
cmp eax, 8
jb 0x4fad74
inc eax
lea ecx, [ebp - 0x28]
push eax
push dword [ebp - 0x28]
call fcn.00404be0
xor eax, eax
mov dword [ebp - 0x14], 7
mov dword [ebp - 0x18], 0
mov word [ebp - 0x28], ax
xor eax, eax
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.005120a1
mov esp, ebp
pop ebp
ret