Function at 0x4076f0
Capabilities:
Check if file exists

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x5a04b7
mov eax, dword fs:[0]
push eax
sub esp, 0x29c
mov eax, dword [0x6540b4]
xor eax, ebp
mov dword [ebp - 0x10], eax
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
call fcn.00407bc0
mov ecx, eax
call fcn.00443d30
push eax
lea ecx, [ebp - 0x248]
call fcn.00402780
mov dword [ebp - 4], 0
lea eax, [ebp - 0x230]
push eax
call fcn.00406d20
add esp, 4
mov byte [ebp - 4], 1
lea ecx, [ebp - 0x284]
call fcn.00406960
mov byte [ebp - 4], 2
push str..wnpf
lea ecx, [ebp - 0x260]
call fcn.00402780
mov byte [ebp - 4], 3
lea ecx, [ebp - 0x260]
push ecx
lea edx, [ebp - 0x2a0]
push edx
lea ecx, [ebp - 0x284]
call fcn.00406890
mov byte [ebp - 4], 2
lea ecx, [ebp - 0x260]
call fcn.00402740
push str..swnpf
lea ecx, [ebp - 0x278]
call fcn.00402780
mov byte [ebp - 4], 4
lea eax, [ebp - 0x278]
push eax
lea ecx, [ebp - 0x2a8]
push ecx
lea ecx, [ebp - 0x284]
call fcn.00406890
mov byte [ebp - 4], 2
lea ecx, [ebp - 0x278]
call fcn.00402740
lea edx, [ebp - 0x27c]
push edx
lea ecx, [ebp - 0x284]
call fcn.00408570
jmp 0x4077fc
push 0
lea eax, [ebp - 0x294]
push eax
lea ecx, [ebp - 0x27c]
call fcn.00409840
lea ecx, [ebp - 0x298]
push ecx
lea ecx, [ebp - 0x284]
call fcn.004087f0
push eax
lea ecx, [ebp - 0x27c]
call fcn.00421590
movzx edx, al
test edx, edx
je 0x407969
lea ecx, [ebp - 0x27c]
call fcn.00406b30
mov ecx, eax
call fcn.00402810
push eax
mov ecx, dword [ebp + 8]
call fcn.00402810
push eax
lea ecx, [ebp - 0x248]
call fcn.00402810
push eax
push str._sSkin_s_s
lea eax, [ebp - 0x218]
push eax
call fcn.00409340
add esp, 0x14
lea ecx, [ebp - 0x218]
push ecx
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
je 0x4078c6
lea edx, [ebp - 0x218]
push edx
mov ecx, dword [ebp + 0xc]
call fcn.00402890
mov dword [ebp - 0x288], 1
mov byte [ebp - 4], 1
lea ecx, [ebp - 0x284]
call fcn.00406b10
mov byte [ebp - 4], 0
lea ecx, [ebp - 0x230]
call fcn.00402740
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x248]
call fcn.00402740
mov eax, dword [ebp - 0x288]
jmp 0x4079a9
lea ecx, [ebp - 0x27c]
call fcn.00406b30
mov ecx, eax
call fcn.00402810
push eax
mov ecx, dword [ebp + 8]
call fcn.00402810
push eax
lea ecx, [ebp - 0x230]
call fcn.00402810
push eax
push 0x5a4b98
lea eax, [ebp - 0x218]
push eax
call fcn.00409340
add esp, 0x14
lea ecx, [ebp - 0x218]
push ecx
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
je 0x407964
lea edx, [ebp - 0x218]
push edx
mov ecx, dword [ebp + 0xc]
call fcn.00402890
mov dword [ebp - 0x28c], 1
mov byte [ebp - 4], 1
lea ecx, [ebp - 0x284]
call fcn.00406b10
mov byte [ebp - 4], 0
lea ecx, [ebp - 0x230]
call fcn.00402740
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x248]
call fcn.00402740
mov eax, dword [ebp - 0x28c]
jmp 0x4079a9
jmp 0x4077e8
mov dword [ebp - 0x290], 0
mov byte [ebp - 4], 1
lea ecx, [ebp - 0x284]
call fcn.00406b10
mov byte [ebp - 4], 0
lea ecx, [ebp - 0x230]
call fcn.00402740
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x248]
call fcn.00402740
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.00435ba5
mov esp, ebp
pop ebp
ret