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

Disassembly:
push 0xffffffffffffffff
push 0x60b951
mov eax, dword fs:[0]
push eax
sub esp, 0xa94
mov eax, dword [0x6687b8]
xor eax, esp
mov dword [esp + 0xa90], eax
push ebx
push ebp
push esi
push edi
mov eax, dword [0x6687b8]
xor eax, esp
push eax
lea eax, [esp + 0xaa8]
mov dword fs:[0], eax
mov eax, dword [0x677600]
mov ebp, dword [esp + 0xab8]
mov edx, dword [eax + 0xc]
mov ecx, 0x677600
mov dword [esp + 0x20], ebp
call edx
add eax, 0x10
mov dword [esp + 0x1c], eax
lea eax, [ebp + 0x1c]
push eax
lea ecx, [esp + 0x2c]
push ecx
mov ebx, str.CompressTmp_SkinPack_
mov dword [esp + 0xab8], 0
call fcn.0040aab0
add esp, 8
mov ebx, 1
lea edi, [esp + 0x1c]
mov byte [esp + 0xab0], bl
call fcn.0040ab90
mov byte [esp + 0xab0], 0
mov eax, dword [esp + 0x28]
add eax, 0xfffffff0
lea edx, [eax + 0xc]
or ecx, 0xffffffff
lock xadd dword [edx], ecx
dec ecx
test ecx, ecx
jg 0x4b2f9a
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov esi, dword [esp + 0x1c]
push ebx
mov ecx, esi
call fcn.004b3b00
push 0
push esi
push 0
call dword [sym.imp.SHELL32.dll_SHCreateDirectoryExW]
lea esi, [esp + 0x44]
call fcn.00498dc0
test byte [0x6809cc], bl
jne 0x4b2fd5
or dword [0x6809cc], ebx
push 0x613990
call fcn.005d268a
add esp, 4
lea ecx, [esp + 0x44]
push ecx
mov ecx, 0x6809c0
call fcn.004993f0
lea edx, [esp + 0x44]
push edx
push ecx
call fcn.0048aa70
add esp, 4
push eax
call fcn.0048ab00
test eax, eax
je 0x4b33fe
cmp dword [eax + 0x18], 0
je 0x4b33fe
mov eax, dword [0x677600]
mov edx, dword [eax + 0xc]
mov ecx, 0x677600
call edx
add eax, 0x10
mov dword [esp + 0x2c], eax
mov byte [esp + 0xab0], 2
mov eax, dword [0x677600]
mov edx, dword [eax + 0xc]
mov ecx, 0x677600
call edx
add eax, 0x10
mov dword [esp + 0x28], eax
mov byte [esp + 0xab0], 3
mov eax, dword [0x677600]
mov edx, dword [eax + 0xc]
mov ecx, 0x677600
call edx
add eax, 0x10
mov dword [esp + 0x3c], eax
mov byte [esp + 0xab0], 4
mov eax, dword [0x677600]
mov edx, dword [eax + 0xc]
mov ecx, 0x677600
call edx
add eax, 0x10
mov dword [esp + 0x40], eax
add ebp, 0x20
lea eax, [esp + 0x24]
push ebp
push eax
mov ebx, str.FramePic_
mov byte [esp + 0xab8], 5
call fcn.0040aab0
lea ecx, [esp + 0x2c]
push ecx
lea edx, [esp + 0x40]
push edx
mov ebx, str.FrameConfig.ini
mov byte [esp + 0xac0], 6
call fcn.0040aab0
lea eax, [esp + 0x2c]
push eax
lea ecx, [esp + 0x44]
push ecx
mov byte [esp + 0xac8], 7
call fcn.0040aab0
push 0x20a
lea edx, [esp + 0x8b0]
push 0
push edx
mov byte [esp + 0xad4], 8
call fcn.005da970
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 0x6244e0
push str.photo
push str.cand
call esi
lea edx, [esp + 0x24]
push edx
lea eax, [esp + 0x1c]
push eax
lea ebx, [esp + 0x89c]
call fcn.0040aab0
add esp, 8
mov byte [esp + 0xab0], 9
lea edi, [esp + 0x28]
call fcn.0040ab90
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 0x4b3162
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.0040aab0
add esp, 8
lea edi, [esp + 0x40]
mov byte [esp + 0xab0], 0xa
call fcn.0040ab90
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 0x4b31b4
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.005da970
mov ecx, dword [esp + 0x40]
add esp, 0xc
push ecx
push 0x104
lea edx, [esp + 0x89c]
push edx
push 0x6244e0
push str.photo
push str.status
call esi
lea eax, [esp + 0x24]
push eax
lea ecx, [esp + 0x1c]
push ecx
lea ebx, [esp + 0x89c]
call fcn.0040aab0
add esp, 8
lea edi, [esp + 0x2c]
mov byte [esp + 0xab0], 0xb
call fcn.0040ab90
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 0x4b325f
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.0040aab0
add esp, 8
lea edi, [esp + 0x3c]
mov byte [esp + 0xab0], 0xc
call fcn.0040ab90
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 0x4b32b1
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 + 0x28]
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 0x4b3314
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 0x4b333c
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 + 0x24]
add eax, 0xfffffff0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x4b3364
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 0x4b3388
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 0x4b33ac
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 0x4b33d0
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 0x4b33f8
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov ebp, dword [esp + 0x20]
jmp 0x4b3404
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.0040aab0
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 0x4b3520
lea eax, [esp + 0x1c]
push eax
lea ecx, [esp + 0x1c]
push ecx
mov ebx, 0x63118c
call fcn.0040aab0
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 0x4b347a
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
test esi, esi
je 0x4b35d4
lea ecx, [esp + 0x1c]
push ecx
lea edx, [esp + 0x24]
push edx
mov ebx, 0x63118c
call fcn.0040aab0
mov esi, eax
lea eax, [esp + 0x24]
push eax
lea ecx, [esp + 0x24]
push ecx
mov byte [esp + 0xac0], 0xe
call fcn.0040aab0
mov byte [esp + 0xac0], 0xf
mov eax, dword [eax]
mov edx, dword [esi]
push 0
mov ecx, eax
call fcn.00571350
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 0x4b34ef
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 0x4b35d4
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
jmp 0x4b35d4
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.0040aab0
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 0x4b356c
call fcn.0040f010
mov edi, eax
jmp 0x4b3574
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 0x4b3594
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 0x4b35c5
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 0x4b35bc
call fcn.0040f010
test esi, esi
je 0x4b35c5
push esi
call edi
xor esi, esi
test esi, esi
mov byte [esp + 0xab0], 0xd
je 0x4b35d4
push esi
call edi
lea edx, [esp + 0x1c]
push edx
lea eax, [esp + 0x1c]
push eax
mov ebx, str.QQPinyin.skp
call fcn.0040aab0
add esp, 8
mov byte [esp + 0xab0], 0x11
mov edi, dword [esp + 0x1c]
mov ecx, dword [eax]
mov edx, edi
call fcn.00570480
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 0x4b3628
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.0040aab0
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.004b3770
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 0x4b3686
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 0x4b36ae
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 0x4b36d5
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.005d28b3
add esp, 0xaa0
ret 8