Function at 0x4cf840
Capabilities:
Move file

Disassembly:
push 0xffffffffffffffff
push 0x5a63a0
mov eax, dword fs:[0]
push eax
sub esp, 0x3c
push ebx
push ebp
push esi
push edi
mov eax, dword [0x5f13cc]
xor eax, esp
push eax
lea eax, [esp + 0x50]
mov dword fs:[0], eax
mov esi, ecx
mov dword [esp + 0x34], esi
call fcn.0041ddc0
xor ebx, ebx
mov dword [esp + 0x48], eax
mov dword [esp + 0x4c], ebx
lea edi, [esi + 0x10]
mov dword [esp + 0x58], ebx
mov ecx, dword [edi]
cmp ecx, ebx
je 0x4cf89e
push str..skn
lea eax, [esp + 0x48]
push eax
call fcn.004cf200
cmp dword [esp + 0x4c], ebx
jne 0x4cf8aa
mov ecx, dword [edi]
call fcn.004cfdd0
jmp 0x4cfba4
lea eax, [esi + 0xc]
push eax
lea ecx, [esp + 0x24]
push ecx
mov ebx, str.Skin2.0_recommend_
call fcn.00412480
add esp, 8
mov byte [esp + 0x58], 1
mov edx, dword [0x5fcd20]
mov eax, dword [edx + 0xc]
mov ecx, 0x5fcd20
call eax
add eax, 0x10
mov dword [esp + 0x18], eax
mov byte [esp + 0x58], 2
mov ecx, dword [esp + 0x48]
mov ebp, dword [ecx]
mov dword [esp + 0x30], ebp
jmp 0x4cf8f0
cmp ebp, dword [esp + 0x48]
je 0x4cf9ef
mov ecx, dword [ebp + 8]
mov esi, dword [esp + 0x18]
lea eax, [ecx - 0x10]
add esi, 0xfffffff0
cmp eax, esi
je 0x4cf951
cmp dword [esi + 0xc], 0
lea ebx, [esi + 0xc]
jl 0x4cf944
mov edx, dword [eax]
cmp edx, dword [esi]
jne 0x4cf944
call fcn.00403ce0
mov ebp, eax
or eax, 0xffffffff
lock xadd dword [ebx], eax
dec eax
test eax, eax
jg 0x4cf937
mov ecx, dword [esi]
mov edx, dword [ecx]
mov eax, dword [edx + 4]
push esi
call eax
add ebp, 0x10
mov dword [esp + 0x18], ebp
mov ebp, dword [esp + 0x30]
jmp 0x4cf951
mov ebx, dword [ecx - 0xc]
push ecx
lea eax, [esp + 0x1c]
call fcn.00404050
lea ecx, [esp + 0x18]
push ecx
lea edx, [esp + 0x20]
push edx
lea ebx, [esp + 0x28]
call fcn.00423280
mov esi, eax
lea eax, [esp + 0x20]
push eax
lea ecx, [esp + 0x30]
push ecx
mov ebx, edi
mov byte [esp + 0x68], 3
call fcn.00423280
mov esi, dword [esi]
mov eax, dword [eax]
add esp, 0x10
push 5
push esi
push eax
call dword [sym.imp.KERNEL32.dll_MoveFileExW]
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 0x4cf9ad
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov byte [esp + 0x58], 2
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 0x4cf9d2
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
cmp ebp, dword [esp + 0x48]
jne 0x4cf9dd
call fcn.00578ff3
mov ecx, dword [ebp]
mov esi, dword [esp + 0x34]
mov dword [esp + 0x30], ecx
mov ebp, ecx
jmp 0x4cf8f0
lea ebp, [esi + 0xc]
lea edx, [esp + 0x2c]
push ebp
push edx
mov ebx, str.Skin_
call fcn.00412480
push eax
lea eax, [esp + 0x30]
push eax
mov ebx, str.wizardskin.lst
mov byte [esp + 0x68], 4
call fcn.00412480
mov esi, eax
lea ecx, [esp + 0x2c]
push edi
push ecx
mov byte [esp + 0x70], 5
call fcn.00412480
mov esi, dword [esi]
mov eax, dword [eax]
add esp, 0x18
push 5
push esi
push eax
call dword [sym.imp.KERNEL32.dll_MoveFileExW]
mov eax, dword [esp + 0x1c]
add eax, 0xfffffff0
lea edx, [eax + 0xc]
or ecx, 0xffffffff
lock xadd dword [edx], ecx
dec ecx
test ecx, ecx
jg 0x4cfa5a
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov byte [esp + 0x58], 4
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 0x4cfa7f
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov byte [esp + 0x58], 2
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 0x4cfaa4
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
lea ecx, [esp + 0x24]
push ebp
push ecx
mov ebx, str.Skin_
call fcn.00412480
push eax
lea edx, [esp + 0x28]
push edx
mov ebx, str.SkinlistOrder.dat
mov byte [esp + 0x68], 6
call fcn.00412480
mov esi, eax
lea eax, [esp + 0x3c]
push edi
push eax
mov byte [esp + 0x70], 7
call fcn.00412480
mov esi, dword [esi]
mov eax, dword [eax]
add esp, 0x18
push 5
push esi
push eax
call dword [sym.imp.KERNEL32.dll_MoveFileExW]
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 0x4cfb0c
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov byte [esp + 0x58], 6
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 0x4cfb31
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov byte [esp + 0x58], 2
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 0x4cfb56
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov byte [esp + 0x58], 1
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 0x4cfb7b
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov byte [esp + 0x58], 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 0x4cfba0
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov esi, dword [esp + 0x34]
mov edi, dword [edi]
push 5
push 0
push edi
call dword [sym.imp.KERNEL32.dll_MoveFileExW]
call fcn.0041ddc0
mov dword [esp + 0x3c], eax
mov dword [esp + 0x40], 0
lea ebp, [esi + 0x14]
mov byte [esp + 0x58], 8
mov ecx, dword [ebp]
test ecx, ecx
je 0x4cfbe7
push 0x5be44c
lea edx, [esp + 0x3c]
push edx
call fcn.004cf200
cmp dword [esp + 0x40], 0
jne 0x4cfbf4
mov ecx, dword [ebp]
call fcn.004cfdd0
jmp 0x4cfd75
add esi, 0xc
lea eax, [esp + 0x20]
push esi
push eax
mov ebx, str.CDict_recommend_
call fcn.00412480
add esp, 8
mov byte [esp + 0x58], 9
mov edx, dword [0x5fcd20]
mov eax, dword [edx + 0xc]
mov ecx, 0x5fcd20
call eax
lea edi, [eax + 0x10]
mov dword [esp + 0x18], edi
mov byte [esp + 0x58], 0xa
mov ecx, dword [esp + 0x3c]
mov eax, dword [ecx]
mov dword [esp + 0x28], eax
cmp eax, dword [esp + 0x3c]
je 0x4cfd2f
mov ecx, dword [eax + 8]
lea eax, [ecx - 0x10]
lea esi, [edi - 0x10]
cmp eax, esi
je 0x4cfc92
cmp dword [esi + 0xc], 0
lea edi, [esi + 0xc]
jl 0x4cfc81
mov edx, dword [eax]
cmp edx, dword [esi]
jne 0x4cfc81
call fcn.00403ce0
mov ebx, eax
or eax, 0xffffffff
lock xadd dword [edi], eax
dec eax
test eax, eax
jg 0x4cfc78
mov ecx, dword [esi]
mov edx, dword [ecx]
mov eax, dword [edx + 4]
push esi
call eax
lea edi, [ebx + 0x10]
mov dword [esp + 0x18], edi
jmp 0x4cfc92
mov ebx, dword [ecx - 0xc]
push ecx
lea eax, [esp + 0x1c]
call fcn.00404050
mov edi, dword [esp + 0x18]
lea ecx, [esp + 0x18]
push ecx
lea edx, [esp + 0x20]
push edx
lea ebx, [esp + 0x28]
call fcn.00423280
mov esi, eax
lea eax, [esp + 0x20]
push eax
lea ecx, [esp + 0x38]
push ecx
mov ebx, ebp
mov byte [esp + 0x68], 0xb
call fcn.00423280
mov esi, dword [esi]
mov eax, dword [eax]
add esp, 0x10
push 5
push esi
push eax
call dword [sym.imp.KERNEL32.dll_MoveFileExW]
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 0x4cfcee
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov byte [esp + 0x58], 0xa
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 0x4cfd13
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov esi, dword [esp + 0x28]
cmp esi, dword [esp + 0x3c]
jne 0x4cfd22
call fcn.00578ff3
mov ecx, dword [esi]
mov dword [esp + 0x28], ecx
mov eax, ecx
jmp 0x4cfc35
lea eax, [edi - 0x10]
mov byte [esp + 0x58], 9
lea edx, [eax + 0xc]
or ecx, 0xffffffff
lock xadd dword [edx], ecx
dec ecx
test ecx, ecx
jg 0x4cfd50
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov byte [esp + 0x58], 8
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 0x4cfd75
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov ecx, dword [ebp]
push 5
push 0
push ecx
call dword [sym.imp.KERNEL32.dll_MoveFileExW]
lea ebx, [esp + 0x38]
call fcn.00449240
mov edx, dword [esp + 0x3c]
push edx
call fcn.00578327
add esp, 4
lea ebx, [esp + 0x44]
mov dword [esp + 0x3c], 0
call fcn.00449240
mov eax, dword [esp + 0x48]
push eax
call fcn.00578327
add esp, 4
mov ecx, dword [esp + 0x50]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x48
ret