Function at 0x100578e0
Capabilities:
Copy file

Disassembly:
push 0x18
mov eax, 0x1009c331
call fcn.1009220a
mov eax, dword [ebx + 0x1c]
cmp byte [eax], 0
je 0x1005790a
cmp dword [ebx + 4], 0
jne 0x10057b28
mov dword [ebx + 4], 0x80004004
jmp 0x10057b28
mov edi, dword [ebp + 8]
mov eax, dword [edi]
sub eax, 0x10
call fcn.10082a9f
add eax, 0x10
mov dword [ebp - 0x14], eax
and dword [ebp - 4], 0
lea eax, [ebp - 0x14]
call fcn.1005e8a8
push 0x10011cb8
xor ecx, ecx
lea esi, [ebp - 0x14]
call fcn.1005e84c
cmp eax, 0xffffffff
je 0x10057945
mov eax, dword [ebp - 0x14]
jmp 0x10057b20
or dword [ebp - 4], 0xffffffff
mov eax, dword [ebp - 0x14]
add eax, 0xfffffff0
call fcn.10082afb
mov eax, dword [ebx + 0xc]
sub eax, 0x10
call fcn.10082a9f
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.1005e982
mov byte [ebp - 4], 2
mov eax, dword [eax]
push dword [eax - 0xc]
push eax
lea eax, [ebp - 0x10]
call fcn.100665e2
mov byte [ebp - 4], 1
mov eax, dword [ebp - 0x14]
add eax, 0xfffffff0
call fcn.10082afb
push dword [ebp - 0x10]
lea eax, [ebp - 0x1c]
push eax
call fcn.1005e2c8
lea eax, [ebp - 0x1c]
mov byte [ebp - 4], 3
call fcn.1005ee9c
push dword [ebp - 0x1c]
push 0
call dword [sym.imp.SHELL32.dll_SHCreateDirectory]
push 0x10011ce0
lea eax, [ebp - 0x24]
push eax
call fcn.1005ec33
push 0x10011cd4
lea ecx, [ebp - 0x20]
push ecx
mov edi, eax
mov byte [ebp - 4], 4
call fcn.1005ebdd
lea ecx, [ebp - 0x10]
push ecx
lea ecx, [ebp - 0x14]
push ecx
mov edi, eax
mov byte [ebp - 4], 5
call fcn.1005eb8c
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.10082afb
mov eax, dword [ebp - 0x20]
add eax, 0xfffffff0
call fcn.10082afb
mov byte [ebp - 4], 3
mov eax, dword [ebp - 0x24]
add eax, 0xfffffff0
call fcn.10082afb
mov esi, dword [ebp + 8]
push dword [esi]
lea eax, [ebp - 0x18]
push eax
call fcn.1005e2c8
lea eax, [ebp - 0x18]
mov byte [ebp - 4], 7
call fcn.1005eec0
mov eax, dword [ebp - 0x18]
push ecx
add eax, 0xfffffff0
mov dword [ebp + 8], esp
mov edi, esp
call fcn.10082a9f
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 0x10057ad3
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [ebp - 0x24], eax
cmp dword [ebx + 4], edi
jne 0x10057a87
mov dword [ebx + 4], eax
mov eax, dword [0x100b8f90]
mov ecx, 0x100b8f90
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 0x10011cf8
push eax
call fcn.100827bb
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.10082afb
jmp 0x10057add
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 0x10057af8
mov eax, dword [ecx]
push 0xff
call dword [eax]
jmp 0x10057b07
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.10082afb
mov eax, dword [ebp - 0x1c]
add eax, 0xfffffff0
call fcn.10082afb
mov eax, dword [ebp - 0x10]
add eax, 0xfffffff0
call fcn.10082afb
call fcn.100922e2
ret 4