Function at 0x4d9040
Capabilities:
Copy file

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
push 0xffffffffffffffff
push 0x606650
mov eax, dword fs:[0]
push eax
sub esp, 0x2c
push ebx
push ebp
push esi
push edi
mov eax, dword [0x6687b8]
xor eax, esp
push eax
lea eax, [esp + 0x40]
mov dword fs:[0], eax
mov ebp, ecx
mov ecx, dword [ebp + 4]
push 0x634254
lea eax, [esp + 0x20]
push eax
mov ebx, 2
push ecx
mov dword [ebp + 8], ebx
call fcn.004c5f50
xor esi, esi
mov dword [esp + 0x48], esi
mov ecx, dword [ebp + 4]
mov edx, dword [ecx]
mov edx, dword [edx + 4]
push 1
lea eax, [esp + 0x1c]
push eax
call edx
mov byte [esp + 0x48], 1
mov edx, dword [esp + 0x18]
mov eax, dword [edx - 0xc]
cmp eax, esi
jle 0x4d90d1
lea ecx, [eax - 1]
cmp ecx, esi
jl 0x4d9135
cmp ecx, eax
jg 0x4d9135
movzx eax, word [edx + ecx*2]
cmp ax, 0x5c
je 0x4d90d1
push 0x5c
lea edi, [esp + 0x1c]
call fcn.0040af90
push 0xd
push str.localskin.dat
lea eax, [esp + 0x20]
push eax
call fcn.0040aee0
mov ecx, dword [esp + 0x1c]
mov edx, dword [esp + 0x18]
push esi
push ecx
push edx
call dword [sym.imp.KERNEL32.dll_CopyFileW]
mov eax, dword [esp + 0x1c]
lea ecx, [esp + 0x24]
mov dword [esp + 0x24], esi
mov dword [esp + 0x28], esi
call fcn.004d3320
cmp dword [esp + 0x28], esi
ja 0x4d913f
jb 0x4d9116
cmp dword [esp + 0x24], ebx
jae 0x4d913f
push esi
push 0x633154
mov ecx, ebp
call fcn.004c6880
mov eax, dword [ebp]
mov edx, dword [eax + 0x18]
add esp, 8
mov ecx, ebp
call edx
jmp 0x4d92a8
push 0x80070057
call fcn.00403650
mov eax, dword [esp + 0x1c]
push eax
push eax
call fcn.004c6090
add esp, 8
cmp eax, esi
push esi
jl 0x4d928f
mov ecx, dword [esp + 0x1c]
push 0x80
push 4
push esi
push 7
push 0x40000000
xor edi, edi
push ecx
mov dword [esp + 0x3c], edi
call dword [sym.imp.KERNEL32.dll_CreateFileW]
cmp eax, 0xffffffff
jne 0x4d9284
call fcn.0040f010
cmp eax, esi
jl 0x4d919e
push esi
push esi
lea esi, [esp + 0x28]
call fcn.00433ef0
test edi, edi
je 0x4d919e
push edi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov edx, dword [0x677600]
mov eax, dword [edx + 0xc]
mov ecx, 0x677600
call eax
add eax, 0x10
mov dword [esp + 0x24], eax
lea ecx, [esp + 0x2c]
push ecx
mov byte [esp + 0x4c], bl
call dword [sym.imp.KERNEL32.dll_GetLocalTime]
mov edx, dword [0x677600]
mov eax, dword [edx + 0xc]
mov ecx, 0x677600
call eax
add eax, 0x10
mov dword [esp + 0x20], eax
mov byte [esp + 0x48], 3
movzx ecx, word [esp + 0x32]
movzx edx, word [esp + 0x2e]
movzx eax, word [esp + 0x2c]
push ecx
push edx
push eax
push str._d_d_d
lea edi, [esp + 0x30]
call fcn.0040ac80
mov ecx, dword [ebp + 4]
mov edx, dword [ecx]
mov esi, dword [esp + 0x30]
mov eax, dword [edx + 0x14]
add esp, 0x10
push esi
call eax
push eax
push str.qpy__u__s_usc.log
lea edi, [esp + 0x30]
call fcn.0040ac80
mov eax, dword [esp + 0x28]
mov ecx, dword [ebp + 4]
mov edi, dword [esp + 0x30]
mov edx, dword [ecx]
mov edx, dword [edx + 0x10]
add esp, 0xc
push eax
push edi
push ebp
call edx
lea eax, [esi - 0x10]
mov dword [ebp + 8], ebx
mov byte [esp + 0x48], bl
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x4d925c
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
lea eax, [edi - 0x10]
mov byte [esp + 0x48], 1
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x4d927d
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov byte [esp + 0x48], 0
jmp 0x4d92bc
mov edi, eax
mov dword [esp + 0x20], edi
jmp 0x4d9188
push 0x633154
mov ecx, ebp
call fcn.004c6880
mov edx, dword [ebp]
mov eax, dword [edx + 0x18]
add esp, 8
mov ecx, ebp
call eax
fld1
mov byte [esp + 0x48], 0
fstp dword [ebp + 0xc]
mov dword [ebp + 8], 1
mov dword [ebp + 0x14], esi
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 0x4d92dc
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov dword [esp + 0x48], 0xffffffff
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 0x4d9304
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
xor eax, eax
mov ecx, dword [esp + 0x40]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebp
pop ebx
mov esp, ebp
pop ebp
ret