Function at 0x10001327
Capabilities:
Copy file
Print debug messages

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x78c
push ebx
push esi
lea eax, [ebp - 0x78c]
push edi
push eax
mov dword [ebp - 4], 0xe
push dword [ebp + 0x20]
call fcn.100016d6
mov dword [ebp - 8], eax
mov al, byte [0x10018d8c]
mov byte [ebp - 0x14], al
xor eax, eax
lea edi, [ebp - 0x13]
and byte [ebp - 0x58c], 0
stosd dword es:[edi], eax
stosd dword es:[edi], eax
stosw word es:[edi], ax
pop ecx
mov edx, 0x81
pop ecx
and byte [ebp - 0x2fc], 0
stosb byte es:[edi], al
mov ecx, edx
xor eax, eax
lea edi, [ebp - 0x58b]
mov esi, dword [sym.imp.KERNEL32.dll_OpenFile]
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
stosb byte es:[edi], al
mov ecx, edx
xor eax, eax
lea edi, [ebp - 0x2fb]
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
stosb byte es:[edi], al
mov edi, 0x4000
lea eax, [ebp - 0x384]
push edi
push eax
push dword [ebp + 0xc]
call esi
mov ebx, dword [sym.imp.KERNEL32.dll_lstrcatA]
cmp eax, 0xffffffff
jne 0x10001458
call fcn.100029ed
push eax
lea eax, [ebp - 0x2fc]
push 0x100150f4
push eax
call dword [sym.imp.USER32.dll_wsprintfA]
add esp, 0xc
lea eax, [ebp - 0x2fc]
push 0x5c
push eax
call fcn.10001c1a
and byte [eax + 1], 0
pop ecx
pop ecx
lea eax, [ebp - 0x58c]
push eax
push dword [ebp + 0xc]
call fcn.100035ff
pop ecx
lea eax, [ebp - 0x2fc]
pop ecx
push eax
call fcn.1000a6f0
pop ecx
lea eax, [ebp - 0x58c]
push eax
lea eax, [ebp - 0x2fc]
push eax
call ebx
push dword [ebp - 0xd4]
lea eax, [ebp - 0x2fc]
push eax
push dword [ebp + 0x18]
push dword [ebp - 0xd0]
call fcn.10001803
add esp, 0x10
test eax, eax
jne 0x10001446
push 1
mov dword [ebp - 4], 3
call fcn.1000a5a0
pop ecx
push 0
lea eax, [ebp - 0x2fc]
push dword [ebp + 0xc]
push eax
call dword [sym.imp.KERNEL32.dll_CopyFileA]
push dword [ebp + 8]
lea eax, [ebp - 0x78c]
push dword [ebp - 8]
push eax
lea eax, [ebp - 0xf4]
push dword [ebp + 0x2c]
push dword [ebp + 0x28]
push dword [ebp + 0x24]
push dword [ebp + 0x20]
push dword [ebp + 0x1c]
push eax
call fcn.1000171d
lea eax, [ebp - 0xf4]
add esp, 0x24
mov dword [0x10018d84], eax
lea eax, [ebp - 0xc8]
push eax
push 0xffffffffffffffff
push fcn.10001bee
push fcn.10001b97
push fcn.10001b5c
push 0x10001b2e
push 0x10001981
push 0x10001976
push 0x10001954
call fcn.10003680
add esp, 0x24
mov dword [ebp - 0xcc], eax
test eax, eax
jne 0x100014d5
mov ax, 6
jmp 0x100016d1
mov eax, dword [ebp + 0x10]
mov dword [ebp - 0xd4], eax
mov eax, dword [ebp - 0xdc]
cmp eax, dword [ebp - 0xd8]
jge 0x1000164b
mov eax, dword [ebp - 0xd4]
cmp eax, dword [ebp + 0x14]
jg 0x1000164b
push eax
push dword [ebp + 0xc]
call fcn.1000176c
pop ecx
test eax, eax
pop ecx
je 0x10001615
lea eax, [ebp - 0x384]
push edi
push eax
push dword [ebp + 0xc]
call esi
cmp eax, 0xffffffff
jne 0x100015b9
call fcn.100029ed
push eax
lea eax, [ebp - 0x2fc]
push 0x100150f4
push eax
call dword [sym.imp.USER32.dll_wsprintfA]
add esp, 0xc
lea eax, [ebp - 0x2fc]
push 0x5c
push eax
call fcn.10001c1a
and byte [eax + 1], 0
pop ecx
pop ecx
lea eax, [ebp - 0x58c]
push eax
push dword [ebp + 0xc]
call fcn.100035ff
pop ecx
lea eax, [ebp - 0x2fc]
pop ecx
push eax
call fcn.1000a6f0
pop ecx
lea eax, [ebp - 0x58c]
push eax
lea eax, [ebp - 0x2fc]
push eax
call ebx
push dword [ebp - 0xd4]
lea eax, [ebp - 0x2fc]
push eax
push dword [ebp + 0x18]
push dword [ebp - 0xd0]
call fcn.10001803
add esp, 0x10
test eax, eax
je 0x1000161e
push 0
lea eax, [ebp - 0x2fc]
push dword [ebp + 0xc]
push eax
call dword [sym.imp.KERNEL32.dll_CopyFileA]
push 0x5c
push dword [ebp + 0x18]
call fcn.10001c1a
pop ecx
and byte [eax + 1], 0
pop ecx
push 0x5c
push dword [ebp + 0xc]
call fcn.10001c1a
pop ecx
inc eax
pop ecx
push eax
lea eax, [ebp - 0x14]
push eax
call dword [sym.imp.KERNEL32.dll_lstrcpyA]
lea eax, [ebp - 0xf4]
push eax
push 0
push section..text
push 0
push dword [ebp + 0x18]
lea eax, [ebp - 0x14]
push eax
push dword [ebp - 0xcc]
call fcn.10003790
add esp, 0x1c
test eax, eax
je 0x1000162f
inc dword [ebp - 0xd4]
jmp 0x100014de
mov dword [ebp - 4], 3
jmp 0x1000164b
push 1
mov dword [ebp - 4], 3
call fcn.1000a5a0
pop ecx
jmp 0x1000164b
mov ax, word [ebp - 0xbc]
movzx ecx, word [ebp - 0xbc]
sub ax, 0xe
neg ax
sbb eax, eax
and eax, ecx
mov dword [ebp - 4], eax
cmp word [ebp - 4], 0xe
jne 0x1000169f
mov eax, dword [ebp - 8]
test eax, eax
jle 0x1000169f
lea edi, [ebp - 0x78c]
mov dword [ebp + 0xc], eax
cmp dword [edi], 0
jne 0x10001686
push 0x10015104
push dword [ebp + 0x28]
call ebx
mov esi, dword [ebp + 0x20]
lea eax, [esi + 1]
push eax
push dword [ebp + 0x28]
call ebx
mov dword [ebp - 4], 3
jmp 0x10001689
mov esi, dword [ebp + 0x20]
push esi
call dword [sym.imp.KERNEL32.dll_lstrlenA]
lea eax, [esi + eax + 1]
add edi, 4
dec dword [ebp + 0xc]
mov dword [ebp + 0x20], eax
jne 0x10001662
push dword [ebp - 0xcc]
call fcn.10003720
mov eax, dword [0x10018d84]
pop ecx
mov eax, dword [eax + 0xdc]
cmp eax, 0xffffffff
je 0x100016c2
push eax
call fcn.10001b97
pop ecx
push str.Ending_BRC
call dword [sym.imp.KERNEL32.dll_OutputDebugStringA]
mov ax, word [ebp - 4]
pop edi
pop esi
pop ebx
leave
ret