Function at 0x4147d0
Capabilities:
Copy file

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x518240
mov eax, dword fs:[0]
push eax
sub esp, 0x18
push ebx
push esi
push edi
mov eax, dword [0x587978]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov edi, ecx
lea eax, [ebp - 0x14]
push eax
lea ecx, [edi + 0x24c]
call fcn.004110e0
mov dword [ebp - 4], 0
mov ecx, dword [eax]
cmp dword [ecx - 0xc], 0
sete bl
mov dword [ebp - 4], 0xffffffff
mov eax, dword [ebp - 0x14]
add eax, 0xfffffff0
lea edx, [eax + 0xc]
or ecx, 0xffffffff
lock xadd dword [edx], ecx
dec ecx
test ecx, ecx
jg 0x41483f
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
test bl, bl
jne 0x414ad0
lea ecx, [ebp - 0x1c]
push ecx
lea ecx, [edi + 0x24c]
call fcn.004110e0
mov dword [ebp - 4], 2
lea edx, [ebp - 0x1c]
push edx
call fcn.00434510
add esp, 4
lea eax, [ebp - 0x1c]
push eax
lea ecx, [edi + 0x24c]
call fcn.00412290
lea edx, [ebp - 0x14]
lea ecx, [edi + 0x6d0]
push edx
mov dword [ebp - 0x24], ecx
call fcn.004110e0
mov byte [ebp - 4], 3
mov eax, dword [eax]
push eax
lea ecx, [ebp - 0x18]
call fcn.004095e0
mov byte [ebp - 4], 6
mov eax, dword [ebp - 0x14]
add eax, 0xfffffff0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x4148bc
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov eax, dword [ebp - 0x18]
add eax, 0xfffffff0
push eax
call fcn.00406e60
add eax, 0x10
add esp, 4
mov dword [ebp - 0x10], eax
mov byte [ebp - 4], 0xa
lea ecx, [ebp - 0x10]
call fcn.00411440
lea ecx, [ebp - 0x14]
push ecx
lea ecx, [edi + 0x24c]
call fcn.004110e0
mov byte [ebp - 4], 0xb
mov eax, dword [eax]
push eax
lea ecx, [ebp - 0x10]
call fcn.004113a0
mov byte [ebp - 4], 0xa
mov eax, dword [ebp - 0x14]
add eax, 0xfffffff0
lea edx, [eax + 0xc]
or ecx, 0xffffffff
lock xadd dword [edx], ecx
dec ecx
test ecx, ecx
jg 0x41491e
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
lea ecx, [ebp - 0x14]
push ecx
lea ecx, [ebp - 0x10]
call fcn.00412360
mov byte [ebp - 4], 0xd
mov edx, dword [eax]
cmp dword [edx - 0xc], 0
sete bl
mov byte [ebp - 4], 0xa
mov eax, dword [ebp - 0x14]
add eax, 0xfffffff0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x41495a
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
test bl, bl
je 0x414a4b
mov edx, dword [0x587944]
mov eax, dword [edx + 0xc]
mov ecx, 0x587944
call eax
add eax, 0x10
mov dword [ebp - 0x14], eax
mov bl, 0x10
mov byte [ebp - 4], bl
mov edi, dword [edi + 0x550]
cmp edi, 1
jne 0x4149d2
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
call dword [sym.imp.KERNEL32.dll_SetLastError]
lea ecx, [ebp - 0x20]
push ecx
call fcn.00413130
add esp, 4
mov byte [ebp - 4], 0x11
push eax
lea ecx, [ebp - 0x14]
call fcn.00411920
mov byte [ebp - 4], bl
mov eax, dword [ebp - 0x20]
add eax, 0xfffffff0
lea edx, [eax + 0xc]
or ecx, 0xffffffff
lock xadd dword [edx], ecx
dec ecx
test ecx, ecx
jg 0x414a1f
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
jmp 0x414a1f
cmp edi, 2
jne 0x4149e9
lea ecx, [ebp - 0x20]
push ecx
call fcn.004134e0
add esp, 4
mov byte [ebp - 4], 0x13
jmp 0x4149fe
cmp edi, 5
jne 0x414a1f
lea edx, [ebp - 0x20]
push edx
call fcn.00412e10
add esp, 4
mov byte [ebp - 4], 0x15
push eax
lea ecx, [ebp - 0x14]
call fcn.00411920
mov byte [ebp - 4], bl
lea ecx, [ebp - 0x20]
call fcn.004064c0
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
call dword [sym.imp.KERNEL32.dll_SetLastError]
mov esi, dword [ebp - 0x14]
push esi
lea ecx, [ebp - 0x10]
call fcn.00411300
mov byte [ebp - 4], 0xa
lea eax, [esi - 0x10]
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x414a4b
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov esi, dword [ebp - 0x10]
mov ecx, dword [ebp - 0x18]
push 0
push esi
push ecx
call dword [sym.imp.KERNEL32.dll_CopyFileW]
mov ecx, dword [ebp - 0x24]
lea edx, [ebp - 0x10]
push edx
call fcn.00412290
mov byte [ebp - 4], 6
lea eax, [esi - 0x10]
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x414a87
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov byte [ebp - 4], 2
mov eax, dword [ebp - 0x18]
add eax, 0xfffffff0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x414aaa
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov dword [ebp - 4], 0xffffffff
mov eax, dword [ebp - 0x1c]
add eax, 0xfffffff0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x414ad0
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret