Function at 0x42f500
Capabilities:
Check if file exists

Disassembly:
push 0xffffffffffffffff
push 0x483e11
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x44
push ebx
xor ebx, ebx
mov dword [esp + 0x14], ebx
mov eax, dword [ecx + 8]
push esi
sub eax, 0x10
push eax
xor esi, esi
call fcn.00401250
add eax, 0x10
add esp, 4
mov dword [esp + 0x10], eax
push 0x48995c
lea ecx, [esp + 0x24]
mov dword [esp + 0x58], esi
call fcn.00401ac0
push eax
lea eax, [esp + 0x14]
push eax
lea ecx, [esp + 0x24]
push ecx
mov byte [esp + 0x60], 1
call fcn.004019b0
add esp, 0xc
mov eax, dword [esp + 0x20]
add eax, 0xfffffff0
mov byte [esp + 0x54], 3
lea edx, [eax + 0xc]
or ecx, 0xffffffff
lock xadd dword [edx], ecx
dec ecx
test ecx, ecx
jg 0x42f585
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
call dword [edx + 4]
lea ecx, [esp + 0x34]
mov dword [esp + 0x14], esi
call fcn.004416f0
mov eax, dword [esp + 0x1c]
push esi
push eax
lea ecx, [esp + 0x3c]
mov byte [esp + 0x5c], 4
call fcn.00441783
cmp eax, esi
je 0x42f72d
push ebp
mov ebp, dword [sym.imp.SHLWAPI.dll_PathIsDirectoryA]
push edi
mov edi, dword [sym.imp.SHLWAPI.dll_PathFileExistsA]
lea esp, [esp]
lea ecx, [esp + 0x3c]
call fcn.004414d1
lea ecx, [esp + 0x3c]
mov dword [esp + 0x38], eax
call fcn.004416b7
test eax, eax
jne 0x42f71b
lea ecx, [esp + 0x14]
push ecx
lea ecx, [esp + 0x40]
call fcn.004419ab
lea edx, [esp + 0x14]
push edx
lea eax, [esp + 0x1c]
push eax
lea ecx, [esp + 0x34]
push ecx
mov byte [esp + 0x68], 5
call fcn.004019b0
mov eax, dword [eax]
add esp, 0xc
push eax
call ebp
mov esi, eax
mov eax, dword [esp + 0x2c]
add eax, 0xfffffff0
lea edx, [eax + 0xc]
or ecx, 0xffffffff
lock xadd dword [edx], ecx
dec ecx
test ecx, ecx
jg 0x42f62d
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
call dword [edx + 4]
test esi, esi
je 0x42f6f8
mov eax, dword [esp + 0x14]
push str.default
push eax
call fcn.0044b987
add esp, 8
test eax, eax
je 0x42f68f
lea ecx, [esp + 0x14]
push ecx
lea edx, [esp + 0x1c]
push edx
lea eax, [esp + 0x3c]
push eax
call fcn.004019b0
push str._skin.ini
push eax
lea ecx, [esp + 0x44]
or ebx, 1
push ecx
mov byte [esp + 0x74], 6
mov dword [esp + 0x38], ebx
call fcn.00407d70
mov eax, dword [eax]
add esp, 0x18
push eax
or ebx, 2
call edi
test eax, eax
mov byte [esp + 0x13], 1
jne 0x42f694
mov byte [esp + 0x13], 0
test bl, 2
je 0x42f6be
mov eax, dword [esp + 0x30]
and ebx, 0xfffffffd
add eax, 0xfffffff0
mov dword [esp + 0x20], ebx
lea edx, [eax + 0xc]
or ecx, 0xffffffff
lock xadd dword [edx], ecx
dec ecx
test ecx, ecx
jg 0x42f6be
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
call dword [edx + 4]
test bl, 1
mov dword [esp + 0x5c], 5
je 0x42f6ec
mov eax, dword [esp + 0x34]
add eax, 0xfffffff0
and ebx, 0xfffffffe
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x42f6ec
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
call dword [edx + 4]
mov al, byte [esp + 0x13]
test al, al
je 0x42f6f8
inc dword [esp + 0x1c]
mov eax, dword [esp + 0x14]
add eax, 0xfffffff0
mov byte [esp + 0x5c], 4
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x42f71b
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
call dword [edx + 4]
mov eax, dword [esp + 0x38]
test eax, eax
jne 0x42f5c0
mov esi, dword [esp + 0x1c]
pop edi
pop ebp
lea ecx, [esp + 0x34]
call fcn.00441401
lea ecx, [esp + 0x34]
mov byte [esp + 0x54], 3
call fcn.00441714
mov eax, dword [esp + 0x1c]
add eax, 0xfffffff0
mov byte [esp + 0x54], 0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x42f767
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
call dword [edx + 4]
mov eax, dword [esp + 0x10]
add eax, 0xfffffff0
mov dword [esp + 0x54], 0xffffffff
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x42f78d
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
call dword [edx + 4]
mov ecx, dword [esp + 0x4c]
mov eax, esi
pop esi
pop ebx
mov dword fs:[0], ecx
add esp, 0x50
ret