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

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x48f230
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.0040c120
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 0x413796
lea eax, [edi - 0x10]
mov dword [ebp - 4], ebx
lea ecx, [eax + 0xc]
lock xadd dword [ecx], ebx
dec ebx
test ebx, ebx
jg 0x41377d
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.00413c50
test eax, eax
jne 0x4137d6
lea eax, [edi - 0x10]
mov dword [ebp - 4], ebx
lea ecx, [eax + 0xc]
lock xadd dword [ecx], ebx
dec ebx
test ebx, ebx
jg 0x4137bd
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.00413d60
push eax
lea eax, [ebp - 0x24]
push eax
mov byte [ebp - 4], 1
call fcn.00406660
add esp, 8
lea ecx, [ebp - 0x10]
push ecx
mov ebx, eax
mov byte [ebp - 4], 2
call fcn.00407c50
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 0x413849
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 0x41386c
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 0x4138bf
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 0x4138a7
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 0x413771
mov edi, dword [ebp + 8]
lea eax, [ebp - 0x10]
call fcn.00404e40
lea ecx, [ebp + 0xc]
push ecx
call fcn.00413500
mov edi, 0x4c9b2c
mov byte [ebp - 4], 6
call fcn.00404e40
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 0x413902
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
lea ecx, [ebp - 0x2c]
call fcn.0040d790
push eax
lea ecx, [ebp - 0x20]
push ecx
mov ebx, str.Funshion_skin2
mov byte [ebp - 4], 7
call fcn.00406660
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 0x413942
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 0x4139a4
lea edx, [ebp + 0xc]
push 0x4c9b2c
push edx
mov ebx, str._skin1
call fcn.00406660
add esp, 8
mov byte [ebp - 4], 0xa
mov eax, dword [ebp + 0xc]
push eax
call edi
cmp eax, esi
je 0x413982
lea ecx, [ebp + 0xc]
push ecx
call fcn.0040da50
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 0x4139a4
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.0040a670
add esp, 8
test eax, eax
jne 0x413a53
mov edx, dword [0x4c9b2c]
push edx
call edi
cmp eax, esi
je 0x413a53
lea eax, [ebp + 0xc]
push 0x49ce40
push eax
mov ecx, 0x4c9b34
call fcn.0040c190
lea ecx, [ebp + 0xc]
push ecx
lea edx, [ebp - 0x1c]
push edx
mov ebx, 0x4c9b2c
mov byte [ebp - 4], 0xb
call fcn.00407c50
lea eax, [ebp + 0xc]
push eax
lea ecx, [ebp + 8]
push ecx
lea ebx, [ebp - 0x10]
mov byte [ebp - 4], 0xc
call fcn.00407c50
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.0040e1b0
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.004154b0
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.0040f3f0
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.00414b50
mov byte [ebp - 4], 0xe
mov eax, dword [ebp - 0x14]
cmp dword [eax - 4], 1
jle 0x413ab1
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.0046aecf
add esp, 8
test eax, eax
js 0x413bbe
mov ecx, dword [ebp - 0x14]
cmp eax, dword [ecx - 8]
jg 0x413bbe
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.00407c50
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 0x413b23
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 0x413b45
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 0x413b67
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 0x413b89
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 0x413ba8
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.00401ae0
int3