Function at 0x49d530
Capabilities:
Check if file exists
Copy file
Create directory
Read .ini file

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
push 0xffffffffffffffff
push 0x5ad05c
mov eax, dword fs:[0]
push eax
sub esp, 0xa98
mov eax, dword [0x5f13cc]
xor eax, esp
mov dword [esp + 0xa90], eax
push ebx
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 [ebp + 8]
lea edx, [esp + 0x14]
push edx
mov dword [esp + 0x28], eax
call fcn.00404460
lea eax, [esp + 0x14]
push eax
lea ecx, [esp + 0x1c]
push ecx
mov ebx, 0x5c0400
mov dword [esp + 0xab8], 0
call fcn.00412480
mov eax, dword [eax]
mov edi, dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
add esp, 8
push eax
call edi
mov esi, eax
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 0x49d5d0
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
test esi, esi
je 0x49d963
lea esi, [esp + 0x3c]
call fcn.00484590
lea ecx, [esp + 0x14]
push ecx
lea edx, [esp + 0x1c]
push edx
mov ebx, 0x5c0400
call fcn.00412480
add esp, 8
mov ecx, 1
mov byte [esp + 0xab0], cl
test byte [0x6036fc], cl
mov esi, dword [eax]
jne 0x49d621
or dword [0x6036fc], ecx
push 0x5afe30
call fcn.0057a6a7
add esp, 4
push esi
push 0x6036dc
lea ecx, [esp + 0x44]
call fcn.00485970
mov byte [esp + 0xab0], 0
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 0x49d658
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov edi, dword [esp + 0x24]
add edi, 0x20
lea ecx, [esp + 0x18]
push edi
push ecx
mov ebx, str.Skin2.0_
call fcn.00412480
mov eax, dword [eax]
add esp, 8
push 0
push eax
push 0
call dword [sym.imp.SHELL32.dll_SHCreateDirectoryExW]
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 0x49d69f
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov edx, dword [0x5fcd20]
mov eax, dword [edx + 0xc]
mov ecx, 0x5fcd20
call eax
add eax, 0x10
mov dword [esp + 0x1c], eax
mov byte [esp + 0xab0], 2
call fcn.0047e920
push eax
lea ecx, [esp + 0x20]
lea edx, [esp + 0x40]
call fcn.00486750
mov esi, dword [esp + 0x1c]
cmp dword [esi - 0xc], 0
jne 0x49d80c
lea ecx, [esp + 0x10]
push ecx
lea ecx, [esp + 0x40]
call fcn.00404460
mov esi, eax
lea edx, [esp + 0x28]
push edi
push edx
mov ebx, str.Skin2.0_
mov byte [esp + 0xab8], 3
call fcn.00412480
lea ecx, [esp + 0x28]
push esi
push ecx
mov ebx, eax
mov byte [esp + 0xac0], 4
call fcn.00423280
push eax
lea edx, [esp + 0x40]
push edx
mov ebx, str..skn
mov byte [esp + 0xac8], 5
call fcn.00412480
mov esi, eax
lea eax, [esp + 0x2c]
push eax
lea ecx, [esp + 0x34]
push ecx
mov ebx, 0x5c0400
mov byte [esp + 0xad0], 6
call fcn.00412480
mov esi, dword [esi]
mov eax, dword [eax]
add esp, 0x20
push 0
push esi
push eax
call dword [sym.imp.KERNEL32.dll_CopyFileW]
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 0x49d783
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 + 0x2c]
add eax, 0xfffffff0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x49d7ab
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov byte [esp + 0xab0], 4
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 0x49d7d3
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov byte [esp + 0xab0], 3
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 0x49d7fb
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov byte [esp + 0xab0], 2
mov eax, dword [esp + 0x10]
jmp 0x49d91d
push esi
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
jne 0x49d93d
push 0x5c
push esi
call fcn.0057b53f
add esp, 8
test eax, eax
jne 0x49d82f
or eax, 0xffffffff
jmp 0x49d833
sub eax, esi
sar eax, 1
lea ecx, [eax + 1]
lea esi, [esp + 0x20]
lea edx, [esp + 0x1c]
call fcn.00403540
lea ecx, [esp + 0x18]
push edi
push ecx
mov ebx, str.Skin2.0_
mov byte [esp + 0xab8], 7
call fcn.00412480
mov edx, esi
push edx
lea ecx, [esp + 0x34]
push ecx
mov ebx, eax
mov byte [esp + 0xac0], 8
call fcn.00423280
mov esi, eax
lea edx, [esp + 0x24]
push edx
lea eax, [esp + 0x24]
push eax
mov ebx, 0x5c0400
mov byte [esp + 0xac8], 9
call fcn.00412480
mov esi, dword [esi]
mov eax, dword [eax]
add esp, 0x18
push 0
push esi
push eax
call dword [sym.imp.KERNEL32.dll_CopyFileW]
mov eax, dword [esp + 0x10]
add eax, 0xfffffff0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x49d8c1
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov byte [esp + 0xab0], 8
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 0x49d8e9
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov byte [esp + 0xab0], 7
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 0x49d911
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov byte [esp + 0xab0], 2
mov eax, dword [esp + 0x20]
add eax, 0xfffffff0
or edx, 0xffffffff
lea ecx, [eax + 0xc]
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x49d939
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov esi, dword [esp + 0x1c]
lea eax, [esi - 0x10]
mov byte [esp + 0xab0], 0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x49d9d3
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
jmp 0x49d9d3
lea ecx, [esp + 0x14]
push ecx
lea edx, [esp + 0x14]
push edx
mov ebx, str.DefaultSkinCoverPack
call fcn.00412480
mov eax, dword [eax]
add esp, 8
push eax
call edi
mov esi, eax
mov eax, dword [esp + 0x10]
add eax, 0xfffffff0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x49d9a1
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
test esi, esi
je 0x49d9d3
mov eax, 1
test byte [0x6036fc], al
jne 0x49d9c5
or dword [0x6036fc], eax
push 0x5afe30
call fcn.0057a6a7
add esp, 4
push 0
push 0x6036dc
xor ecx, ecx
call fcn.00485970
lea ecx, [esp + 0x14]
push ecx
lea edx, [esp + 0x14]
push edx
mov ebx, str.FrameConfig.ini
call fcn.00412480
mov eax, dword [eax]
add esp, 8
push eax
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
mov esi, eax
mov eax, dword [esp + 0x10]
add eax, 0xfffffff0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x49da15
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
test esi, esi
je 0x49de5f
mov esi, dword [esp + 0x24]
add esi, 0x20
lea ecx, [esp + 0x10]
push esi
push ecx
mov ebx, str.FramePic_
call fcn.00412480
add esp, 8
mov byte [esp + 0xab0], 0xa
mov eax, dword [eax]
push 0
mov ecx, eax
call fcn.0049eeb0
mov byte [esp + 0xab0], 0
mov eax, dword [esp + 0x10]
add eax, 0xfffffff0
lea edx, [eax + 0xc]
or ecx, 0xffffffff
lock xadd dword [edx], ecx
dec ecx
test ecx, ecx
jg 0x49da72
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
lea ecx, [esp + 0x10]
push esi
push ecx
mov ebx, str.FramePic_
call fcn.00412480
mov eax, dword [eax]
add esp, 8
push 0
push eax
push 0
call dword [sym.imp.SHELL32.dll_SHCreateDirectoryExW]
mov eax, dword [esp + 0x10]
add eax, 0xfffffff0
lea edx, [eax + 0xc]
or ecx, 0xffffffff
lock xadd dword [edx], ecx
dec ecx
test ecx, ecx
jg 0x49dab2
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
push 0x20a
lea ecx, [esp + 0x890]
push 0
push ecx
call fcn.00580260
add esp, 0xc
lea edx, [esp + 0x14]
push edx
lea eax, [esp + 0x14]
push eax
mov ebx, str.FrameConfig.ini
call fcn.00412480
mov eax, dword [eax]
add esp, 8
push eax
push 0x104
lea ecx, [esp + 0x894]
push ecx
push 0x5bcc3c
push str.photo
push str.cand
call dword [sym.imp.KERNEL32.dll_GetPrivateProfileStringW]
mov eax, dword [esp + 0x10]
add eax, 0xfffffff0
lea edx, [eax + 0xc]
or ecx, 0xffffffff
lock xadd dword [edx], ecx
dec ecx
test ecx, ecx
jg 0x49db25
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
lea ecx, [esp + 0x14]
push ecx
lea edx, [esp + 0x24]
push edx
lea ebx, [esp + 0x894]
call fcn.00412480
add esp, 8
lea eax, [esp + 0x28]
push eax
mov ecx, ebx
mov byte [esp + 0xab4], 0xb
call fcn.00404460
mov edi, eax
lea ecx, [esp + 0x10]
push esi
push ecx
mov ebx, str.FramePic_
mov byte [esp + 0xab8], 0xc
call fcn.00412480
lea edx, [esp + 0x20]
push edi
push edx
mov ebx, eax
mov byte [esp + 0xac0], 0xd
call fcn.00423280
add esp, 0x10
mov byte [esp + 0xab0], 0xf
mov eax, dword [esp + 0x10]
add eax, 0xfffffff0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x49dbac
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov byte [esp + 0xab0], 0x10
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 0x49dbd4
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
push 0x20a
lea ecx, [esp + 0x890]
push 0
push ecx
call fcn.00580260
add esp, 0xc
lea edx, [esp + 0x14]
push edx
lea eax, [esp + 0x28]
push eax
mov ebx, str.FrameConfig.ini
call fcn.00412480
mov eax, dword [eax]
add esp, 8
push eax
push 0x104
lea ecx, [esp + 0x894]
push ecx
push 0x5bcc3c
push str.photo
push str.status
call dword [sym.imp.KERNEL32.dll_GetPrivateProfileStringW]
mov eax, dword [esp + 0x24]
add eax, 0xfffffff0
lea edx, [eax + 0xc]
or ecx, 0xffffffff
lock xadd dword [edx], ecx
dec ecx
test ecx, ecx
jg 0x49dc47
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
lea ecx, [esp + 0x14]
push ecx
lea edx, [esp + 0x20]
push edx
lea ebx, [esp + 0x894]
call fcn.00412480
add esp, 8
lea eax, [esp + 0x38]
push eax
mov ecx, ebx
mov byte [esp + 0xab4], 0x11
call fcn.00404460
mov edi, eax
lea ecx, [esp + 0x24]
push esi
push ecx
mov ebx, str.FramePic_
mov byte [esp + 0xab8], 0x12
call fcn.00412480
lea edx, [esp + 0x34]
push edi
push edx
mov ebx, eax
mov byte [esp + 0xac0], 0x13
call fcn.00423280
add esp, 0x10
mov byte [esp + 0xab0], 0x15
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 0x49dcce
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov byte [esp + 0xab0], 0x16
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 0x49dcf6
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov ecx, dword [esp + 0x20]
mov edi, dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
push ecx
call edi
test eax, eax
je 0x49ddbf
mov edx, dword [esp + 0x1c]
push edx
call edi
test eax, eax
je 0x49ddbf
lea eax, [esp + 0x34]
push esi
push eax
mov ebx, str.FramePicFrameConfig.ini
call fcn.00412480
mov esi, eax
lea ecx, [esp + 0x1c]
push ecx
lea edx, [esp + 0x3c]
push edx
mov ebx, str.FrameConfig.ini
mov byte [esp + 0xac0], 0x17
call fcn.00412480
mov esi, dword [esi]
mov eax, dword [eax]
add esp, 0x10
push 0
push esi
mov esi, dword [sym.imp.KERNEL32.dll_CopyFileW]
push eax
call esi
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 0x49dd7b
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov byte [esp + 0xab0], 0x16
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 0x49dda3
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov ecx, dword [esp + 0x18]
mov edx, dword [esp + 0x20]
push 0
push ecx
push edx
call esi
mov eax, dword [esp + 0x2c]
mov ecx, dword [esp + 0x1c]
push 0
push eax
push ecx
call esi
mov byte [esp + 0xab0], 0x11
mov eax, dword [esp + 0x2c]
add eax, 0xfffffff0
lea edx, [eax + 0xc]
or ecx, 0xffffffff
lock xadd dword [edx], ecx
dec ecx
test ecx, ecx
jg 0x49dde7
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov byte [esp + 0xab0], 0x10
mov eax, dword [esp + 0x1c]
add eax, 0xfffffff0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x49de0f
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov byte [esp + 0xab0], 0xb
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 0x49de37
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 + 0x20]
add eax, 0xfffffff0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x49de5f
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov dword [esp + 0xab0], 0xffffffff
mov eax, dword [esp + 0x14]
add eax, 0xfffffff0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x49de8a
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov eax, 1
mov ecx, dword [esp + 0xaa8]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [esp + 0xa90]
xor ecx, esp
call fcn.005787fd
mov esp, ebp
pop ebp
ret 4