Function at 0x4066c0
Capabilities:
Check if file exists

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x5e5a49
mov eax, dword fs:[0]
push eax
sub esp, 0x29c
mov eax, dword [0x6a8a44]
xor eax, ebp
mov dword [ebp - 0x10], eax
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
call fcn.004080c0
mov ecx, eax
call fcn.005b9c7e
push eax
lea ecx, [ebp - 0x248]
call fcn.00402790
mov dword [ebp - 4], 0
lea eax, [ebp - 0x230]
push eax
call fcn.00406070
add esp, 4
mov byte [ebp - 4], 1
lea ecx, [ebp - 0x284]
call fcn.0044dcb0
mov byte [ebp - 4], 2
push str..wnpf
lea ecx, [ebp - 0x260]
call fcn.00402790
mov byte [ebp - 4], 3
lea ecx, [ebp - 0x260]
push ecx
lea edx, [ebp - 0x2a0]
push edx
lea ecx, [ebp - 0x284]
call fcn.00407ca0
mov byte [ebp - 4], 2
lea ecx, [ebp - 0x260]
call fcn.00402750
push str..swnpf
lea ecx, [ebp - 0x278]
call fcn.00402790
mov byte [ebp - 4], 4
lea eax, [ebp - 0x278]
push eax
lea ecx, [ebp - 0x2a8]
push ecx
lea ecx, [ebp - 0x284]
call fcn.00407ca0
mov byte [ebp - 4], 2
lea ecx, [ebp - 0x278]
call fcn.00402750
lea edx, [ebp - 0x27c]
push edx
lea ecx, [ebp - 0x284]
call fcn.00442090
jmp 0x4067cc
push 0
lea eax, [ebp - 0x294]
push eax
lea ecx, [ebp - 0x27c]
call fcn.0044e040
lea ecx, [ebp - 0x298]
push ecx
lea ecx, [ebp - 0x284]
call fcn.0044ed60
push eax
lea ecx, [ebp - 0x27c]
call fcn.0044e000
movzx edx, al
test edx, edx
je 0x406939
lea ecx, [ebp - 0x27c]
call fcn.00407ed0
mov ecx, eax
call fcn.00402820
push eax
mov ecx, dword [ebp + 8]
call fcn.00402820
push eax
lea ecx, [ebp - 0x248]
call fcn.00402820
push eax
push str._sSkin_s_s
lea eax, [ebp - 0x218]
push eax
call fcn.00409310
add esp, 0x14
lea ecx, [ebp - 0x218]
push ecx
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
je 0x406896
lea edx, [ebp - 0x218]
push edx
mov ecx, dword [ebp + 0xc]
call fcn.004028a0
mov dword [ebp - 0x288], 1
mov byte [ebp - 4], 1
lea ecx, [ebp - 0x284]
call fcn.00407eb0
mov byte [ebp - 4], 0
lea ecx, [ebp - 0x230]
call fcn.00402750
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x248]
call fcn.00402750
mov eax, dword [ebp - 0x288]
jmp 0x406979
lea ecx, [ebp - 0x27c]
call fcn.00407ed0
mov ecx, eax
call fcn.00402820
push eax
mov ecx, dword [ebp + 8]
call fcn.00402820
push eax
lea ecx, [ebp - 0x230]
call fcn.00402820
push eax
push 0x5edc48
lea eax, [ebp - 0x218]
push eax
call fcn.00409310
add esp, 0x14
lea ecx, [ebp - 0x218]
push ecx
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
je 0x406934
lea edx, [ebp - 0x218]
push edx
mov ecx, dword [ebp + 0xc]
call fcn.004028a0
mov dword [ebp - 0x28c], 1
mov byte [ebp - 4], 1
lea ecx, [ebp - 0x284]
call fcn.00407eb0
mov byte [ebp - 4], 0
lea ecx, [ebp - 0x230]
call fcn.00402750
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x248]
call fcn.00402750
mov eax, dword [ebp - 0x28c]
jmp 0x406979
jmp 0x4067b8
mov dword [ebp - 0x290], 0
mov byte [ebp - 4], 1
lea ecx, [ebp - 0x284]
call fcn.00407eb0
mov byte [ebp - 4], 0
lea ecx, [ebp - 0x230]
call fcn.00402750
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x248]
call fcn.00402750
mov eax, dword [ebp - 0x290]
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.005ad281
mov esp, ebp
pop ebp
ret