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

Disassembly:
push ebp
mov ebp, esp
mov ecx, 9
push 0
push 0
dec ecx
jne 0x409ec8
push ecx
push ebx
push esi
push edi
mov esi, eax
mov edi, 0x40d770
xor eax, eax
push ebp
push 0x40a3c3
push dword fs:[eax]
mov dword fs:[eax], esp
lea edx, [ebp - 0x20]
mov eax, 1
call fcn.00402e44
mov eax, dword [ebp - 0x20]
mov edx, 0x40a3dc
call fcn.004017e8
jne 0x409f15
push 1
push 0x40a3e4
call sub.kernel32.dll_WinExec
call fcn.00401428
lea edx, [ebp - 0x24]
mov eax, 1
call fcn.00402e44
mov eax, dword [ebp - 0x24]
mov edx, 0x40a3f8
call fcn.004017e8
je 0x40a006
push 0
lea eax, [ebp - 0x28]
call fcn.00403128
lea eax, [ebp - 0x28]
mov edx, 0x40a404
call fcn.004016ac
mov eax, dword [ebp - 0x28]
call fcn.0040189c
push eax
lea edx, [ebp - 0x2c]
xor eax, eax
call fcn.00402e44
mov eax, dword [ebp - 0x2c]
call fcn.0040189c
push eax
call sub.kernel32.dll_CopyFileA
lea eax, [ebp - 4]
call fcn.00401530
call fcn.00402f50
test eax, eax
jle 0x409fae
mov dword [ebp - 0x1c], eax
mov ebx, 1
push dword [ebp - 4]
push 0x40a41c
lea edx, [ebp - 0x30]
mov eax, ebx
call fcn.00402e44
push dword [ebp - 0x30]
lea eax, [ebp - 4]
mov edx, 3
call fcn.00401764
inc ebx
dec dword [ebp - 0x1c]
jne 0x409f86
push 1
lea eax, [ebp - 0x34]
call fcn.00403128
mov eax, dword [ebp - 0x34]
call fcn.0040189c
push eax
lea eax, [ebp - 0x38]
mov ecx, dword [ebp - 4]
mov edx, 0x40a428
call fcn.004016f0
mov eax, dword [ebp - 0x38]
call fcn.0040189c
push eax
lea eax, [ebp - 0x3c]
call fcn.00403128
lea eax, [ebp - 0x3c]
mov edx, 0x40a404
call fcn.004016ac
mov eax, dword [ebp - 0x3c]
call fcn.0040189c
push eax
push 0
push 0
call sub.shell32.dll_ShellExecuteA
call fcn.00401428
lea edx, [ebp - 0x40]
xor eax, eax
call fcn.00402e44
mov eax, dword [ebp - 0x40]
call fcn.0040609c
mov dword [ebp - 0xc], eax
mov eax, dword [ebp - 0xc]
mov cl, 2
mov edx, 0xfffffffe
call fcn.00405fb4
lea edx, [ebp - 0x16]
mov eax, dword [ebp - 0xc]
mov ecx, 2
call fcn.00405fac
movzx edx, word [ebp - 0x16]
neg edx
sub edx, 2
mov eax, dword [ebp - 0xc]
mov cl, 2
call fcn.00405fb4
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.00405fac
mov eax, dword [0x40d77c]
call fcn.00405f44
test al, al
jne 0x40a086
call fcn.00401428
lea eax, [ebp - 0x44]
call fcn.00403128
mov edx, dword [ebp - 0x44]
mov eax, 0x40d780
mov ecx, 0x40a438
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.00403524
mov dword [0x40d778], eax
mov eax, dword [0x40d778]
add eax, 0x1d
mov edx, 0x40a450
call fcn.00401584
push 0x34
mov eax, edi
mov ecx, 1
mov edx, dword [0x409358]
call fcn.00401fb0
add esp, 4
xor ebx, ebx
lea eax, [ebp - 0x48]
push eax
lea edx, [ebp - 0x4c]
mov eax, ebx
call fcn.00405e28
mov edx, dword [ebp - 0x4c]
mov eax, dword [0x40d778]
xor ecx, ecx
call fcn.0040346c
mov edx, dword [ebp - 0x48]
mov eax, dword [edi]
lea eax, [eax + ebx*4]
call fcn.00401584
inc ebx
cmp ebx, 0x34
jne 0x40a0f7
mov eax, 0x1f
call fcn.00409958
test al, al
je 0x40a1bb
movzx edx, word [ebp - 0x16]
neg edx
sub edx, 6
mov eax, dword [ebp - 0xc]
mov cl, 2
call fcn.00405fb4
lea edx, [ebp - 0x14]
mov eax, dword [ebp - 0xc]
mov ecx, 4
call fcn.00405fac
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.00405fb4
call fcn.0040340c
mov dword [ebp - 0x10], eax
mov ecx, dword [ebp - 0x14]
mov edx, dword [ebp - 0xc]
mov eax, dword [ebp - 0x10]
call fcn.00409a44
xor edx, edx
xor eax, eax
call fcn.00407ae8
mov dword [0x40d774], eax
mov eax, dword [ebp - 0x10]
xor ecx, ecx
xor edx, edx
call fcn.00405fb4
mov eax, dword [0x40d774]
mov edx, dword [ebp - 0x10]
call fcn.00404aec
mov eax, dword [ebp - 0x10]
call fcn.00405634
jmp 0x40a1c5
mov eax, dword [esi + 0x50]
xor edx, edx
call fcn.00403864
mov eax, dword [ebp - 0xc]
call fcn.00405634
mov eax, dword [edi]
mov edx, dword [eax]
mov eax, dword [esi + 0x2c]
call fcn.00406ecc
mov eax, dword [edi]
mov edx, dword [eax + 4]
mov eax, dword [esi + 0x5c]
call fcn.00406ecc
mov eax, dword [edi]
mov edx, dword [eax + 8]
mov eax, dword [esi + 0x30]
call fcn.00406ecc
mov eax, dword [edi]
mov edx, dword [eax + 0xc]
mov eax, dword [esi + 0x48]
call fcn.00406ecc
mov eax, dword [edi]
mov edx, dword [eax + 0x10]
mov eax, dword [esi + 0x4c]
call fcn.00406ecc
mov eax, dword [edi]
mov edx, dword [eax + 0x38]
mov eax, dword [esi + 0x58]
call fcn.00406ecc
mov eax, dword [edi]
mov edx, dword [eax + 0x3c]
mov eax, dword [esi + 0x54]
call fcn.00406ecc
mov eax, dword [edi]
mov edx, dword [eax + 0x44]
mov eax, dword [esi + 0x64]
call fcn.00406ecc
mov eax, dword [edi]
mov edx, dword [eax + 0x48]
mov eax, dword [esi + 0x28]
call fcn.00406ecc
mov eax, 0x1c
call fcn.00409958
mov edx, eax
mov eax, dword [esi + 0x68]
call fcn.00403864
mov eax, dword [edi]
mov edx, dword [eax + 0x78]
mov eax, dword [esi + 0x68]
call fcn.00406ecc
mov eax, dword [esi + 0x68]
mov edx, 0x8000000f
call fcn.00407328
mov eax, 0x30
call fcn.00409980
mov edx, eax
mov eax, dword [esi + 0x48]
call fcn.00407280
mov eax, 0x31
call fcn.00409980
mov edx, eax
mov eax, dword [esi + 0x48]
call fcn.004072b0
mov eax, 0x32
call fcn.00409980
mov edx, eax
mov eax, dword [esi + 0x4c]
call fcn.00407280
mov eax, 0x33
call fcn.00409980
mov edx, eax
mov eax, dword [esi + 0x4c]
call fcn.004072b0
mov eax, dword [edi]
mov edx, dword [eax + 0x60]
mov eax, dword [esi + 0x18]
call fcn.00406ecc
mov eax, dword [edi]
mov edx, dword [eax + 0x60]
mov eax, dword [0x40c458]
mov eax, dword [eax]
call fcn.00406ecc
mov eax, 0x19
call fcn.00409958
test al, al
je 0x40a39b
lea eax, [ebp - 4]
mov edx, dword [edi]
mov edx, dword [edx + 0x68]
call fcn.004015c8
mov eax, 0x1b
call fcn.00409980
cmp eax, 2
jge 0x40a375
mov ebx, 1
xor edi, edi
jmp 0x40a36b
mov edi, ebx
mov eax, 0x1b
call fcn.00409980
sub eax, 1
jb 0x40a329
je 0x40a33d
jmp 0x40a347
mov eax, dword [ebp - 4]
call fcn.0040189c
push eax
push 0
call sub.user32.dll_FindWindowA
mov ebx, eax
jmp 0x40a347
mov eax, dword [ebp - 4]
call fcn.00409bc0
mov ebx, eax
test ebx, ebx
je 0x40a36b
mov eax, dword [0x40c458]
mov eax, dword [eax]
cmp ebx, dword [eax + 0x28]
je 0x40a36b
mov eax, dword [esi + 0x18]
cmp ebx, dword [eax + 0x28]
je 0x40a36b
push 0
push 0
push 0x10
push ebx
call sub.user32.dll_PostMessageA
test ebx, ebx
je 0x40a39b
cmp ebx, edi
jne 0x40a314
jmp 0x40a39b
lea edx, [ebp - 8]
mov eax, dword [ebp - 4]
call fcn.00405e9c
call fcn.00408acc
cmp al, 3
jbe 0x40a393
mov eax, dword [ebp - 8]
call fcn.00409d84
jmp 0x40a39b
mov eax, dword [ebp - 8]
call fcn.00409c7c
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x40a3ca
lea eax, [ebp - 0x4c]
mov edx, 0xc
call fcn.00401554
lea eax, [ebp - 8]
mov edx, 2
call fcn.00401554
ret