Function at 0x418480
Capabilities:
Check if file exists
Get file attributes

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x49c550
mov eax, dword fs:[0]
push eax
sub esp, 0x10
push ebx
push esi
push edi
mov eax, dword [0x4cf500]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
xor ebx, ebx
lea eax, [ebx + 2]
lea ecx, [ebp - 0x18]
lea edx, [ebp + 0xc]
mov dword [ebp - 4], ebx
call fcn.0040b480
mov byte [ebp - 4], 1
mov esi, dword [ebp - 0x18]
push esi
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
or edi, 0xffffffff
cmp eax, edi
jne 0x418526
add esi, 0xfffffff0
mov ecx, edi
lea eax, [esi + 0xc]
mov byte [ebp - 4], bl
lock xadd dword [eax], ecx
dec ecx
test ecx, ecx
jg 0x4184ee
mov ecx, dword [esi]
mov edx, dword [ecx]
mov eax, dword [edx + 4]
push esi
call eax
mov dword [ebp - 4], edi
mov eax, dword [ebp + 0xc]
add eax, 0xfffffff0
lea ecx, [eax + 0xc]
lock xadd dword [ecx], edi
dec edi
test edi, edi
jg 0x41850d
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov eax, 1
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 8
lea edx, [ebp + 0xc]
call fcn.004187a0
test eax, eax
jne 0x418588
add esi, 0xfffffff0
mov byte [ebp - 4], bl
lea ecx, [esi + 0xc]
mov edx, edi
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x418550
mov ecx, dword [esi]
mov eax, dword [ecx]
mov edx, dword [eax + 4]
push esi
call edx
mov dword [ebp - 4], edi
mov eax, dword [ebp + 0xc]
add eax, 0xfffffff0
lea ecx, [eax + 0xc]
lock xadd dword [ecx], edi
dec edi
test edi, edi
jg 0x41856f
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov eax, 0x80004005
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 8
mov ecx, dword [ebp + 0xc]
push ecx
push ebx
call dword [sym.imp.SHELL32.dll_SHCreateDirectory]
mov edx, dword [ebp + 0xc]
push edx
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
je 0x4184d0
mov edi, dword [ebp + 8]
lea eax, [ebp + 0xc]
call fcn.00404dc0
lea edi, [ebp + 8]
call fcn.004181f0
mov edi, 0x4da2e4
mov byte [ebp - 4], 2
call fcn.00404dc0
mov byte [ebp - 4], 1
mov eax, dword [ebp + 8]
add eax, 0xfffffff0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x4185e9
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
lea ecx, [ebp + 0xc]
push ecx
push 0x4da2e4
call fcn.0040a280
add esp, 8
test eax, eax
jne 0x418699
mov edx, dword [0x4da2e4]
push edx
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
je 0x418699
push str._skin1
lea ecx, [ebp + 8]
call fcn.00401c90
lea eax, [ebp + 8]
push eax
lea ecx, [ebp - 0x14]
push ecx
mov ebx, 0x4da2e4
mov byte [ebp - 4], 3
call fcn.0040b4f0
lea edx, [ebp + 8]
push edx
lea eax, [ebp - 0x10]
push eax
lea ebx, [ebp + 0xc]
mov byte [ebp - 4], 4
call fcn.0040b4f0
mov byte [ebp - 4], 5
mov eax, dword [ebp - 0x10]
add esp, 0xc
add eax, 0xfffffff0
mov dword [ebp - 0x1c], esp
mov edi, esp
push eax
call fcn.00401630
lea ecx, [ebp - 0x14]
add esp, 4
add eax, 0x10
push ecx
mov dword [edi], eax
call fcn.0040d770
add esp, 8
lea ecx, [ebp - 0x10]
call fcn.004016d0
lea ecx, [ebp - 0x14]
call fcn.004016d0
lea ecx, [ebp + 8]
mov byte [ebp - 4], 1
call fcn.004016d0
xor ebx, ebx
call fcn.0041a040
call sym.Install.exe_private:_static_class_CFpFunshionIni____cdecl_boost::serialization::singleton_class_CFpFunshionIni_::get_instance_void_
lea edx, [ebp + 0xc]
push edx
push 0x4da2ec
push 0x4da2f0
mov ecx, eax
call fcn.00414460
lea eax, [esi - 0x10]
mov byte [ebp - 4], bl
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x4186d7
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov dword [ebp - 4], 0xffffffff
mov eax, dword [ebp + 0xc]
add eax, 0xfffffff0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x4186fd
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
xor eax, eax
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 8