Function at 0x4e9d70
Capabilities:
Copy file

Disassembly:
push 0xffffffffffffffff
push 0x5fc770
mov eax, dword fs:[0]
push eax
sub esp, 0x28
push ebx
push ebp
push esi
push edi
mov eax, dword [0x6687b8]
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.00409dd0
mov ebx, dword [esp + 0x50]
mov dword [esp + 0x44], 0
mov eax, dword [ebx + 8]
test eax, eax
jbe 0x4ea08a
test esi, esi
je 0x4ea08a
mov edx, dword [esp + 0x18]
mov eax, dword [edx - 0xc]
test eax, eax
je 0x4ea08a
jle 0x4e9dfe
lea ecx, [eax - 1]
test ecx, ecx
jl 0x4ea036
cmp ecx, eax
jg 0x4ea036
movzx eax, word [edx + ecx*2]
cmp ax, 0x5c
je 0x4e9dfe
mov edx, 0x62454c
lea edi, [esp + 0x18]
call fcn.0040ae60
mov edx, str.Skin2.0_recommend_
lea edi, [esp + 0x18]
call fcn.0040ae60
mov edx, dword [esp + 0x18]
mov ecx, dword [edx - 0xc]
test ecx, ecx
jle 0x4e9e3e
lea eax, [ecx - 1]
test eax, eax
jl 0x4ea036
cmp eax, ecx
jg 0x4ea036
movzx eax, word [edx + eax*2]
cmp ax, 0x5c
je 0x4e9e3e
mov edx, 0x62454c
call fcn.0040ae60
mov edx, dword [0x677600]
mov eax, dword [edx + 0xc]
mov ecx, 0x677600
call eax
add eax, 0x10
mov dword [esp + 0x14], eax
mov byte [esp + 0x44], 1
mov edx, dword [0x677600]
mov eax, dword [edx + 0xc]
mov ecx, 0x677600
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 0x4ea040
lea eax, [esi + 8]
lea edi, [esp + 0x14]
call fcn.0040ab90
mov eax, edi
lea edi, [esp + 0x1c]
call fcn.0040ab90
mov esi, dword [esp + 0x14]
push 0x40
push esi
call fcn.005d37a2
add esp, 8
test eax, eax
je 0x4e9f02
sub eax, esi
sar eax, 1
cmp eax, 0xffffffff
je 0x4e9f02
lea ecx, [eax + 1]
lea esi, [esp + 0x20]
lea edx, [esp + 0x14]
call fcn.00409f40
mov byte [esp + 0x44], 3
call fcn.0040ab90
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 0x4e9f02
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.0041eb50
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.0041eb50
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 0x4e9f66
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 0x4e9f8b
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
test bl, bl
je 0x4ea013
mov ebx, dword [esp + 0x4c]
lea ecx, [esp + 0x1c]
push ecx
lea edx, [esp + 0x34]
add ebx, 0x10
push edx
call fcn.0041eb50
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.0041eb50
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 0x4e9fee
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 0x4ea013
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 0x4ea025
call fcn.005d29f1
mov edx, dword [esi]
mov ebx, dword [esp + 0x50]
mov dword [esp + 0x38], edx
mov esi, edx
jmp 0x4e9e85
push 0x80070057
call fcn.00403650
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 0x4ea065
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 0x4ea08a
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 0x4ea0b2
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