Function at 0x49e270
Capabilities:
Check if file exists
Copy file
Create directory
Read .ini file
Write file on windows

Disassembly:
push 0xffffffffffffffff
push 0x5acf11
mov eax, dword fs:[0]
push eax
sub esp, 0xa94
mov eax, dword [0x5f13cc]
xor eax, esp
mov dword [esp + 0xa90], eax
push ebx
push ebp
push esi
push edi
mov eax, dword [0x5f13cc]
xor eax, esp
push eax
lea eax, [esp + 0xaa8]
mov dword fs:[0], eax
mov eax, dword [0x5fcd20]
mov ebp, dword [esp + 0xab8]
mov edx, dword [eax + 0xc]
mov ecx, 0x5fcd20
mov dword [esp + 0x20], ebp
call edx
add eax, 0x10
mov dword [esp + 0x1c], eax
lea esi, [ebp + 0x1c]
lea eax, [esp + 0x24]
push esi
push eax
mov ebx, str.CompressTmp_SkinPack_
mov dword [esp + 0xab8], 0
call fcn.00412480
add esp, 8
lea edi, [esp + 0x1c]
mov byte [esp + 0xab0], 1
call fcn.004035d0
mov byte [esp + 0xab0], 0
mov eax, dword [esp + 0x24]
add eax, 0xfffffff0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x49e326
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov edi, dword [esp + 0x1c]
push 1
mov ecx, edi
call fcn.0049eeb0
lea ecx, [esp + 0x1c]
push ecx
lea edx, [esp + 0x28]
push edx
mov ebx, esi
call fcn.00423280
mov eax, dword [eax]
mov esi, dword [sym.imp.SHELL32.dll_SHCreateDirectoryExW]
add esp, 8
push 0
push eax
push 0
call esi
mov eax, dword [esp + 0x24]
add eax, 0xfffffff0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x49e376
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov ebx, 1
push ebx
mov ecx, edi
call fcn.0049eeb0
push 0
push edi
push 0
call esi
lea esi, [esp + 0x44]
call fcn.00484590
test byte [0x6036fc], bl
jne 0x49e3ae
or dword [0x6036fc], ebx
push 0x5afe30
call fcn.0057a6a7
add esp, 4
lea ecx, [esp + 0x44]
push ecx
mov ecx, 0x6036dc
call fcn.00484bc0
lea edx, [esp + 0x44]
push edx
push ecx
call fcn.0047e920
add esp, 4
push eax
call fcn.0047e9b0
test eax, eax
je 0x49e7d7
cmp dword [eax + 0x18], 0
je 0x49e7d7
mov eax, dword [0x5fcd20]
mov edx, dword [eax + 0xc]
mov ecx, 0x5fcd20
call edx
add eax, 0x10
mov dword [esp + 0x2c], eax
mov byte [esp + 0xab0], 2
mov eax, dword [0x5fcd20]
mov edx, dword [eax + 0xc]
mov ecx, 0x5fcd20
call edx
add eax, 0x10
mov dword [esp + 0x24], eax
mov byte [esp + 0xab0], 3
mov eax, dword [0x5fcd20]
mov edx, dword [eax + 0xc]
mov ecx, 0x5fcd20
call edx
add eax, 0x10
mov dword [esp + 0x3c], eax
mov byte [esp + 0xab0], 4
mov eax, dword [0x5fcd20]
mov edx, dword [eax + 0xc]
mov ecx, 0x5fcd20
call edx
add eax, 0x10
mov dword [esp + 0x40], eax
add ebp, 0x20
lea eax, [esp + 0x28]
push ebp
push eax
mov ebx, str.FramePic_
mov byte [esp + 0xab8], 5
call fcn.00412480
lea ecx, [esp + 0x30]
push ecx
lea edx, [esp + 0x40]
push edx
mov ebx, str.FrameConfig.ini
mov byte [esp + 0xac0], 6
call fcn.00412480
lea eax, [esp + 0x2c]
push eax
lea ecx, [esp + 0x44]
push ecx
mov byte [esp + 0xac8], 7
call fcn.00412480
push 0x20a
lea edx, [esp + 0x8b0]
push 0
push edx
mov byte [esp + 0xad4], 8
call fcn.00580260
mov eax, dword [esp + 0x58]
mov esi, dword [sym.imp.KERNEL32.dll_GetPrivateProfileStringW]
add esp, 0x24
push eax
push 0x104
lea ecx, [esp + 0x89c]
push ecx
push 0x5bcc3c
push str.photo
push str.cand
call esi
lea edx, [esp + 0x28]
push edx
lea eax, [esp + 0x1c]
push eax
lea ebx, [esp + 0x89c]
call fcn.00412480
add esp, 8
mov byte [esp + 0xab0], 9
lea edi, [esp + 0x24]
call fcn.004035d0
mov byte [esp + 0xab0], 8
mov eax, dword [esp + 0x18]
add eax, 0xfffffff0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x49e53b
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
lea ecx, [esp + 0x1c]
push ecx
lea edx, [esp + 0x1c]
push edx
lea ebx, [esp + 0x89c]
call fcn.00412480
add esp, 8
lea edi, [esp + 0x40]
mov byte [esp + 0xab0], 0xa
call fcn.004035d0
mov byte [esp + 0xab0], 8
mov eax, dword [esp + 0x18]
add eax, 0xfffffff0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x49e58d
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov ecx, dword [esp + 0x30]
mov ebp, dword [sym.imp.KERNEL32.dll_WritePrivateProfileStringW]
push ecx
lea edx, [esp + 0x898]
push edx
push str.photo
push str.cand
call ebp
push 0x20a
lea eax, [esp + 0x898]
push 0
push eax
call fcn.00580260
mov ecx, dword [esp + 0x40]
add esp, 0xc
push ecx
push 0x104
lea edx, [esp + 0x89c]
push edx
push 0x5bcc3c
push str.photo
push str.status
call esi
lea eax, [esp + 0x28]
push eax
lea ecx, [esp + 0x1c]
push ecx
lea ebx, [esp + 0x89c]
call fcn.00412480
add esp, 8
lea edi, [esp + 0x2c]
mov byte [esp + 0xab0], 0xb
call fcn.004035d0
mov byte [esp + 0xab0], 8
mov eax, dword [esp + 0x18]
add eax, 0xfffffff0
lea edx, [eax + 0xc]
or ecx, 0xffffffff
lock xadd dword [edx], ecx
dec ecx
test ecx, ecx
jg 0x49e638
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
lea ecx, [esp + 0x1c]
push ecx
lea edx, [esp + 0x1c]
push edx
lea ebx, [esp + 0x89c]
call fcn.00412480
add esp, 8
lea edi, [esp + 0x3c]
mov byte [esp + 0xab0], 0xc
call fcn.004035d0
mov byte [esp + 0xab0], 8
mov eax, dword [esp + 0x18]
add eax, 0xfffffff0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x49e68a
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov ecx, dword [esp + 0x30]
push ecx
lea edx, [esp + 0x898]
push edx
push str.photo
push str.status
call ebp
mov ebx, dword [esp + 0x3c]
mov eax, dword [esp + 0x2c]
mov edi, dword [sym.imp.KERNEL32.dll_CopyFileW]
push 0
push ebx
push eax
call edi
mov esi, dword [esp + 0x40]
mov ebp, dword [esp + 0x24]
push 0
push esi
push ebp
call edi
mov byte [esp + 0xab0], 7
mov eax, dword [esp + 0x30]
add eax, 0xfffffff0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x49e6ed
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov byte [esp + 0xab0], 6
mov eax, dword [esp + 0x34]
add eax, 0xfffffff0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x49e715
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov byte [esp + 0xab0], 5
mov eax, dword [esp + 0x28]
add eax, 0xfffffff0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x49e73d
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
lea eax, [esi - 0x10]
mov byte [esp + 0xab0], 4
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x49e761
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
lea eax, [ebx - 0x10]
mov byte [esp + 0xab0], 3
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x49e785
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
lea eax, [ebp - 0x10]
mov byte [esp + 0xab0], 2
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x49e7a9
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov byte [esp + 0xab0], 0
mov eax, dword [esp + 0x2c]
add eax, 0xfffffff0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x49e7d1
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov ebp, dword [esp + 0x20]
jmp 0x49e7dd
mov edi, dword [sym.imp.KERNEL32.dll_CopyFileW]
add ebp, 0x20
lea ecx, [esp + 0x38]
push ebp
push ecx
mov ebx, str.CurrentSkin.skn
call fcn.00412480
add esp, 8
mov byte [esp + 0xab0], 0xd
mov edx, dword [esp + 0x38]
push edx
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
je 0x49e8f9
lea eax, [esp + 0x1c]
push eax
lea ecx, [esp + 0x1c]
push ecx
mov ebx, 0x5c0400
call fcn.00412480
mov eax, dword [eax]
mov edx, dword [esp + 0x40]
add esp, 8
push 0
push eax
push edx
call edi
mov esi, eax
mov eax, dword [esp + 0x18]
add eax, 0xfffffff0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x49e853
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
test esi, esi
je 0x49e9ad
lea ecx, [esp + 0x1c]
push ecx
lea edx, [esp + 0x24]
push edx
mov ebx, 0x5c0400
call fcn.00412480
mov esi, eax
lea eax, [esp + 0x24]
push eax
lea ecx, [esp + 0x24]
push ecx
mov byte [esp + 0xac0], 0xe
call fcn.00412480
mov byte [esp + 0xac0], 0xf
mov eax, dword [eax]
mov edx, dword [esi]
push 0
mov ecx, eax
call fcn.00522e90
mov byte [esp + 0xac4], 0xe
mov eax, dword [esp + 0x2c]
add eax, 0xfffffff0
add esp, 0x14
lea edx, [eax + 0xc]
or ecx, 0xffffffff
lock xadd dword [edx], ecx
dec ecx
test ecx, ecx
jg 0x49e8c8
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov byte [esp + 0xab0], 0xd
mov eax, dword [esp + 0x20]
add eax, 0xfffffff0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x49e9ad
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
jmp 0x49e9ad
xor esi, esi
mov dword [esp + 0x18], esi
lea ecx, [esp + 0x1c]
push ecx
lea edx, [esp + 0x24]
push edx
mov ebx, str.DefaultSkinCoverPack
mov byte [esp + 0xab8], 0x10
call fcn.00412480
mov eax, dword [eax]
add esp, 8
push esi
push 0x80
push 2
push esi
push 1
push 0x40000000
push eax
call dword [sym.imp.KERNEL32.dll_CreateFileW]
cmp eax, 0xffffffff
jne 0x49e945
call fcn.004129d0
mov edi, eax
jmp 0x49e94d
mov esi, eax
mov dword [esp + 0x18], esi
xor edi, edi
mov eax, dword [esp + 0x20]
add eax, 0xfffffff0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x49e96d
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
test edi, edi
mov edi, dword [sym.imp.KERNEL32.dll_CloseHandle]
jne 0x49e99e
push 0
lea ecx, [esp + 0x1c]
push ecx
push 0x48
push str.10000000_0000_0000_0000_000000000001
push esi
call dword [sym.imp.KERNEL32.dll_WriteFile]
test eax, eax
jne 0x49e995
call fcn.004129d0
test esi, esi
je 0x49e99e
push esi
call edi
xor esi, esi
test esi, esi
mov byte [esp + 0xab0], 0xd
je 0x49e9ad
push esi
call edi
lea edx, [esp + 0x1c]
push edx
lea eax, [esp + 0x1c]
push eax
mov ebx, str.QQPinyin.skp
call fcn.00412480
add esp, 8
mov byte [esp + 0xab0], 0x11
mov edi, dword [esp + 0x1c]
mov ecx, dword [eax]
mov edx, edi
call fcn.00521fc0
mov byte [esp + 0xab0], 0xd
mov eax, dword [esp + 0x18]
add eax, 0xfffffff0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x49ea01
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
lea ecx, [esp + 0x1c]
push ecx
lea edx, [esp + 0x1c]
push edx
mov ebx, str.QQPinyin.skp
call fcn.00412480
add esp, 8
mov ecx, dword [esp + 0xabc]
push 0x534b4e50
mov byte [esp + 0xab4], 0x12
mov eax, dword [eax]
push ecx
push eax
call fcn.0049eb40
mov esi, eax
mov byte [esp + 0xab0], 0xd
mov eax, dword [esp + 0x18]
add eax, 0xfffffff0
lea edx, [eax + 0xc]
or ecx, 0xffffffff
lock xadd dword [edx], ecx
dec ecx
test ecx, ecx
jg 0x49ea5f
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov byte [esp + 0xab0], 0
mov eax, dword [esp + 0x38]
add eax, 0xfffffff0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x49ea87
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
lea eax, [edi - 0x10]
mov dword [esp + 0xab0], 0xffffffff
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x49eaae
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov eax, esi
mov ecx, dword [esp + 0xaa8]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebp
pop ebx
mov ecx, dword [esp + 0xa90]
xor ecx, esp
call fcn.005787fd
add esp, 0xaa0
ret 8