Function at 0x4155d0
Capabilities:
Check if file exists
Delete file
Get file attributes

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x494c48
mov eax, dword fs:[0]
push eax
sub esp, 0x24
push ebx
push edi
mov eax, dword [0x4c81d0]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov edi, ecx
mov eax, edi
call fcn.0040a890
test eax, eax
je 0x4156f3
mov edx, edi
call fcn.00415a80
test eax, eax
jne 0x41562b
mov eax, 0x80004005
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop ebx
mov esp, ebp
pop ebp
ret 4
push edi
lea eax, [ebp - 0x28]
push eax
call fcn.00415b90
push eax
lea ecx, [ebp - 0x24]
push ecx
mov ebx, 0x4a3bb4
mov dword [ebp - 4], 0
call fcn.0040ac70
mov byte [ebp - 4], 1
mov edx, dword [ebp + 8]
push edx
lea ecx, [ebp - 0x10]
push ecx
mov ebx, eax
call fcn.0040abc0
add esp, 0x10
mov byte [ebp - 4], 3
mov eax, dword [ebp - 0x24]
add eax, 0xfffffff0
lea edx, [eax + 0xc]
or ecx, 0xffffffff
lock xadd dword [edx], ecx
dec ecx
test ecx, ecx
jg 0x415684
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov bl, 4
mov byte [ebp - 4], bl
mov eax, dword [ebp - 0x28]
add eax, 0xfffffff0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x4156a8
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov ecx, dword [ebp - 0x10]
mov edi, dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
push ecx
call edi
test eax, eax
jne 0x41570b
mov edx, dword [ebp - 0x10]
push edx
push eax
call dword [sym.imp.SHELL32.dll_SHCreateDirectory]
mov eax, dword [ebp - 0x10]
push eax
call edi
test eax, eax
jne 0x41570b
mov dword [ebp - 4], 0xffffffff
mov eax, dword [ebp - 0x10]
add eax, 0xfffffff0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x4156f3
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 ebx
mov esp, ebp
pop ebp
ret 4
lea eax, [ebp - 0x10]
mov edi, esi
call fcn.00405130
lea ecx, [ebp + 8]
push ecx
call fcn.004153a0
mov edi, 0x4d3648
mov byte [ebp - 4], 5
call fcn.00405130
mov byte [ebp - 4], bl
mov eax, dword [ebp + 8]
add eax, 0xfffffff0
lea edx, [eax + 0xc]
or ecx, 0xffffffff
lock xadd dword [edx], ecx
dec ecx
test ecx, ecx
jg 0x41574e
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
lea ecx, [ebp - 0x2c]
call fcn.00410020
push eax
lea ecx, [ebp - 0x20]
push ecx
mov ebx, str.Funshion_skin1
mov byte [ebp - 4], 6
call fcn.0040ac70
add esp, 8
mov byte [ebp - 4], 8
mov eax, dword [ebp - 0x2c]
add eax, 0xfffffff0
lea edx, [eax + 0xc]
or ecx, 0xffffffff
lock xadd dword [edx], ecx
dec ecx
test ecx, ecx
jg 0x41578f
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov ecx, dword [ebp - 0x20]
mov edi, dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
push ecx
call edi
cmp eax, 0xffffffff
jne 0x4157f0
lea edx, [ebp + 8]
push esi
push edx
mov ebx, str._skin1
call fcn.0040ac70
add esp, 8
mov byte [ebp - 4], 9
mov eax, dword [ebp + 8]
push eax
call edi
cmp eax, 0xffffffff
je 0x4157cd
lea ecx, [ebp + 8]
push ecx
call fcn.004102e0
add esp, 4
mov byte [ebp - 4], 8
mov eax, dword [ebp + 8]
add eax, 0xfffffff0
lea edx, [eax + 0xc]
or ecx, 0xffffffff
lock xadd dword [edx], ecx
dec ecx
test ecx, ecx
jg 0x4157f0
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
lea ecx, [ebp - 0x10]
push ecx
push 0x4d3648
call fcn.00409250
add esp, 8
test eax, eax
jne 0x4158a0
mov edx, dword [0x4d3648]
push edx
call edi
cmp eax, 0xffffffff
je 0x4158a0
lea eax, [ebp + 8]
push 0x4a3bb4
push eax
mov ecx, 0x4d3650
call fcn.0040ad50
lea ecx, [ebp + 8]
push ecx
lea edx, [ebp - 0x1c]
push edx
mov ebx, 0x4d3648
mov byte [ebp - 4], 0xa
call fcn.0040abc0
lea eax, [ebp + 8]
push eax
lea ecx, [ebp - 0x18]
push ecx
lea ebx, [ebp - 0x10]
mov byte [ebp - 4], 0xb
call fcn.0040abc0
mov byte [ebp - 4], 0xc
mov eax, dword [ebp - 0x18]
add esp, 0x14
add eax, 0xfffffff0
mov dword [ebp - 0x30], esp
mov edi, esp
push eax
call fcn.00401820
lea edx, [ebp - 0x1c]
add esp, 4
add eax, 0x10
push edx
mov dword [edi], eax
call fcn.00410a40
add esp, 8
lea ecx, [ebp - 0x18]
call fcn.004018c0
lea ecx, [ebp - 0x1c]
call fcn.004018c0
lea ecx, [ebp + 8]
mov byte [ebp - 4], 8
call fcn.004018c0
call fcn.004172c0
call sym.Install.exe_private:_static_class_CFpFunshionIni____cdecl_boost::serialization::singleton_class_CFpFunshionIni_::get_instance_void_
lea ecx, [ebp - 0x10]
push ecx
push 0x4d3654
mov ecx, 0x4d3644
mov edi, eax
call fcn.00411b50
mov eax, dword [ebp - 0x10]
push ecx
add eax, 0xfffffff0
mov dword [ebp + 8], esp
mov edi, esp
push eax
call fcn.00401820
add esp, 4
lea edx, [ebp - 0x14]
add eax, 0x10
push edx
mov dword [edi], eax
call fcn.00416930
mov byte [ebp - 4], 0xd
mov eax, dword [ebp - 0x14]
cmp dword [eax - 4], 1
jle 0x4158fe
mov eax, dword [eax - 0xc]
push eax
lea ecx, [ebp - 0x14]
call fcn.00401bc0
mov eax, dword [ebp - 0x14]
push eax
call dword [sym.imp.SHLWAPI.dll_PathRemoveFileSpecW]
mov eax, dword [ebp - 0x14]
mov ecx, dword [eax - 8]
push ecx
push eax
call fcn.0046fac0
add esp, 8
test eax, eax
js 0x4159f2
mov ecx, dword [ebp - 0x14]
cmp eax, dword [ecx - 8]
jg 0x4159f2
mov dword [ecx - 0xc], eax
mov edx, dword [ebp - 0x14]
xor ecx, ecx
mov word [edx + eax*2], cx
lea eax, [ebp + 8]
push 0x4d3658
push eax
lea ebx, [ebp - 0x14]
call fcn.0040abc0
mov eax, dword [eax]
add esp, 8
push eax
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
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 0x415971
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov byte [ebp - 4], 8
mov eax, dword [ebp - 0x14]
add eax, 0xfffffff0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x415994
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov byte [ebp - 4], 4
mov eax, dword [ebp - 0x20]
add eax, 0xfffffff0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x4159b7
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 - 0x10]
add eax, 0xfffffff0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x4159dd
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 ebx
mov esp, ebp
pop ebp
ret 4
push 0x80070057
call fcn.00401d40
int3