Function at 0x100515e0
Capabilities:
Copy file

Disassembly:
push 0x18
mov eax, 0x100917d5
call fcn.100871aa
mov eax, dword [ebx + 0x1c]
cmp byte [eax], 0
je 0x1005160a
cmp dword [ebx + 4], 0
jne 0x10051828
mov dword [ebx + 4], 0x80004004
jmp 0x10051828
mov edi, dword [ebp + 8]
mov eax, dword [edi]
sub eax, 0x10
call fcn.100791e7
add eax, 0x10
mov dword [ebp - 0x14], eax
and dword [ebp - 4], 0
lea eax, [ebp - 0x14]
call fcn.100586bc
push 0x100107a0
xor ecx, ecx
lea esi, [ebp - 0x14]
call fcn.10058652
cmp eax, 0xffffffff
je 0x10051645
mov eax, dword [ebp - 0x14]
jmp 0x10051820
or dword [ebp - 4], 0xffffffff
mov eax, dword [ebp - 0x14]
add eax, 0xfffffff0
call fcn.1007924a
mov eax, dword [ebx + 0xc]
sub eax, 0x10
call fcn.100791e7
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.100587ab
mov byte [ebp - 4], 2
mov eax, dword [eax]
push dword [eax - 0xc]
push eax
lea eax, [ebp - 0x10]
call fcn.1005ff5c
mov byte [ebp - 4], 1
mov eax, dword [ebp - 0x14]
add eax, 0xfffffff0
call fcn.1007924a
push dword [ebp - 0x10]
lea eax, [ebp - 0x1c]
push eax
call fcn.100580f9
lea eax, [ebp - 0x1c]
mov byte [ebp - 4], 3
call fcn.10058d2e
push dword [ebp - 0x1c]
push 0
call dword [sym.imp.SHELL32.dll_SHCreateDirectory]
push 0x100107c8
lea eax, [ebp - 0x24]
push eax
call fcn.10058a90
push 0x100107bc
lea ecx, [ebp - 0x20]
push ecx
mov edi, eax
mov byte [ebp - 4], 4
call fcn.10058a35
lea ecx, [ebp - 0x10]
push ecx
lea ecx, [ebp - 0x14]
push ecx
mov edi, eax
mov byte [ebp - 4], 5
call fcn.100589df
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.1007924a
mov eax, dword [ebp - 0x20]
add eax, 0xfffffff0
call fcn.1007924a
mov byte [ebp - 4], 3
mov eax, dword [ebp - 0x24]
add eax, 0xfffffff0
call fcn.1007924a
mov esi, dword [ebp + 8]
push dword [esi]
lea eax, [ebp - 0x18]
push eax
call fcn.100580f9
lea eax, [ebp - 0x18]
mov byte [ebp - 4], 7
call fcn.10058d59
mov eax, dword [ebp - 0x18]
push ecx
add eax, 0xfffffff0
mov dword [ebp + 8], esp
mov edi, esp
call fcn.100791e7
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 0x100517d3
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [ebp - 0x24], eax
cmp dword [ebx + 4], edi
jne 0x10051787
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 0x100107e0
push eax
call fcn.10078ea6
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.1007924a
jmp 0x100517dd
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 0x100517f8
mov eax, dword [ecx]
push 0xff
call dword [eax]
jmp 0x10051807
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.1007924a
mov eax, dword [ebp - 0x1c]
add eax, 0xfffffff0
call fcn.1007924a
mov eax, dword [ebp - 0x10]
add eax, 0xfffffff0
call fcn.1007924a
call fcn.10087296
ret 4