Function at 0x406da6
Capabilities:
Check if file exists
Copy file
Create directory

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x53ad4d
mov eax, dword fs:[0]
push eax
mov eax, 0x1880
call fcn.0040c2f0
mov eax, dword [0x59c024]
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, ecx
mov esi, dword [ebp + 8]
sub esp, 0x18
mov ecx, esp
push esi
call fcn.004013b0
lea eax, [ebp - 0x1880]
push eax
call fcn.0040ffd2
add esp, 0x1c
xor edi, edi
lea eax, [ebp - 0x1880]
cmp dword [ebp - 0x186c], 8
lea ecx, [ebp - 0x188c]
mov dword [ebp - 4], edi
cmovae eax, dword [ebp - 0x1880]
push eax
call fcn.00411e54
lea ecx, [ebp - 0x188c]
mov byte [ebp - 4], 1
call fcn.00411e9b
test eax, eax
jne 0x407655
push 0x3e8
lea eax, [ebp - 0x600]
push edi
push eax
call fcn.004177a0
add esp, 0xc
lea ecx, [ebp - 0x1850]
push esi
call fcn.004013b0
mov esi, 0x53d454
mov byte [ebp - 4], 2
push esi
call fcn.0041af11
pop ecx
push eax
push edi
push esi
lea ecx, [ebp - 0x1850]
call fcn.00402600
or esi, 0xffffffff
cmp eax, esi
jle 0x406fc7
cmp dword [ebp - 0x183c], 8
lea esi, [ebp - 0x1850]
push 0x53d454
cmovae esi, dword [ebp - 0x1850]
call fcn.0041af11
add esi, 2
lea eax, [esi + eax*2]
push eax
lea eax, [ebp - 0x600]
push eax
call fcn.00423cea
add esp, 0xc
lea ecx, [ebp - 0x1881]
call fcn.00402ba9
lea eax, [ebp - 0x1882]
mov byte [ebp - 4], 3
push eax
lea eax, [ebp - 0x600]
push eax
lea ecx, [ebp - 0x1881]
call fcn.0040b690
test al, al
je 0x40714b
push edi
lea eax, [ebp - 0x600]
push eax
lea ecx, [ebp - 0x1881]
call fcn.0040a24d
push 0x208
lea eax, [ebp - 0x218]
push edi
push eax
call fcn.004177a0
add esp, 0xc
call fcn.004029eb
mov ecx, eax
call fcn.0040d47f
push eax
lea eax, [ebp - 0x218]
push str._sConfig_
push eax
call fcn.00402b60
lea eax, [ebp - 0x218]
push str.Config.ini
push eax
call fcn.00423cea
lea eax, [ebp - 0x600]
push eax
lea eax, [ebp - 0x1838]
push eax
call fcn.004142ae
add esp, 0x1c
mov esi, dword [sym.imp.KERNEL32.dll_WritePrivateProfileStringW]
lea eax, [ebp - 0x218]
push eax
push 0x53c6d4
push str.IsUseSkin
mov edi, str.Setting
mov byte [ebp - 4], 4
push edi
call esi
cmp dword [ebp - 0x1824], 8
lea ecx, [ebp - 0x218]
push ecx
lea eax, [ebp - 0x1838]
cmovae eax, dword [ebp - 0x1838]
push eax
push str.SkinName
push edi
call esi
cmp dword [ebp - 0x1824], 8
lea ecx, [ebp - 0x1838]
movzx eax, byte [ebp - 0x1882]
cmovae ecx, dword [ebp - 0x1838]
push eax
push ecx
call fcn.00402a29
pop ecx
pop ecx
mov ecx, ebx
call fcn.004090b1
xor edi, edi
jmp 0x4071c8
push str._temp
call fcn.0041af11
pop ecx
push eax
push edi
push str._temp
lea ecx, [ebp - 0x1850]
call fcn.00402600
cmp eax, esi
jle 0x4070c6
cmp dword [ebp - 0x183c], 8
lea esi, [ebp - 0x1850]
push str._temp
cmovae esi, dword [ebp - 0x1850]
call fcn.0041af11
add esi, 2
lea eax, [esi + eax*2]
push eax
lea eax, [ebp - 0x600]
push eax
call fcn.00423cea
add esp, 0xc
lea ecx, [ebp - 0x1881]
call fcn.00402ba9
lea eax, [ebp - 0x1882]
mov byte [ebp - 4], 5
push eax
lea eax, [ebp - 0x600]
push eax
lea ecx, [ebp - 0x1881]
call fcn.0040b690
test al, al
je 0x40714b
push 1
lea eax, [ebp - 0x600]
push eax
lea ecx, [ebp - 0x1881]
call fcn.0040a24d
call fcn.004029eb
mov ecx, eax
call fcn.0041473b
mov esi, dword [sym.imp.KERNEL32.dll_WritePrivateProfileStringW]
mov edi, eax
push edi
mov ebx, 0x53c6d4
push ebx
push str.IsModifyUIStyle
push str.SetModify
call esi
push edi
push ebx
push str.IsModifyUIStyle64
push str.SetModify
call esi
push edi
push ebx
push str.IsTempModifyUIStyle
push str.SetModify
call esi
push edi
push ebx
push str.IsTempModifyUIStyle64
push str.SetModify
call esi
mov dword [0x5a7928], 0x64
xor edi, edi
jmp 0x4071e0
push 0x53d470
call fcn.0041af11
pop ecx
push eax
push edi
push 0x53d470
lea ecx, [ebp - 0x1850]
call fcn.00402600
cmp eax, esi
jle 0x4071f0
cmp dword [ebp - 0x183c], 8
lea esi, [ebp - 0x1850]
push 0x53d470
cmovae esi, dword [ebp - 0x1850]
call fcn.0041af11
add esi, 2
lea eax, [esi + eax*2]
push eax
lea eax, [ebp - 0x600]
push eax
call fcn.00423cea
add esp, 0xc
lea ecx, [ebp - 0x1881]
call fcn.00402ba9
lea eax, [ebp - 0x1882]
mov byte [ebp - 4], 6
push eax
lea eax, [ebp - 0x600]
push eax
lea ecx, [ebp - 0x1881]
call fcn.0040b690
test al, al
jne 0x407177
cmp byte [ebp - 0x1882], 0
je 0x40715d
mov ecx, ebx
call fcn.00406cd5
jmp 0x40716f
push edi
push 0x53eda0
push 0x53edac
push edi
call dword [sym.imp.USER32.dll_MessageBoxW]
mov dword [0x5a7928], edi
jmp 0x4071e0
lea eax, [ebp - 0x600]
push eax
lea eax, [ebp - 0x1838]
push eax
call fcn.004142ae
cmp dword [ebp - 0x1824], 8
lea ecx, [ebp - 0x1838]
movzx eax, byte [ebp - 0x1882]
cmovae ecx, dword [ebp - 0x1838]
push eax
push ecx
mov byte [ebp - 4], 7
call fcn.00402a29
add esp, 0x10
mov ecx, ebx
call fcn.004090b1
lea eax, [ebp - 0x1850]
mov ecx, ebx
push eax
call fcn.00407a10
push edi
push 1
lea ecx, [ebp - 0x1838]
mov dword [0x5a7928], 0x64
call fcn.00401420
lea ecx, [ebp - 0x1881]
call fcn.00444e40
jmp 0x407647
push str._bindinst
call fcn.0041af11
pop ecx
push eax
push edi
push str._bindinst
lea ecx, [ebp - 0x1850]
call fcn.00402600
cmp eax, esi
jle 0x407647
mov esi, 0x208
lea eax, [ebp - 0x1410]
push esi
push edi
push eax
call fcn.004177a0
push esi
lea eax, [ebp - 0x218]
push edi
push eax
call fcn.004177a0
push esi
lea eax, [ebp - 0xa10]
push edi
push eax
call fcn.004177a0
push esi
lea eax, [ebp - 0x808]
push edi
push eax
call fcn.004177a0
cmp dword [ebp - 0x183c], 8
lea esi, [ebp - 0x1850]
push str._bindinst
cmovae esi, dword [ebp - 0x1850]
call fcn.0041af11
add esi, 2
lea eax, [esi + eax*2]
push eax
lea eax, [ebp - 0x600]
push eax
call fcn.00423cea
lea eax, [ebp - 0x600]
push eax
lea eax, [ebp - 0x1868]
push eax
call fcn.00414214
add esp, 0x44
cmp dword [ebp - 0x1854], 8
lea eax, [ebp - 0x1868]
mov byte [ebp - 4], 8
cmovae eax, dword [ebp - 0x1868]
push eax
lea eax, [ebp - 0x218]
push eax
call fcn.0041dfc6
mov esi, 0x1f4
lea eax, [ebp - 0xe0c]
push esi
push edi
push eax
call fcn.004177a0
push esi
lea eax, [ebp - 0x1000]
push edi
push eax
call fcn.004177a0
lea eax, [ebp - 0xe0c]
push eax
lea eax, [ebp - 0x218]
push eax
call fcn.0041080a
lea eax, [ebp - 0x1000]
push eax
lea eax, [ebp - 0xe0c]
push eax
call fcn.00414468
lea eax, [ebp - 0x218]
push eax
lea eax, [ebp - 0x1000]
push eax
call fcn.00410313
add esp, 0x38
call fcn.004029eb
mov ecx, eax
call fcn.0040d47f
push eax
push str._sAllSkin_
lea eax, [ebp - 0x808]
push eax
call fcn.00402b60
add esp, 0xc
lea eax, [ebp - 0x808]
push eax
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
jne 0x40735b
push edi
lea eax, [ebp - 0x808]
push eax
call dword [sym.imp.KERNEL32.dll_CreateDirectoryW]
push 0x208
lea eax, [ebp - 0x1208]
push edi
push eax
call fcn.004177a0
mov esi, str..lspf
lea eax, [ebp - 0x1208]
push esi
push str._1__s
push eax
call fcn.00402b60
lea eax, [ebp - 0x1208]
push eax
lea eax, [ebp - 0x218]
push eax
call fcn.004170d4
add esp, 0x20
test eax, eax
je 0x4073b2
xor ecx, ecx
mov word [eax], cx
lea eax, [ebp - 0x218]
push esi
push eax
call fcn.00423cea
pop ecx
pop ecx
lea eax, [ebp - 0x218]
push eax
lea eax, [ebp - 0x1410]
push eax
call fcn.0041dfc6
lea eax, [ebp - 0x1410]
push esi
push eax
call fcn.004170d4
add esp, 0x10
test eax, eax
je 0x4073de
xor ecx, ecx
mov word [eax], cx
lea eax, [ebp - 0x218]
push eax
lea eax, [ebp - 0x808]
push eax
lea eax, [ebp - 0xa10]
push 0x53c65c
push eax
call fcn.00402b60
mov esi, 0x208
lea eax, [ebp - 0x1618]
push esi
push edi
push eax
call fcn.004177a0
push esi
lea eax, [ebp - 0x1820]
push edi
push eax
call fcn.004177a0
lea eax, [ebp - 0x600]
push eax
lea eax, [ebp - 0x1618]
push eax
call fcn.0041dfc6
lea eax, [ebp - 0xa10]
push eax
lea eax, [ebp - 0x1820]
push eax
call fcn.0041dfc6
lea eax, [ebp - 0x1618]
push eax
call fcn.004240c5
mov esi, eax
lea eax, [ebp - 0x1820]
push eax
call fcn.004240c5
add esp, 0x40
lea ecx, [ebp - 0x1881]
mov edi, eax
call fcn.00402ba9
lea eax, [ebp - 0x1882]
mov byte [ebp - 4], 9
push eax
lea eax, [ebp - 0x600]
push eax
lea ecx, [ebp - 0x1881]
call fcn.0040b690
test al, al
jne 0x4074c1
cmp byte [ebp - 0x1882], al
je 0x4074a2
mov ecx, ebx
call fcn.00406cd5
xor edi, edi
jmp 0x4074b6
xor edi, edi
push edi
push 0x53eda0
push 0x53edac
push edi
call dword [sym.imp.USER32.dll_MessageBoxW]
mov dword [0x5a7928], edi
jmp 0x40762e
push 0
lea eax, [ebp - 0xa10]
push eax
lea eax, [ebp - 0x600]
push eax
call dword [sym.imp.KERNEL32.dll_CopyFileW]
push edi
push esi
call fcn.0041df86
pop ecx
pop ecx
push 0
lea eax, [ebp - 0xa10]
push eax
lea ecx, [ebp - 0x1881]
call fcn.0040a24d
call fcn.004029eb
mov ecx, eax
call fcn.0041473b
mov edi, dword [sym.imp.KERNEL32.dll_WritePrivateProfileStringW]
mov esi, eax
push esi
push 0x53c6d4
push str.IsModifyUIStyle
push str.SetModify
call edi
push esi
push 0x53c6d4
push str.IsModifyUIStyle64
push str.SetModify
call edi
push esi
push 0x53c6d4
push str.IsTempModifyUIStyle
push str.SetModify
call edi
push esi
mov esi, 0x53c6d4
push esi
push str.IsTempModifyUIStyle64
push str.SetModify
call edi
push 0x208
lea eax, [ebp - 0xc18]
push 0
push eax
call fcn.004177a0
add esp, 0xc
call fcn.004029eb
mov ecx, eax
call fcn.0040d47f
push eax
lea eax, [ebp - 0xc18]
push str._sConfig_
push eax
call fcn.00402b60
lea eax, [ebp - 0xc18]
push str.Config.ini
push eax
call fcn.00423cea
lea eax, [ebp - 0x600]
push eax
lea eax, [ebp - 0x1838]
push eax
call fcn.004142ae
add esp, 0x1c
lea eax, [ebp - 0xc18]
mov byte [ebp - 4], 0xa
push eax
push esi
push str.IsUseSkin
mov esi, str.Setting
push esi
call edi
cmp dword [ebp - 0x1824], 8
lea eax, [ebp - 0x1838]
lea ecx, [ebp - 0xc18]
cmovae eax, dword [ebp - 0x1838]
push ecx
push eax
push str.SkinName
push esi
call edi
cmp dword [ebp - 0x1824], 8
lea ecx, [ebp - 0x1838]
movzx eax, byte [ebp - 0x1882]
cmovae ecx, dword [ebp - 0x1838]
push eax
push ecx
call fcn.00402a29
pop ecx
pop ecx
mov ecx, ebx
call fcn.004090b1
xor edi, edi
mov dword [0x5a7928], 0x64
push edi
push 1
lea ecx, [ebp - 0x1838]
call fcn.00401420
lea ecx, [ebp - 0x1881]
call fcn.00444e40
push edi
push 1
lea ecx, [ebp - 0x1868]
call fcn.00401420
push edi
push 1
lea ecx, [ebp - 0x1850]
call fcn.00401420
lea ecx, [ebp - 0x188c]
call fcn.00411e69
push edi
push 1
lea ecx, [ebp - 0x1880]
call fcn.00401420
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.0040c19b
mov esp, ebp
pop ebp
ret 4