Function at 0x40ef70
Capabilities:
Check if file exists

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x58467f
mov eax, dword fs:[0]
push eax
sub esp, 0xbd8
mov eax, dword [0x60c044]
xor eax, ebp
mov dword [ebp - 0x10], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov ebx, dword [ebp + 8]
lea eax, [ebp - 0x7e0]
push 0x3e8
push 0
push eax
call fcn.0042d010
push 0x3e8
lea eax, [ebp - 0xbc8]
push 0
push eax
call fcn.0042d010
push 0x3e8
lea eax, [ebp - 0x3f8]
push 0
push eax
call fcn.0042d010
mov eax, dword [0x61654c]
add esp, 0x24
test eax, eax
jne 0x40f013
push 0x1d4
call fcn.0041b454
add esp, 4
mov dword [ebp - 0xbe4], eax
mov ecx, eax
mov dword [ebp - 4], 0
call fcn.00409040
mov dword [ebp - 4], 0xffffffff
mov dword [0x61654c], eax
mov ecx, eax
call fcn.0041f60f
mov esi, eax
mov eax, dword [0x61654c]
test eax, eax
jne 0x40f052
push 0x1d4
call fcn.0041b454
add esp, 4
mov dword [ebp - 0xbe4], eax
mov ecx, eax
mov dword [ebp - 4], 1
call fcn.00409040
mov dword [ebp - 4], 0xffffffff
mov dword [0x61654c], eax
mov ecx, eax
call fcn.00426ba1
push eax
lea eax, [ebp - 0x7e0]
push 0x6012c8
push eax
call fcn.004030d0
lea eax, [ebp - 0x7e0]
push eax
call fcn.00428f6f
push str..wnpf
push ebx
push esi
lea eax, [ebp - 0x3f8]
push str._sSkin_s_s
push eax
call fcn.004030d0
add esp, 0x24
lea eax, [ebp - 0x3f8]
push eax
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
jne 0x40f0fb
mov eax, dword [0x61654c]
test eax, eax
jne 0x40f0d9
push 0x1d4
call fcn.0041b454
add esp, 4
mov dword [ebp - 0xbe4], eax
mov ecx, eax
mov dword [ebp - 4], 2
call fcn.00409040
mov dword [ebp - 4], 0xffffffff
mov dword [0x61654c], eax
push str..wnpf
push ebx
mov ecx, eax
call fcn.0041f603
push eax
lea eax, [ebp - 0x3f8]
push str._sAllSkin_s_s
push eax
call fcn.004030d0
add esp, 0x14
lea eax, [ebp - 0x3f8]
push eax
push str.WnSkinInst.exe
push esi
lea eax, [ebp - 0xbc8]
push str._s_s__untie__s
push eax
call fcn.004030d0
lea eax, [ebp - 0xbc8]
push eax
call fcn.00428eaa
add esp, 0x18
mov ecx, str.default
mov eax, ebx
nop
mov dx, word [eax]
cmp dx, word [ecx]
jne 0x40f156
test dx, dx
je 0x40f152
mov dx, word [eax + 2]
cmp dx, word [ecx + 2]
jne 0x40f156
add eax, 4
add ecx, 4
test dx, dx
jne 0x40f130
xor eax, eax
jmp 0x40f15b
sbb eax, eax
or eax, 1
test eax, eax
jne 0x40f168
call fcn.00429fc5
push 0
jmp 0x40f16f
call fcn.00429fc5
push 1
mov edx, dword [eax]
mov ecx, eax
push 0x4f
call dword [edx + 0x14]
mov eax, dword [0x616774]
test eax, eax
jne 0x40f19c
push 4
call fcn.0041b454
mov dword [ebp - 0xbe4], eax
add esp, 4
mov dword [0x616774], eax
mov dword [eax], vtable.CShareConfigManager.0
mov edx, dword [eax]
mov ecx, eax
push 0x8c
call dword [edx]
lea esi, [eax + 1]
mov eax, dword [0x616774]
test eax, eax
jne 0x40f1ce
push 4
call fcn.0041b454
mov dword [ebp - 0xbe4], eax
add esp, 4
mov dword [0x616774], eax
mov dword [eax], vtable.CShareConfigManager.0
mov edx, dword [eax]
mov ecx, eax
push esi
push 0x8c
call dword [edx + 0xc]
mov eax, dword [0x616774]
test eax, eax
jne 0x40f1ff
push 4
call fcn.0041b454
mov dword [ebp - 0xbe4], eax
add esp, 4
mov dword [0x616774], eax
mov dword [eax], vtable.CShareConfigManager.0
mov edx, dword [eax]
mov ecx, eax
push esi
push 0x8c
call dword [edx + 0x48]
mov eax, dword [0x61654c]
test eax, eax
jne 0x40f242
push 0x1d4
call fcn.0041b454
add esp, 4
mov dword [ebp - 0xbe4], eax
mov ecx, eax
mov dword [ebp - 4], 3
call fcn.00409040
mov dword [ebp - 4], 0xffffffff
mov dword [0x61654c], eax
mov ecx, eax
call fcn.00426a6c
mov esi, dword [sym.imp.KERNEL32.dll_WritePrivateProfileStringW]
mov edi, eax
push edi
push 0x5ff2b0
push str.IsModifyUIStyle64
push str.SetModify
call esi
push edi
push 0x5ff2b0
push str.IsModifyUIStyle
push str.SetModify
call esi
push edi
push 0x5ff2b0
push str.IsTempModifyUIStyle64
push str.SetModify
call esi
push edi
push 0x5ff2b0
push str.IsTempModifyUIStyle
push str.SetModify
call esi
xor eax, eax
mov dword [ebp - 0xbcc], 7
mov dword [ebp - 0xbd0], 0
mov word [ebp - 0xbe0], ax
cmp word [ebx], ax
jne 0x40f2bf
xor ecx, ecx
jmp 0x40f2d3
mov ecx, ebx
lea edx, [ecx + 2]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x40f2c4
sub ecx, edx
sar ecx, 1
push ecx
push ebx
lea ecx, [ebp - 0xbe0]
call fcn.00403620
mov dword [ebp - 4], 4
call fcn.00429fc5
lea ecx, [ebp - 0xbe0]
push ecx
push 0x91
mov edx, dword [eax]
mov ecx, eax
call dword [edx + 0xc]
mov dword [ebp - 4], 0xffffffff
mov eax, dword [ebp - 0xbcc]
cmp eax, 8
jb 0x40f324
inc eax
lea ecx, [ebp - 0xbe0]
push eax
push dword [ebp - 0xbe0]
call fcn.00403830
xor eax, eax
mov dword [ebp - 0xbcc], 7
push str.wnwb.exe
mov dword [ebp - 0xbd0], 0
mov word [ebp - 0xbe0], ax
call fcn.004293c2
add esp, 4
test eax, eax
je 0x40f37c
push 0x602038
push 0
call dword [sym.imp.USER32.dll_FindWindowW]
mov esi, eax
push esi
call dword [sym.imp.USER32.dll_IsWindow]
test eax, eax
je 0x40f37c
push 0
push 0
push 0x7f0
push esi
call dword [sym.imp.USER32.dll_PostMessageW]
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.0041b443
mov esp, ebp
pop ebp
ret 4