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

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x46b5c8
mov eax, dword fs:[0]
push eax
sub esp, 0x28
push ebx
push edi
mov eax, dword [0x48d1d0]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov edi, ecx
mov eax, edi
call fcn.00409e90
test eax, eax
je 0x4143e2
mov edx, edi
call fcn.00414770
test eax, eax
jne 0x414319
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
push edi
lea eax, [ebp - 0x2c]
push eax
call fcn.00414880
push eax
lea ecx, [ebp - 0x28]
push ecx
mov ebx, 0x4776cc
mov dword [ebp - 4], 0
call fcn.0040a210
lea edx, [ebp - 0x10]
push 0x493630
push edx
mov ebx, eax
mov byte [ebp - 4], 1
call fcn.0040a160
add esp, 0x10
mov byte [ebp - 4], 3
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 0x414373
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 - 0x2c]
add eax, 0xfffffff0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x414397
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 0x4143f8
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 0x4143f8
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 0x4143e2
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
lea eax, [ebp - 0x10]
mov edi, esi
call fcn.00404cd0
lea ecx, [ebp - 0x20]
push ecx
call fcn.00414090
mov edi, 0x49363c
mov byte [ebp - 4], 5
call fcn.00404cd0
mov byte [ebp - 4], bl
mov eax, dword [ebp - 0x20]
add eax, 0xfffffff0
lea edx, [eax + 0xc]
or ecx, 0xffffffff
lock xadd dword [edx], ecx
dec ecx
test ecx, ecx
jg 0x41443b
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
lea ecx, [ebp - 0x30]
call fcn.0040eb10
push eax
lea ecx, [ebp - 0x24]
push ecx
mov ebx, str.Funshion_skin1
mov byte [ebp - 4], 6
call fcn.0040a210
add esp, 8
mov byte [ebp - 4], 8
mov eax, dword [ebp - 0x30]
add eax, 0xfffffff0
lea edx, [eax + 0xc]
or ecx, 0xffffffff
lock xadd dword [edx], ecx
dec ecx
test ecx, ecx
jg 0x41447c
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov ecx, dword [ebp - 0x24]
mov edi, dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
push ecx
call edi
cmp eax, 0xffffffff
jne 0x4144dd
lea edx, [ebp - 0x18]
push esi
push edx
mov ebx, str._skin1
call fcn.0040a210
add esp, 8
mov byte [ebp - 4], 9
mov eax, dword [ebp - 0x18]
push eax
call edi
cmp eax, 0xffffffff
je 0x4144ba
lea ecx, [ebp - 0x18]
push ecx
call fcn.0040edd0
add esp, 4
mov byte [ebp - 4], 8
mov eax, dword [ebp - 0x18]
add eax, 0xfffffff0
lea edx, [eax + 0xc]
or ecx, 0xffffffff
lock xadd dword [edx], ecx
dec ecx
test ecx, ecx
jg 0x4144dd
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
lea ecx, [ebp - 0x10]
push ecx
push 0x49363c
call fcn.00408a80
add esp, 8
test eax, eax
jne 0x41458d
mov edx, dword [0x49363c]
push edx
call edi
cmp eax, 0xffffffff
je 0x41458d
lea eax, [ebp - 0x18]
push 0x4776cc
push eax
mov ecx, 0x493644
call fcn.0040a2f0
lea ecx, [ebp - 0x18]
push ecx
lea edx, [ebp - 0x20]
push edx
mov ebx, 0x49363c
mov byte [ebp - 4], 0xa
call fcn.0040a160
lea eax, [ebp - 0x18]
push eax
lea ecx, [ebp - 0x1c]
push ecx
lea ebx, [ebp - 0x10]
mov byte [ebp - 4], 0xb
call fcn.0040a160
mov byte [ebp - 4], 0xc
mov eax, dword [ebp - 0x1c]
add esp, 0x14
add eax, 0xfffffff0
mov dword [ebp - 0x34], esp
mov edi, esp
push eax
call fcn.004018a0
lea edx, [ebp - 0x20]
add esp, 4
add eax, 0x10
push edx
mov dword [edi], eax
call fcn.0040f5e0
add esp, 8
lea ecx, [ebp - 0x1c]
call fcn.00401940
lea ecx, [ebp - 0x20]
call fcn.00401940
lea ecx, [ebp - 0x18]
mov byte [ebp - 4], 8
call fcn.00401940
call fcn.00415e20
call sym.Install.exe_private:_static_class_CFpFunshionIni____cdecl_boost::serialization::singleton_class_CFpFunshionIni_::get_instance_void_
lea ecx, [ebp - 0x10]
push ecx
push 0x493648
mov ecx, 0x493638
mov edi, eax
call fcn.00410750
mov eax, dword [ebp - 0x10]
push ecx
add eax, 0xfffffff0
mov dword [ebp - 0x34], esp
mov edi, esp
push eax
call fcn.004018a0
add esp, 4
lea edx, [ebp - 0x14]
add eax, 0x10
push edx
mov dword [edi], eax
call fcn.00415490
mov byte [ebp - 4], 0xd
mov eax, dword [ebp - 0x14]
cmp dword [eax - 4], 1
jle 0x4145eb
mov eax, dword [eax - 0xc]
push eax
lea ecx, [ebp - 0x14]
call fcn.00401c40
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.0044b013
add esp, 8
test eax, eax
js 0x4146dd
mov ecx, dword [ebp - 0x14]
cmp eax, dword [ecx - 8]
jg 0x4146dd
mov dword [ecx - 0xc], eax
mov edx, dword [ebp - 0x14]
xor ecx, ecx
mov word [edx + eax*2], cx
lea eax, [ebp - 0x20]
push 0x49364c
push eax
lea ebx, [ebp - 0x14]
call fcn.0040a160
mov eax, dword [eax]
add esp, 8
push eax
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
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 0x41465e
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 0x414681
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 - 0x24]
add eax, 0xfffffff0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x4146a4
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 0x4146ca
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
push 0x80070057
call fcn.00401dc0
int3