Function at 0x10058669
Capabilities:
Copy file

Disassembly:
push 0x18
mov eax, 0x1009f506
call fcn.10094bba
mov eax, dword [ebx + 0x1c]
cmp byte [eax], 0
je 0x10058693
cmp dword [ebx + 4], 0
jne 0x100588b1
mov dword [ebx + 4], 0x80004004
jmp 0x100588b1
mov edi, dword [ebp + 8]
mov eax, dword [edi]
sub eax, 0x10
call fcn.10084bc8
add eax, 0x10
mov dword [ebp - 0x14], eax
and dword [ebp - 4], 0
lea eax, [ebp - 0x14]
call fcn.1005fa73
push 0x100119a0
xor ecx, ecx
lea esi, [ebp - 0x14]
call fcn.1005fa0d
cmp eax, 0xffffffff
je 0x100586ce
mov eax, dword [ebp - 0x14]
jmp 0x100588a9
or dword [ebp - 4], 0xffffffff
mov eax, dword [ebp - 0x14]
add eax, 0xfffffff0
call fcn.10084c29
mov eax, dword [ebx + 0xc]
sub eax, 0x10
call fcn.10084bc8
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.1005fb5c
mov byte [ebp - 4], 2
mov eax, dword [eax]
push dword [eax - 0xc]
push eax
lea eax, [ebp - 0x10]
call fcn.10067b76
mov byte [ebp - 4], 1
mov eax, dword [ebp - 0x14]
add eax, 0xfffffff0
call fcn.10084c29
push dword [ebp - 0x10]
lea eax, [ebp - 0x1c]
push eax
call fcn.1005f448
lea eax, [ebp - 0x1c]
mov byte [ebp - 4], 3
call fcn.100600cb
push dword [ebp - 0x1c]
push 0
call dword [sym.imp.SHELL32.dll_SHCreateDirectory]
push 0x100119c8
lea eax, [ebp - 0x24]
push eax
call fcn.1005fe35
push 0x100119bc
lea ecx, [ebp - 0x20]
push ecx
mov edi, eax
mov byte [ebp - 4], 4
call fcn.1005fdda
lea ecx, [ebp - 0x10]
push ecx
lea ecx, [ebp - 0x14]
push ecx
mov edi, eax
mov byte [ebp - 4], 5
call fcn.1005fd84
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.10084c29
mov eax, dword [ebp - 0x20]
add eax, 0xfffffff0
call fcn.10084c29
mov byte [ebp - 4], 3
mov eax, dword [ebp - 0x24]
add eax, 0xfffffff0
call fcn.10084c29
mov esi, dword [ebp + 8]
push dword [esi]
lea eax, [ebp - 0x18]
push eax
call fcn.1005f448
lea eax, [ebp - 0x18]
mov byte [ebp - 4], 7
call fcn.100600f4
mov eax, dword [ebp - 0x18]
push ecx
add eax, 0xfffffff0
mov dword [ebp + 8], esp
mov edi, esp
call fcn.10084bc8
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 0x1005885c
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [ebp - 0x24], eax
cmp dword [ebx + 4], edi
jne 0x10058810
mov dword [ebx + 4], eax
mov eax, dword [0x100bcf90]
mov ecx, 0x100bcf90
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 0x100119e0
push eax
call fcn.10084899
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.10084c29
jmp 0x10058866
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 0x10058881
mov eax, dword [ecx]
push 0xff
call dword [eax]
jmp 0x10058890
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.10084c29
mov eax, dword [ebp - 0x1c]
add eax, 0xfffffff0
call fcn.10084c29
mov eax, dword [ebp - 0x10]
add eax, 0xfffffff0
call fcn.10084c29
call fcn.10094ca6
ret 4