Function at 0x10001640
Capabilities:
Copy file

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x210
mov eax, dword [section..data]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 0xc]
push ebx
push esi
push edi
push 0x104
mov esi, ecx
lea ecx, [ebp - 0x108]
push 0
push ecx
mov dword [ebp - 0x210], eax
call fcn.10006ac0
push 0x104
lea edx, [ebp - 0x20c]
push 0
push edx
call fcn.10006ac0
lea edx, [ebp - 0x108]
add esp, 0x18
mov eax, esi
sub edx, esi
mov cl, byte [eax]
mov byte [edx + eax], cl
inc eax
test cl, cl
jne 0x10001694
mov eax, 0x10213360
mov edx, eax
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x100016a5
lea edi, [ebp - 0x108]
sub eax, edx
dec edi
mov cl, byte [edi + 1]
inc edi
test cl, cl
jne 0x100016b5
mov ecx, eax
shr ecx, 2
mov esi, edx
rep movsd dword es:[edi], dword [esi]
mov ecx, eax
and ecx, 3
lea eax, [ebp - 0x108]
rep movsb byte es:[edi], byte [esi]
dec eax
mov cl, byte [eax + 1]
inc eax
test cl, cl
jne 0x100016d4
mov ecx, dword [str..exe.manifest]
mov edx, dword [0x1000ba20]
mov dword [eax], ecx
mov ecx, dword [0x1000ba24]
mov dword [eax + 4], edx
mov dx, word [0x1000ba28]
mov dword [eax + 8], ecx
mov word [eax + 0xc], dx
mov eax, dword [ebp + 8]
lea ebx, [ebp - 0x20c]
sub ebx, eax
lea esp, [esp]
mov cl, byte [eax]
mov byte [ebx + eax], cl
inc eax
test cl, cl
jne 0x10001710
mov eax, 0x10213360
mov edx, eax
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x10001721
lea edi, [ebp - 0x20c]
sub eax, edx
dec edi
mov cl, byte [edi + 1]
inc edi
test cl, cl
jne 0x10001731
mov ecx, eax
shr ecx, 2
mov esi, edx
rep movsd dword es:[edi], dword [esi]
mov ecx, eax
and ecx, 3
lea eax, [ebp - 0x20c]
rep movsb byte es:[edi], byte [esi]
dec eax
mov cl, byte [eax + 1]
inc eax
test cl, cl
jne 0x10001750
mov ecx, dword [str..exe.manifest]
mov edx, dword [0x1000ba20]
mov dword [eax], ecx
mov ecx, dword [0x1000ba24]
mov dword [eax + 4], edx
mov dx, word [0x1000ba28]
mov dword [eax + 8], ecx
mov word [eax + 0xc], dx
push 0
lea eax, [ebp - 0x20c]
push eax
lea ecx, [ebp - 0x108]
push ecx
call dword [sym.imp.KERNEL32.dll_CopyFileA]
push 0x104
lea edx, [ebp - 0x108]
push 0
push edx
call fcn.10006ac0
push 0x104
lea eax, [ebp - 0x20c]
push 0
push eax
call fcn.10006ac0
mov edx, dword [ebp - 0x210]
add esp, 0x18
push 0x104
lea ecx, [ebp - 0x108]
push ecx
push edx
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameA]
lea eax, [ebp - 0x108]
push 0x2e
push eax
call fcn.10002610
add esp, 8
test eax, eax
je 0x1000187e
mov ecx, str.y
mov edx, eax
sub edx, ecx
mov al, byte [ecx]
mov byte [edx + ecx], al
inc ecx
test al, al
jne 0x100017f7
lea ecx, [ebp - 0x108]
push 0x5c
push ecx
call fcn.10002610
add esp, 8
test eax, eax
jne 0x1000182b
lea edx, [ebp - 0x108]
push 0x2f
push edx
call fcn.10002610
add esp, 8
test eax, eax
je 0x1000187e
mov ecx, dword [ebp + 8]
inc eax
nop
mov dl, byte [ecx]
mov byte [ebx + ecx], dl
inc ecx
test dl, dl
jne 0x10001830
mov edx, eax
lea esp, [esp]
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x10001840
lea edi, [ebp - 0x20c]
sub eax, edx
dec edi
mov cl, byte [edi + 1]
inc edi
test cl, cl
jne 0x10001850
mov ecx, eax
shr ecx, 2
mov esi, edx
rep movsd dword es:[edi], dword [esi]
mov ecx, eax
and ecx, 3
push 0
lea eax, [ebp - 0x20c]
rep movsb byte es:[edi], byte [esi]
push eax
lea ecx, [ebp - 0x108]
push ecx
call dword [sym.imp.KERNEL32.dll_CopyFileA]
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.100025f4
mov esp, ebp
pop ebp
ret