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

Disassembly:
push ebp
mov ebp, esp
mov ecx, 0xd
push 0
push 0
dec ecx
jne 0x40c170
push ecx
push ebx
push esi
push edi
mov edi, eax
xor eax, eax
push ebp
push 0x40c7f8
push dword fs:[eax]
mov dword fs:[eax], esp
lea edx, [ebp - 0x24]
mov eax, 1
call fcn.00404f70
mov eax, dword [ebp - 0x24]
mov edx, 0x40c810
call fcn.00403660
jne 0x40c1b8
push 1
push 0x40c818
call sub.kernel32.dll_WinExec
call fcn.00403284
lea edx, [ebp - 0x28]
xor eax, eax
call fcn.00404f70
mov eax, dword [ebp - 0x28]
lea edx, [ebp - 0x20]
call fcn.004052b0
lea edx, [ebp - 0x2c]
mov eax, 1
call fcn.00404f70
mov eax, dword [ebp - 0x2c]
mov edx, 0x40c82c
call fcn.00403660
je 0x40c2b7
push 0
lea eax, [ebp - 0x30]
call fcn.004052cc
lea eax, [ebp - 0x30]
mov edx, dword [ebp - 0x20]
call fcn.0040351c
mov eax, dword [ebp - 0x30]
call fcn.00403714
push eax
lea edx, [ebp - 0x34]
xor eax, eax
call fcn.00404f70
mov eax, dword [ebp - 0x34]
call fcn.00403714
push eax
call sub.kernel32.dll_CopyFileA
lea eax, [ebp - 8]
call fcn.0040339c
call fcn.0040507c
mov esi, eax
test esi, esi
jle 0x40c261
mov ebx, 1
push dword [ebp - 8]
push 0x40c838
lea edx, [ebp - 0x38]
mov eax, ebx
call fcn.00404f70
push dword [ebp - 0x38]
lea eax, [ebp - 8]
mov edx, 3
call fcn.004035d4
inc ebx
dec esi
jne 0x40c23b
push 1
lea eax, [ebp - 0x3c]
call fcn.004052cc
mov eax, dword [ebp - 0x3c]
call fcn.00403714
push eax
lea eax, [ebp - 0x40]
mov ecx, dword [ebp - 8]
mov edx, 0x40c844
call fcn.00403560
mov eax, dword [ebp - 0x40]
call fcn.00403714
push eax
lea eax, [ebp - 0x44]
call fcn.004052cc
lea eax, [ebp - 0x44]
mov edx, dword [ebp - 0x20]
call fcn.0040351c
mov eax, dword [ebp - 0x44]
call fcn.00403714
push eax
push 0
push 0
call sub.shell32.dll_ShellExecuteA
call fcn.00403284
lea edx, [ebp - 0x48]
xor eax, eax
call fcn.00404f70
mov eax, dword [ebp - 0x48]
call fcn.00408774
mov dword [ebp - 0x10], eax
mov eax, dword [ebp - 0x10]
mov cl, 2
mov edx, 0xfffffffe
call fcn.0040553c
lea edx, [ebp - 0x1a]
mov eax, dword [ebp - 0x10]
mov ecx, 2
call fcn.00405534
movzx edx, word [ebp - 0x1a]
neg edx
sub edx, 2
mov eax, dword [ebp - 0x10]
mov cl, 2
call fcn.0040553c
movzx edx, word [ebp - 0x1a]
mov eax, 0x40f778
call fcn.00403844
mov eax, 0x40f778
call fcn.0040376c
mov edx, eax
movzx ecx, word [ebp - 0x1a]
mov eax, dword [ebp - 0x10]
call fcn.00405534
mov eax, dword [0x40f778]
call fcn.00405100
test al, al
jne 0x40c337
call fcn.00403284
lea edx, [ebp - 0x4c]
mov eax, dword [0x40f778]
call fcn.004052b0
mov eax, dword [ebp - 0x4c]
push eax
lea eax, [ebp - 0x50]
call fcn.004052cc
mov edx, dword [ebp - 0x50]
mov eax, 0x40f77c
pop ecx
call fcn.00403560
push 0
mov eax, dword [0x40f77c]
call fcn.00403714
push eax
mov eax, dword [0x40f778]
call fcn.00403714
push eax
call sub.kernel32.dll_CopyFileA
mov eax, dword [0x40f77c]
call fcn.004057a4
mov dword [0x40f774], eax
mov eax, dword [0x40f774]
add eax, 0x1d
mov edx, 0x40c854
call fcn.004033f0
push 0x34
mov eax, 0x40f76c
mov ecx, 1
mov edx, dword [0x40b52c]
call fcn.00403e44
add esp, 4
xor ebx, ebx
lea eax, [ebp - 0x54]
push eax
lea edx, [ebp - 0x58]
mov eax, ebx
call fcn.0040864c
mov edx, dword [ebp - 0x58]
mov eax, dword [0x40f774]
xor ecx, ecx
call fcn.004056ec
mov edx, dword [ebp - 0x54]
mov eax, dword [0x40f76c]
lea eax, [eax + ebx*4]
call fcn.004033f0
inc ebx
cmp ebx, 0x34
jne 0x40c3b8
mov eax, 0x21
call fcn.0040bbbc
mov byte [0x40e478], al
call fcn.0040507c
mov esi, eax
test esi, esi
jle 0x40c439
mov ebx, 1
lea edx, [ebp - 0x60]
mov eax, ebx
call fcn.00404f70
mov eax, dword [ebp - 0x60]
lea edx, [ebp - 0x5c]
call fcn.004086c0
mov eax, dword [ebp - 0x5c]
mov edx, 0x40c860
call fcn.00403660
jne 0x40c435
mov byte [0x40e478], 1
inc ebx
dec esi
jne 0x40c40a
cmp byte [0x40e478], 0
je 0x40c44c
mov eax, dword [edi + 0x18]
xor edx, edx
call fcn.00405f60
cmp byte [0x40e478], 0
jne 0x40c4eb
mov eax, 0x1f
call fcn.0040bbbc
test al, al
je 0x40c4eb
movzx edx, word [ebp - 0x1a]
neg edx
sub edx, 6
mov eax, dword [ebp - 0x10]
mov cl, 2
call fcn.0040553c
lea edx, [ebp - 0x18]
mov eax, dword [ebp - 0x10]
mov ecx, 4
call fcn.00405534
mov edx, dword [ebp - 0x18]
neg edx
movzx eax, word [ebp - 0x1a]
sub edx, eax
sub edx, 6
mov eax, dword [ebp - 0x10]
mov cl, 2
call fcn.0040553c
call fcn.0040568c
mov dword [ebp - 0x14], eax
mov ecx, dword [ebp - 0x18]
mov edx, dword [ebp - 0x10]
mov eax, dword [ebp - 0x14]
call fcn.0040bcec
xor edx, edx
xor eax, eax
call fcn.00409bb4
mov dword [0x40f770], eax
mov eax, dword [ebp - 0x14]
xor ecx, ecx
xor edx, edx
call fcn.0040553c
mov eax, dword [0x40f770]
mov edx, dword [ebp - 0x14]
call fcn.00407370
mov eax, dword [ebp - 0x14]
call fcn.00407f20
mov eax, dword [ebp - 0x10]
call fcn.00407f20
mov eax, dword [0x40f76c]
mov edx, dword [eax + 0x60]
mov eax, dword [edi + 0x18]
call fcn.00409140
mov eax, dword [0x40f76c]
mov edx, dword [eax + 0x60]
mov eax, dword [0x40e480]
mov eax, dword [eax]
call fcn.00409140
cmp byte [0x40e478], 0
jne 0x40c648
mov eax, dword [0x40f76c]
mov edx, dword [eax]
mov eax, dword [edi + 0x2c]
call fcn.00409140
mov eax, dword [0x40f76c]
mov edx, dword [eax + 4]
mov eax, dword [edi + 0x5c]
call fcn.00409140
mov eax, dword [0x40f76c]
mov edx, dword [eax + 8]
mov eax, dword [edi + 0x30]
call fcn.00409140
mov eax, dword [0x40f76c]
mov edx, dword [eax + 0xc]
mov eax, dword [edi + 0x48]
call fcn.00409140
mov eax, dword [0x40f76c]
mov edx, dword [eax + 0x10]
mov eax, dword [edi + 0x4c]
call fcn.00409140
mov eax, dword [0x40f76c]
mov edx, dword [eax + 0x38]
mov eax, dword [edi + 0x58]
call fcn.00409140
mov eax, dword [0x40f76c]
mov edx, dword [eax + 0x3c]
mov eax, dword [edi + 0x54]
call fcn.00409140
mov eax, dword [0x40f76c]
mov edx, dword [eax + 0x44]
mov eax, dword [edi + 0x64]
call fcn.00409140
mov eax, dword [0x40f76c]
mov edx, dword [eax + 0x48]
mov eax, dword [edi + 0x28]
call fcn.00409140
mov eax, 0x1c
call fcn.0040bbbc
mov edx, eax
mov eax, dword [edi + 0x68]
call fcn.00405f60
mov eax, dword [0x40f76c]
mov edx, dword [eax + 0x78]
mov eax, dword [edi + 0x68]
call fcn.00409140
mov eax, dword [edi + 0x68]
mov edx, 0x8000000f
call fcn.00409548
mov eax, 0x30
call fcn.0040bbe4
mov edx, eax
mov eax, dword [edi + 0x48]
call fcn.004094a0
mov eax, 0x31
call fcn.0040bbe4
mov edx, eax
mov eax, dword [edi + 0x48]
call fcn.004094d0
mov eax, 0x32
call fcn.0040bbe4
mov edx, eax
mov eax, dword [edi + 0x4c]
call fcn.004094a0
mov eax, 0x33
call fcn.0040bbe4
mov edx, eax
mov eax, dword [edi + 0x4c]
call fcn.004094d0
mov eax, 0x14
call fcn.0040bbe4
mov edx, eax
mov eax, dword [edi + 0x3c]
call fcn.00409548
mov eax, 0x19
call fcn.0040bbbc
test al, al
je 0x40c70a
lea eax, [ebp - 8]
mov edx, dword [0x40f76c]
mov edx, dword [edx + 0x68]
call fcn.00403434
mov eax, 0x1b
call fcn.0040bbe4
cmp eax, 2
jge 0x40c6e4
mov ebx, 1
xor esi, esi
jmp 0x40c6da
mov esi, ebx
mov eax, 0x1b
call fcn.0040bbe4
sub eax, 1
jb 0x40c698
je 0x40c6ac
jmp 0x40c6b6
mov eax, dword [ebp - 8]
call fcn.00403714
push eax
push 0
call sub.user32.dll_FindWindowA
mov ebx, eax
jmp 0x40c6b6
mov eax, dword [ebp - 8]
call fcn.0040be68
mov ebx, eax
test ebx, ebx
je 0x40c6da
mov eax, dword [0x40e480]
mov eax, dword [eax]
cmp ebx, dword [eax + 0x28]
je 0x40c6da
mov eax, dword [edi + 0x18]
cmp ebx, dword [eax + 0x28]
je 0x40c6da
push 0
push 0
push 0x10
push ebx
call sub.user32.dll_PostMessageA
test ebx, ebx
je 0x40c70a
cmp ebx, esi
jne 0x40c683
jmp 0x40c70a
lea edx, [ebp - 0xc]
mov eax, dword [ebp - 8]
call fcn.004086c0
call fcn.0040ab30
cmp al, 3
jbe 0x40c702
mov eax, dword [ebp - 0xc]
call fcn.0040c02c
jmp 0x40c70a
mov eax, dword [ebp - 0xc]
call fcn.0040bf24
xor ebx, ebx
mov esi, 0x40f788
mov eax, ebx
cmp eax, 7
ja case.default.0x40c718
jmp dword [eax*4 + 0x40c71f]
xor eax, eax
mov dword [ebp - 4], eax
jmp case.default.0x40c718
mov dword [ebp - 4], 2
jmp case.default.0x40c718
mov dword [ebp - 4], 0xb
jmp case.default.0x40c718
mov dword [ebp - 4], 7
jmp case.default.0x40c718
mov dword [ebp - 4], 0x19
jmp case.default.0x40c718
mov dword [ebp - 4], 0x17
jmp case.default.0x40c718
mov dword [ebp - 4], 0x16
jmp case.default.0x40c718
mov dword [ebp - 4], 0x18
lea edx, [ebp - 0x6c]
mov eax, dword [ebp - 4]
call fcn.0040bbf4
mov eax, dword [ebp - 0x6c]
lea edx, [ebp - 0x68]
call fcn.00405240
mov eax, dword [ebp - 0x68]
lea edx, [ebp - 0x64]
call fcn.004086c0
mov edx, dword [ebp - 0x64]
mov eax, esi
call fcn.004033f0
inc ebx
add esi, 4
cmp ebx, 8
jne 0x40c711
cmp byte [0x40e478], 0
je 0x40c7d0
mov eax, edi
call fcn.0040cf4c
call fcn.00403284
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x40c7ff
lea eax, [ebp - 0x6c]
mov edx, 0x14
call fcn.004033c0
lea eax, [ebp - 0xc]
mov edx, 2
call fcn.004033c0
ret