Function at 0x47bf50
Capabilities:
Check if file exists

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x5b5699
mov eax, dword fs:[0]
push eax
sub esp, 0x3c
mov eax, dword [0x645300]
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, dword [ebp + 8]
mov dword [ebp - 0x30], 0
test edi, edi
je 0x47c25d
cmp word [edi], 0
je 0x47c25d
push edi
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
je 0x47c25d
mov dword [ebp - 0x14], 0
mov dword [ebp - 4], 0
call dword [sym.imp.soui4.dll_public:_static_class_SOUI::SApplication____cdecl_SOUI::SSingleton_class_SOUI::SApplication_::getSingleton_void_]
mov ecx, dword [eax + 4]
add eax, 4
push eax
call dword [ecx + 0x60]
lea edx, [ebp - 0x14]
push edx
push eax
mov ecx, dword [eax]
call dword [ecx + 0x1c]
test eax, eax
je 0x47c1fc
mov eax, dword [ebp - 0x14]
test eax, eax
je 0x47c1ff
push edi
lea ecx, [ebp - 0x48]
mov dword [ebp - 0x24], 0
mov dword [ebp - 0x1c], 0
mov dword [ebp - 0x28], 0
mov dword [ebp - 0x18], 0
mov dword [ebp - 0x2c], 0
call fcn.004160c0
cmp byte [ebp + 0x14], 0
je 0x47c0c6
lea eax, [ebp - 0x2c]
mov byte [ebp - 4], 2
push eax
lea eax, [ebp - 0x18]
mov dword [ebp - 0x30], 1
push eax
lea eax, [ebp - 0x1c]
push eax
lea eax, [ebp - 0x28]
push eax
lea eax, [ebp - 0x24]
push eax
lea eax, [ebp - 0x48]
push eax
call fcn.00468370
mov esi, dword [ebp - 0x24]
mov ebx, dword [ebp - 0x28]
test al, al
je 0x47c067
test esi, esi
je 0x47c067
cmp dword [ebp - 0x1c], 0
je 0x47c067
test ebx, ebx
je 0x47c067
cmp dword [ebp - 0x18], 0
je 0x47c067
cmp dword [ebp - 0x2c], 0
mov byte [ebp - 0x1d], 0
jne 0x47c06b
mov byte [ebp - 0x1d], 1
lea ecx, [ebp - 0x48]
mov dword [ebp - 4], 0
call fcn.00405d20
cmp byte [ebp - 0x1d], 0
je 0x47c183
push edi
lea ecx, [ebp - 0x48]
call fcn.004160c0
lea eax, [ebp - 0x28]
mov byte [ebp - 4], 3
push eax
lea eax, [ebp - 0x24]
mov dword [ebp - 0x30], 2
push eax
lea eax, [ebp - 0x48]
push eax
call fcn.00468bd0
mov esi, dword [ebp - 0x24]
mov ebx, dword [ebp - 0x28]
test al, al
je 0x47c16a
test esi, esi
je 0x47c16a
test ebx, ebx
jmp 0x47c164
lea eax, [ebp - 0x28]
mov byte [ebp - 4], 5
push eax
lea eax, [ebp - 0x24]
mov dword [ebp - 0x30], 4
push eax
lea eax, [ebp - 0x48]
push eax
call fcn.00468bd0
mov esi, dword [ebp - 0x24]
mov ebx, dword [ebp - 0x28]
test al, al
je 0x47c0f8
test esi, esi
je 0x47c0f8
mov byte [ebp - 0x1d], 0
test ebx, ebx
jne 0x47c0fc
mov byte [ebp - 0x1d], 1
lea ecx, [ebp - 0x48]
mov dword [ebp - 4], 0
call fcn.00405d20
cmp byte [ebp - 0x1d], 0
je 0x47c183
push edi
lea ecx, [ebp - 0x48]
call fcn.004160c0
lea eax, [ebp - 0x2c]
mov byte [ebp - 4], 6
push eax
lea eax, [ebp - 0x18]
mov dword [ebp - 0x30], 8
push eax
lea eax, [ebp - 0x1c]
push eax
lea eax, [ebp - 0x28]
push eax
lea eax, [ebp - 0x24]
push eax
lea eax, [ebp - 0x48]
push eax
call fcn.00468370
mov esi, dword [ebp - 0x24]
mov ebx, dword [ebp - 0x28]
test al, al
je 0x47c16a
test esi, esi
je 0x47c16a
cmp dword [ebp - 0x1c], 0
je 0x47c16a
test ebx, ebx
je 0x47c16a
cmp dword [ebp - 0x18], 0
je 0x47c16a
cmp dword [ebp - 0x2c], 0
mov byte [ebp - 0x1d], 0
jne 0x47c16e
mov byte [ebp - 0x1d], 1
lea ecx, [ebp - 0x48]
mov dword [ebp - 4], 0
call fcn.00405d20
cmp byte [ebp - 0x1d], 0
jne 0x47c1fc
mov eax, dword [ebp - 0x14]
mov edx, dword [ebp - 0x1c]
mov ecx, dword [eax]
test edx, edx
je 0x47c19c
push edx
push dword [ebp - 0x2c]
push dword [ebp - 0x18]
push eax
call dword [ecx + 0x14]
jmp 0x47c1a2
push ebx
push esi
push eax
call dword [ecx + 0x20]
mov edi, eax
test esi, esi
je 0x47c1b1
push esi
call fcn.00543fb0
add esp, 4
test edi, edi
js 0x47c1fc
mov edx, dword [ebp + 0xc]
test edx, edx
jle 0x47c253
mov esi, dword [ebp + 0x10]
test esi, esi
jle 0x47c253
mov dword [ebp - 0x18], 0
push 3
mov byte [ebp - 4], 9
mov eax, dword [ebp - 0x14]
push esi
push edx
lea edx, [ebp - 0x18]
mov ecx, dword [eax]
push edx
push eax
call dword [ecx + 0x44]
test eax, eax
jns 0x47c216
mov byte [ebp - 4], 0xa
mov eax, dword [ebp - 0x18]
test eax, eax
je 0x47c1fc
mov ecx, dword [eax]
push eax
call dword [ecx + 4]
mov eax, dword [ebp - 0x14]
xor esi, esi
mov dword [ebp - 4], 0xe
test eax, eax
je 0x47c212
mov ecx, dword [eax]
push eax
call dword [ecx + 4]
mov eax, esi
jmp 0x47c25f
mov byte [ebp - 4], 0xc
mov esi, dword [ebp - 0x14]
mov eax, dword [ebp - 0x18]
cmp esi, eax
je 0x47c245
test esi, esi
je 0x47c231
mov eax, dword [esi]
push esi
call dword [eax + 4]
mov eax, dword [ebp - 0x18]
mov esi, eax
mov dword [ebp - 0x14], esi
test eax, eax
je 0x47c245
mov ecx, dword [eax]
push eax
call dword [ecx]
mov esi, dword [ebp - 0x14]
mov eax, dword [ebp - 0x18]
mov byte [ebp - 4], 0xd
test eax, eax
je 0x47c256
mov ecx, dword [eax]
push eax
call dword [ecx + 4]
mov esi, dword [ebp - 0x14]
xor eax, eax
mov dword [ebp - 0x14], eax
jmp 0x47c201
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.00543bb1
mov esp, ebp
pop ebp
ret 0x10