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

Disassembly:
sub esp, 0x21c
mov eax, dword [0x67f864]
xor eax, esp
mov dword [esp + 0x218], eax
mov eax, dword [esp + 0x224]
push ebp
mov ebp, dword [esp + 0x224]
push esi
mov esi, ecx
push 0x104
lea ecx, [esp + 0x1c]
push ecx
push 0
mov dword [esp + 0x20], eax
mov word [esp + 0x24], 0
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameW]
test eax, eax
jne 0x4f1e93
pop esi
mov eax, 0x18
pop ebp
mov ecx, dword [esp + 0x218]
xor ecx, esp
call fcn.005ce60a
add esp, 0x21c
ret
lea edx, [esp + 0x18]
push 0x5c
push edx
call fcn.005d38b8
add esp, 8
test eax, eax
je 0x4f1eac
mov word [eax + 2], 0
call fcn.00572ee2
test eax, eax
jne 0x4f1ebf
push 0x80004005
call fcn.0044a870
mov edx, dword [eax]
mov ecx, eax
mov eax, dword [edx + 0xc]
push edi
call eax
mov edi, eax
add edi, 0x10
push 0x6a8
mov dword [esp + 0x18], edi
call fcn.00578603
test eax, eax
je 0x4f1ef3
push 0x6a8
push eax
lea ecx, [esp + 0x1c]
call fcn.0044b9d0
mov edi, dword [esp + 0x14]
lea ecx, [esp + 0x1c]
push ecx
lea ecx, [esp + 0x10]
call fcn.0044b5b0
mov edx, dword [edi - 0xc]
push edx
push edi
lea ecx, [esp + 0x14]
call fcn.0044be60
push 0x5c
lea ecx, [esp + 0x10]
call fcn.004f2120
test esi, esi
jne 0x4f1f22
xor eax, eax
jmp 0x4f1f36
mov eax, esi
lea edx, [eax + 2]
mov cx, word [eax]
add eax, 2
test cx, cx
jne 0x4f1f27
sub eax, edx
sar eax, 1
push eax
push esi
lea ecx, [esp + 0x14]
call fcn.0044be60
push ebp
lea ecx, [esp + 0x14]
call fcn.0044b5b0
push 0x5c
lea ecx, [esp + 0x14]
call fcn.004f2120
mov esi, dword [esp + 0x18]
test esi, esi
jne 0x4f1f62
xor eax, eax
jmp 0x4f1f76
mov eax, esi
lea edx, [eax + 2]
mov cx, word [eax]
add eax, 2
test cx, cx
jne 0x4f1f67
sub eax, edx
sar eax, 1
push eax
push esi
lea ecx, [esp + 0x18]
call fcn.0044be60
mov eax, dword [esp + 0x10]
mov ecx, dword [esp + 0xc]
push 0
push eax
push ecx
call dword [sym.imp.KERNEL32.dll_CopyFileW]
test eax, eax
jne 0x4f205c
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 2
je 0x4f1fe3
cmp eax, 3
je 0x4f1fe3
lea ecx, [esp + 0x10]
call fcn.0044b670
lea ecx, [esp + 0xc]
call fcn.0044b670
lea ecx, [esp + 0x14]
call fcn.0044b670
pop edi
pop esi
mov eax, 0x1c9
pop ebp
mov ecx, dword [esp + 0x218]
xor ecx, esp
call fcn.005ce60a
add esp, 0x21c
ret
mov eax, dword [esp + 0x10]
add eax, 0xfffffff0
lea edx, [eax + 0xc]
or ecx, 0xffffffff
lock xadd dword [edx], ecx
dec ecx
test ecx, ecx
jg 0x4f2003
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
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 0x4f2023
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
lea eax, [edi - 0x10]
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x4f203f
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
pop edi
pop esi
mov eax, 0x1c8
pop ebp
mov ecx, dword [esp + 0x218]
xor ecx, esp
call fcn.005ce60a
add esp, 0x21c
ret
mov eax, dword [esp + 0x10]
add eax, 0xfffffff0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x4f207c
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
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 0x4f209c
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
lea eax, [edi - 0x10]
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x4f20b8
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov ecx, dword [esp + 0x224]
pop edi
pop esi
pop ebp
xor ecx, esp
xor eax, eax
call fcn.005ce60a
add esp, 0x21c
ret