Function at 0x4ab0b0
Capabilities:
Check if file exists
Copy file

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
push 0xffffffffffffffff
push 0x604a38
mov eax, dword fs:[0]
push eax
sub esp, 0x14
push esi
push edi
mov eax, dword [0x6687b8]
xor eax, esp
push eax
lea eax, [esp + 0x20]
mov dword fs:[0], eax
mov eax, dword [0x677600]
mov edx, dword [eax + 0xc]
mov ecx, 0x677600
call edx
add eax, 0x10
mov dword [esp + 0x14], eax
mov dword [esp + 0x28], 0
mov eax, dword [0x677600]
mov edx, dword [eax + 0xc]
mov ecx, 0x677600
call edx
add eax, 0x10
mov dword [esp + 0xc], eax
mov edi, dword [ebp + 8]
push ebx
lea ecx, [esp + 0x18]
mov esi, edi
mov byte [esp + 0x2c], 1
call fcn.004ab840
mov ecx, dword [ebx + 4]
mov eax, dword [ecx]
mov edx, dword [eax + 0x14]
call edx
xor esi, esi
cmp edi, esi
jne 0x4ab13a
push str.fixdefault
jmp 0x4ab144
cmp edi, 1
jne 0x4ab15b
push str.fixabc
push eax
push str.qpy__u__s
lea edi, [esp + 0x18]
call fcn.0040ac80
mov edi, dword [ebp + 8]
add esp, 0xc
xor esi, esi
mov eax, dword [esp + 0x14]
push eax
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
mov edx, dword [ebx + 4]
push 0x631a18
lea ecx, [esp + 0x14]
push ecx
push edx
je 0x4ab1cb
call fcn.004c5f50
mov byte [esp + 0x28], 2
mov eax, dword [esp + 0x10]
mov ecx, dword [esp + 0x14]
push esi
push eax
push ecx
call dword [sym.imp.KERNEL32.dll_CopyFileW]
test eax, eax
je 0x4ab2fa
mov eax, dword [esp + 0x10]
push eax
push eax
call fcn.004c6090
add esp, 8
test eax, eax
jne 0x4ab2fa
mov eax, dword [esp + 0x10]
mov ecx, dword [ebx + 4]
mov edx, dword [ecx]
mov edx, dword [edx + 0x10]
push eax
mov eax, dword [esp + 0x10]
push eax
push ebx
call edx
jmp 0x4ab24f
call fcn.004c5f50
mov dword [esp + 0x18], esi
push esi
push 0x80
push 2
push esi
push 1
mov byte [esp + 0x3c], 4
mov eax, dword [esp + 0x24]
push 0x40000000
push eax
call dword [sym.imp.KERNEL32.dll_CreateFileW]
cmp eax, 0xffffffff
jne 0x4ab2d5
call fcn.0040f010
cmp eax, esi
jl 0x4ab2fa
push esi
push esi
lea esi, [esp + 0x20]
call fcn.00433ef0
mov eax, dword [esp + 0x10]
push eax
push eax
call fcn.004c6090
add esp, 8
test eax, eax
jne 0x4ab2de
mov eax, dword [esp + 0x10]
mov ecx, dword [ebx + 4]
mov edx, dword [ecx]
mov edx, dword [edx + 0x10]
push eax
mov eax, dword [esp + 0x10]
push eax
push ebx
call edx
mov eax, dword [esp + 0x18]
test eax, eax
je 0x4ab24f
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov byte [esp + 0x28], 1
mov eax, dword [esp + 0x10]
add eax, 0xfffffff0
or edx, 0xffffffff
lea ecx, [eax + 0xc]
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x4ab274
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov byte [esp + 0x28], 0
mov eax, dword [esp + 0xc]
add eax, 0xfffffff0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x4ab299
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov dword [esp + 0x28], 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 0x4ab2c1
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov ecx, dword [esp + 0x20]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
mov esp, ebp
pop ebp
ret 4
mov dword [esp + 0x18], eax
jmp 0x4ab20a
mov esi, ebx
mov dword [ebx + edi*4 + 0x20], 0
mov dword [ebx + edi*4 + 0x28], 1
call fcn.004ab320
jmp 0x4ab240
mov dword [ebx + edi*4 + 0x20], esi
mov esi, ebx
mov dword [ebx + edi*4 + 0x28], 1
call fcn.004ab320
jmp 0x4ab24f