Function at 0x4ce050
Capabilities:
Copy file

Disassembly:
push 0xffffffffffffffff
push 0x5a09c0
mov eax, dword fs:[0]
push eax
sub esp, 0x28
push ebx
push ebp
push esi
push edi
mov eax, dword [0x5f13cc]
xor eax, esp
push eax
lea eax, [esp + 0x3c]
mov dword fs:[0], eax
mov esi, ecx
lea eax, [esp + 0x18]
push eax
call fcn.00404460
mov ebx, dword [esp + 0x50]
mov dword [esp + 0x44], 0
mov eax, dword [ebx + 8]
test eax, eax
jbe 0x4ce36a
test esi, esi
je 0x4ce36a
mov edx, dword [esp + 0x18]
mov eax, dword [edx - 0xc]
test eax, eax
je 0x4ce36a
jle 0x4ce0de
lea ecx, [eax - 1]
test ecx, ecx
jl 0x4ce316
cmp ecx, eax
jg 0x4ce316
movzx eax, word [edx + ecx*2]
cmp ax, 0x5c
je 0x4ce0de
mov edx, 0x5bd0e8
lea edi, [esp + 0x18]
call fcn.00412930
mov edx, str.Skin2.0_recommend_
lea edi, [esp + 0x18]
call fcn.00412930
mov edx, dword [esp + 0x18]
mov ecx, dword [edx - 0xc]
test ecx, ecx
jle 0x4ce11e
lea eax, [ecx - 1]
test eax, eax
jl 0x4ce316
cmp eax, ecx
jg 0x4ce316
movzx eax, word [edx + eax*2]
cmp ax, 0x5c
je 0x4ce11e
mov edx, 0x5bd0e8
call fcn.00412930
mov edx, dword [0x5fcd20]
mov eax, dword [edx + 0xc]
mov ecx, 0x5fcd20
call eax
add eax, 0x10
mov dword [esp + 0x14], eax
mov byte [esp + 0x44], 1
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 + 0x44], 2
mov eax, dword [ebx + 4]
mov esi, dword [eax]
mov ebp, dword [sym.imp.KERNEL32.dll_CopyFileW]
mov dword [esp + 0x38], esi
mov eax, dword [ebx + 4]
cmp esi, eax
je 0x4ce320
lea eax, [esi + 8]
lea edi, [esp + 0x14]
call fcn.004035d0
mov eax, edi
lea edi, [esp + 0x1c]
call fcn.004035d0
mov esi, dword [esp + 0x14]
push 0x40
push esi
call fcn.0057b53f
add esp, 8
test eax, eax
je 0x4ce1e2
sub eax, esi
sar eax, 1
cmp eax, 0xffffffff
je 0x4ce1e2
lea ecx, [eax + 1]
lea esi, [esp + 0x20]
lea edx, [esp + 0x14]
call fcn.00403540
mov byte [esp + 0x44], 3
call fcn.004035d0
mov byte [esp + 0x44], 2
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 0x4ce1e2
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 + 0x2c]
push edx
lea ebx, [esp + 0x20]
call fcn.00423280
mov edi, eax
mov esi, dword [esp + 0x54]
lea eax, [esp + 0x1c]
push eax
lea ecx, [esp + 0x30]
add esi, 4
push ecx
mov ebx, esi
mov byte [esp + 0x54], 4
call fcn.00423280
mov edi, dword [edi]
mov eax, dword [eax]
add esp, 0x10
push 1
push edi
push eax
call ebp
test eax, eax
mov eax, dword [esp + 0x24]
sete bl
add eax, 0xfffffff0
lea edx, [eax + 0xc]
or ecx, 0xffffffff
lock xadd dword [edx], ecx
dec ecx
test ecx, ecx
jg 0x4ce246
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov byte [esp + 0x44], 2
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 0x4ce26b
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
test bl, bl
je 0x4ce2f3
mov ebx, dword [esp + 0x4c]
lea ecx, [esp + 0x1c]
push ecx
lea edx, [esp + 0x34]
add ebx, 0x10
push edx
call fcn.00423280
mov edi, eax
lea eax, [esp + 0x1c]
push eax
lea ecx, [esp + 0x38]
push ecx
mov ebx, esi
mov byte [esp + 0x54], 5
call fcn.00423280
mov edi, dword [edi]
mov eax, dword [eax]
add esp, 0x10
push 0
push edi
push eax
call ebp
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 0x4ce2ce
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov byte [esp + 0x44], 2
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 0x4ce2f3
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov esi, dword [esp + 0x38]
mov ecx, dword [esp + 0x50]
cmp esi, dword [ecx + 4]
jne 0x4ce305
call fcn.00578ff3
mov edx, dword [esi]
mov ebx, dword [esp + 0x50]
mov dword [esp + 0x38], edx
mov esi, edx
jmp 0x4ce165
push 0x80070057
call fcn.00404550
mov byte [esp + 0x44], 1
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 0x4ce345
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov byte [esp + 0x44], 0
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 0x4ce36a
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov dword [esp + 0x44], 0xffffffff
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 0x4ce392
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov eax, 1
mov ecx, dword [esp + 0x3c]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x34
ret 8