Function at 0x10051804
Capabilities:
Copy file

Disassembly:
push 0x18
mov eax, 0x10091540
call fcn.10086e1a
mov eax, dword [ebx + 0x1c]
cmp byte [eax], 0
je 0x1005182e
cmp dword [ebx + 4], 0
jne 0x10051a4c
mov dword [ebx + 4], 0x80004004
jmp 0x10051a4c
mov edi, dword [ebp + 8]
mov eax, dword [edi]
sub eax, 0x10
call fcn.10078eab
add eax, 0x10
mov dword [ebp - 0x14], eax
and dword [ebp - 4], 0
lea eax, [ebp - 0x14]
call fcn.10058901
push 0x100107b8
xor ecx, ecx
lea esi, [ebp - 0x14]
call fcn.10058897
cmp eax, 0xffffffff
je 0x10051869
mov eax, dword [ebp - 0x14]
jmp 0x10051a44
or dword [ebp - 4], 0xffffffff
mov eax, dword [ebp - 0x14]
add eax, 0xfffffff0
call fcn.10078f0e
mov eax, dword [ebx + 0xc]
sub eax, 0x10
call fcn.10078eab
add eax, 0x10
mov dword [ebp - 0x10], eax
lea eax, [ebp - 0x14]
mov dword [ebp - 4], 1
mov edx, dword [ebx + 8]
push eax
mov eax, edi
call fcn.100589f0
mov byte [ebp - 4], 2
mov eax, dword [eax]
push dword [eax - 0xc]
push eax
lea eax, [ebp - 0x10]
call fcn.1005ff21
mov byte [ebp - 4], 1
mov eax, dword [ebp - 0x14]
add eax, 0xfffffff0
call fcn.10078f0e
push dword [ebp - 0x10]
lea eax, [ebp - 0x1c]
push eax
call fcn.1005833e
lea eax, [ebp - 0x1c]
mov byte [ebp - 4], 3
call fcn.10058f73
push dword [ebp - 0x1c]
push 0
call dword [sym.imp.SHELL32.dll_SHCreateDirectory]
push 0x100107e0
lea eax, [ebp - 0x24]
push eax
call fcn.10058cd5
push 0x100107d4
lea ecx, [ebp - 0x20]
push ecx
mov edi, eax
mov byte [ebp - 4], 4
call fcn.10058c7a
lea ecx, [ebp - 0x10]
push ecx
lea ecx, [ebp - 0x14]
push ecx
mov edi, eax
mov byte [ebp - 4], 5
call fcn.10058c24
mov byte [ebp - 4], 6
mov eax, dword [eax]
mov ecx, dword [ebx + 0x20]
mov edx, dword [ecx]
push eax
push 2
call dword [edx + 4]
mov eax, dword [ebp - 0x14]
add eax, 0xfffffff0
call fcn.10078f0e
mov eax, dword [ebp - 0x20]
add eax, 0xfffffff0
call fcn.10078f0e
mov byte [ebp - 4], 3
mov eax, dword [ebp - 0x24]
add eax, 0xfffffff0
call fcn.10078f0e
mov esi, dword [ebp + 8]
push dword [esi]
lea eax, [ebp - 0x18]
push eax
call fcn.1005833e
lea eax, [ebp - 0x18]
mov byte [ebp - 4], 7
call fcn.10058f9e
mov eax, dword [ebp - 0x18]
push ecx
add eax, 0xfffffff0
mov dword [ebp + 8], esp
mov edi, esp
call fcn.10078eab
add eax, 0x10
mov dword [edi], eax
mov ecx, dword [ebx + 0x18]
mov eax, dword [ecx]
push 9
call dword [eax + 8]
mov eax, dword [esi]
xor edi, edi
push edi
push dword [ebp - 0x10]
push eax
call dword [sym.imp.KERNEL32.dll_CopyFileW]
cmp eax, edi
jne 0x100519f7
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [ebp - 0x24], eax
cmp dword [ebx + 4], edi
jne 0x100519ab
mov dword [ebx + 4], eax
mov eax, dword [0x100aee70]
mov ecx, 0x100aee70
call dword [eax + 0xc]
add eax, 0x10
mov dword [ebp + 8], eax
mov byte [ebp - 4], 8
push dword [ebp - 0x10]
mov esi, dword [esi]
push esi
push dword [ebp - 0x24]
lea eax, [ebp + 8]
push 0x100107f8
push eax
call fcn.10078b7a
mov esi, dword [ebp + 8]
mov ecx, dword [ebx + 0x20]
mov eax, dword [ecx]
add esp, 0x14
push esi
push edi
call dword [eax + 4]
lea eax, [esi - 0x10]
mov byte [ebp - 4], 7
call fcn.10078f0e
jmp 0x10051a01
mov eax, dword [ebx]
lea ecx, [ebp - 0x10]
push ecx
mov ecx, ebx
call dword [eax]
inc dword [ebx + 0x14]
mov eax, dword [ebx + 0x14]
mov esi, dword [ebx + 0x10]
mov ecx, dword [ebx + 0x18]
cmp eax, esi
jb 0x10051a1c
mov eax, dword [ecx]
push 0xff
call dword [eax]
jmp 0x10051a2b
imul eax, eax, 0xff
xor edx, edx
div esi
mov edi, dword [ecx]
push eax
call dword [edi]
mov eax, dword [ebp - 0x18]
add eax, 0xfffffff0
call fcn.10078f0e
mov eax, dword [ebp - 0x1c]
add eax, 0xfffffff0
call fcn.10078f0e
mov eax, dword [ebp - 0x10]
add eax, 0xfffffff0
call fcn.10078f0e
call fcn.10086f06
ret 4