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

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x48ecd0
mov eax, dword fs:[0]
push eax
sub esp, 0x24
push ebx
push esi
push edi
mov eax, dword [0x4bf1d0]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov esi, ecx
mov eax, 2
lea ecx, [ebp - 0x18]
mov edx, esi
call fcn.0040c130
mov dword [ebp - 4], 0
mov edi, dword [ebp - 0x18]
push edi
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
or ebx, 0xffffffff
cmp eax, ebx
jne 0x413906
lea eax, [edi - 0x10]
mov dword [ebp - 4], ebx
lea ecx, [eax + 0xc]
lock xadd dword [ecx], ebx
dec ebx
test ebx, ebx
jg 0x4138ed
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
mov edx, esi
call fcn.00413dc0
test eax, eax
jne 0x413946
lea eax, [edi - 0x10]
mov dword [ebp - 4], ebx
lea ecx, [eax + 0xc]
lock xadd dword [ecx], ebx
dec ebx
test ebx, ebx
jg 0x41392d
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]
mov eax, dword [esi]
push ecx
push ecx
sub eax, 0x10
mov dword [ebp + 0xc], esp
mov edi, esp
push eax
mov ebx, 0x49ce40
call fcn.004015d0
add esp, 4
lea edx, [ebp - 0x28]
add eax, 0x10
push edx
mov dword [edi], eax
call fcn.00413ed0
push eax
lea eax, [ebp - 0x24]
push eax
mov byte [ebp - 4], 1
call fcn.00406650
add esp, 8
lea ecx, [ebp - 0x10]
push ecx
mov ebx, eax
mov byte [ebp - 4], 2
call fcn.00407c40
add esp, 8
mov byte [ebp - 4], 4
mov eax, dword [ebp - 0x24]
add eax, 0xfffffff0
or esi, 0xffffffff
lea edx, [eax + 0xc]
mov ecx, esi
lock xadd dword [edx], ecx
dec ecx
test ecx, ecx
jg 0x4139b9
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov bl, 5
mov byte [ebp - 4], bl
mov eax, dword [ebp - 0x28]
add eax, 0xfffffff0
lea ecx, [eax + 0xc]
mov edx, esi
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x4139dc
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov ecx, dword [ebp - 0x10]
push ecx
push 0
call dword [sym.imp.SHELL32.dll_SHCreateDirectory]
mov edx, dword [ebp - 0x10]
push edx
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
jne 0x413a2f
mov byte [ebp - 4], al
mov eax, dword [ebp - 0x10]
add eax, 0xfffffff0
lea ecx, [eax + 0xc]
mov edx, esi
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x413a17
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov dword [ebp - 4], esi
mov eax, dword [ebp - 0x18]
add eax, 0xfffffff0
lea ecx, [eax + 0xc]
lock xadd dword [ecx], esi
dec esi
test esi, esi
jmp 0x4138e1
mov edi, dword [ebp + 8]
lea eax, [ebp - 0x10]
call fcn.00404e60
lea ecx, [ebp + 0xc]
push ecx
call fcn.00413670
mov edi, 0x4c9b2c
mov byte [ebp - 4], 6
call fcn.00404e60
mov byte [ebp - 4], bl
mov eax, dword [ebp + 0xc]
add eax, 0xfffffff0
lea edx, [eax + 0xc]
mov ecx, esi
lock xadd dword [edx], ecx
dec ecx
test ecx, ecx
jg 0x413a72
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
lea ecx, [ebp - 0x2c]
call fcn.0040d840
push eax
lea ecx, [ebp - 0x20]
push ecx
mov ebx, str.Funshion_skin2
mov byte [ebp - 4], 7
call fcn.00406650
add esp, 8
mov byte [ebp - 4], 9
mov eax, dword [ebp - 0x2c]
add eax, 0xfffffff0
lea edx, [eax + 0xc]
mov ecx, esi
lock xadd dword [edx], ecx
dec ecx
test ecx, ecx
jg 0x413ab2
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, esi
je 0x413b14
lea edx, [ebp + 0xc]
push 0x4c9b2c
push edx
mov ebx, str._skin1
call fcn.00406650
add esp, 8
mov byte [ebp - 4], 0xa
mov eax, dword [ebp + 0xc]
push eax
call edi
cmp eax, esi
je 0x413af2
lea ecx, [ebp + 0xc]
push ecx
call fcn.0040db00
add esp, 4
mov byte [ebp - 4], 9
mov eax, dword [ebp + 0xc]
add eax, 0xfffffff0
lea edx, [eax + 0xc]
mov ecx, esi
lock xadd dword [edx], ecx
dec ecx
test ecx, ecx
jg 0x413b14
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
lea ecx, [ebp - 0x10]
push ecx
push 0x4c9b2c
call fcn.0040a680
add esp, 8
test eax, eax
jne 0x413bc3
mov edx, dword [0x4c9b2c]
push edx
call edi
cmp eax, esi
je 0x413bc3
lea eax, [ebp + 0xc]
push 0x49ce40
push eax
mov ecx, 0x4c9b34
call fcn.0040c1a0
lea ecx, [ebp + 0xc]
push ecx
lea edx, [ebp - 0x1c]
push edx
mov ebx, 0x4c9b2c
mov byte [ebp - 4], 0xb
call fcn.00407c40
lea eax, [ebp + 0xc]
push eax
lea ecx, [ebp + 8]
push ecx
lea ebx, [ebp - 0x10]
mov byte [ebp - 4], 0xc
call fcn.00407c40
mov byte [ebp - 4], 0xd
mov eax, dword [ebp + 8]
add esp, 0x14
add eax, 0xfffffff0
mov dword [ebp - 0x30], esp
mov edi, esp
push eax
call fcn.004015d0
lea edx, [ebp - 0x1c]
add esp, 4
add eax, 0x10
push edx
mov dword [edi], eax
call fcn.0040e260
add esp, 8
lea ecx, [ebp + 8]
call fcn.00401670
lea ecx, [ebp - 0x1c]
call fcn.00401670
lea ecx, [ebp + 0xc]
mov byte [ebp - 4], 9
call fcn.00401670
call fcn.00415620
call sym.Install.exe_private:_static_class_CFpFunshionIni____cdecl_boost::serialization::singleton_class_CFpFunshionIni_::get_instance_void_
lea ecx, [ebp - 0x10]
push ecx
push 0x4c9b38
mov ecx, 0x4c9b28
mov edi, eax
call fcn.0040f4a0
mov eax, dword [ebp - 0x10]
push ecx
add eax, 0xfffffff0
mov dword [ebp + 0xc], esp
mov edi, esp
push eax
call fcn.004015d0
add esp, 4
lea edx, [ebp - 0x14]
add eax, 0x10
push edx
mov dword [edi], eax
call fcn.00414cc0
mov byte [ebp - 4], 0xe
mov eax, dword [ebp - 0x14]
cmp dword [eax - 4], 1
jle 0x413c21
mov eax, dword [eax - 0xc]
push eax
lea ecx, [ebp - 0x14]
call fcn.00401970
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.0046aa7f
add esp, 8
test eax, eax
js 0x413d2e
mov ecx, dword [ebp - 0x14]
cmp eax, dword [ecx - 8]
jg 0x413d2e
mov dword [ecx - 0xc], eax
mov edx, dword [ebp - 0x14]
xor ecx, ecx
mov word [edx + eax*2], cx
lea eax, [ebp + 0xc]
push 0x4c9b3c
push eax
lea ebx, [ebp - 0x14]
call fcn.00407c40
mov eax, dword [eax]
add esp, 8
push eax
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
mov eax, dword [ebp + 0xc]
add eax, 0xfffffff0
lea ecx, [eax + 0xc]
mov edx, esi
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x413c93
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov byte [ebp - 4], 9
mov eax, dword [ebp - 0x14]
add eax, 0xfffffff0
lea ecx, [eax + 0xc]
mov edx, esi
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x413cb5
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov byte [ebp - 4], 5
mov eax, dword [ebp - 0x20]
add eax, 0xfffffff0
lea ecx, [eax + 0xc]
mov edx, esi
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x413cd7
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov byte [ebp - 4], 0
mov eax, dword [ebp - 0x10]
add eax, 0xfffffff0
lea ecx, [eax + 0xc]
mov edx, esi
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x413cf9
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov dword [ebp - 4], esi
mov eax, dword [ebp - 0x18]
add eax, 0xfffffff0
lea ecx, [eax + 0xc]
lock xadd dword [ecx], esi
dec esi
test esi, esi
jg 0x413d18
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
push 0x80070057
call fcn.00401af0
int3