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

Disassembly:
push ebp
mov ebp, esp
mov ecx, 0xa
push 0
push 0
dec ecx
jne 0x46f4f0
push ecx
push ebx
push esi
push edi
mov dword [ebp - 4], eax
xor eax, eax
push ebp
push 0x46f75f
push dword fs:[eax]
mov dword fs:[eax], esp
mov eax, dword [ebp - 4]
mov edx, dword [eax + 0x310]
lea eax, [ebp - 0x10]
mov ecx, 0x46f778
call fcn.00403d14
mov ecx, dword [ebp - 0x10]
mov dl, 1
mov eax, dword [0x46b0f0]
call fcn.0046b198
mov esi, eax
mov ebx, 1
jmp 0x46f71c
push 0
lea eax, [ebp - 0xc]
push eax
lea edx, [ebp - 0x14]
mov eax, ebx
call fcn.00407eb8
mov ecx, dword [ebp - 0x14]
mov edx, 0x46f78c
mov eax, esi
mov edi, dword [eax]
call dword [edi]
push 0
lea eax, [ebp - 0x18]
push eax
lea edx, [ebp - 0x1c]
mov eax, ebx
call fcn.00407eb8
mov ecx, dword [ebp - 0x1c]
mov edx, 0x46f79c
mov eax, esi
mov edi, dword [eax]
call dword [edi]
mov eax, dword [ebp - 0x18]
lea edx, [ebp - 8]
call fcn.0046c1a8
push dword [ebp - 8]
push 0x46f7ac
push dword [ebp - 0xc]
lea eax, [ebp - 0x20]
mov edx, 3
call fcn.00403d88
mov eax, dword [ebp - 0x20]
call fcn.004080a8
test al, al
je 0x46f658
push dword [ebp - 8]
push 0x46f7ac
push dword [ebp - 0xc]
lea eax, [ebp - 0x24]
mov edx, 3
call fcn.00403d88
mov eax, dword [ebp - 0x24]
call fcn.00403e8c
push eax
mov eax, dword [ebp - 4]
push dword [eax + 0x310]
push 0x46f7ac
push dword [ebp - 0xc]
lea eax, [ebp - 0x28]
mov edx, 3
call fcn.00403d88
mov eax, dword [ebp - 0x28]
call fcn.00403e8c
pop edx
call fcn.0046c4fc
push 0
lea eax, [ebp - 0x2c]
push eax
lea edx, [ebp - 0x30]
mov eax, ebx
call fcn.00407eb8
mov ecx, dword [ebp - 0x30]
mov edx, 0x46f7b8
mov eax, esi
mov edi, dword [eax]
call dword [edi]
mov eax, dword [ebp - 0x2c]
mov edx, 0x46f7c8
call fcn.00403dd8
jne 0x46f649
push dword [ebp - 8]
push 0x46f7ac
push dword [ebp - 0xc]
lea eax, [ebp - 0x38]
mov edx, 3
call fcn.00403d88
mov eax, dword [ebp - 0x38]
lea edx, [ebp - 0x34]
call fcn.0046c2b8
mov eax, dword [ebp - 4]
mov byte [eax + 0x308], 1
jmp 0x46f71b
push 0
push dword [ebp - 8]
push 0x46f7ac
push dword [ebp - 0xc]
lea eax, [ebp - 0x3c]
mov edx, 3
call fcn.00403d88
mov eax, dword [ebp - 0x3c]
call fcn.00403e8c
push eax
mov eax, dword [ebp - 4]
push dword [eax + 0x310]
push 0x46f7ac
push dword [ebp - 0xc]
lea eax, [ebp - 0x40]
mov edx, 3
call fcn.00403d88
mov eax, dword [ebp - 0x40]
call fcn.00403e8c
push eax
call sub.kernel32.dll_CopyFileA
push 0
lea eax, [ebp - 0x44]
push eax
lea edx, [ebp - 0x48]
mov eax, ebx
call fcn.00407eb8
mov ecx, dword [ebp - 0x48]
mov edx, 0x46f7b8
mov eax, esi
mov edi, dword [eax]
call dword [edi]
mov eax, dword [ebp - 0x44]
mov edx, 0x46f7c8
call fcn.00403dd8
jne 0x46f71b
push 1
push 0
push 0x46f7d4
push dword [ebp - 8]
push 0x46f7ac
push dword [ebp - 0xc]
push 0x46f7e4
lea eax, [ebp - 0x4c]
mov edx, 5
call fcn.00403d88
mov eax, dword [ebp - 0x4c]
call fcn.00403e8c
push eax
push 0x46f7e8
push 0x46f7f8
mov eax, dword [ebp - 4]
call fcn.0042b558
push eax
call sub.shell32.dll_ShellExecuteA
inc ebx
push 0
lea eax, [ebp - 0x50]
push eax
lea edx, [ebp - 0x54]
mov eax, ebx
call fcn.00407eb8
mov ecx, dword [ebp - 0x54]
mov edx, 0x46f78c
mov eax, esi
mov edi, dword [eax]
call dword [edi]
cmp dword [ebp - 0x50], 0
jne 0x46f53d
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x46f766
lea eax, [ebp - 0x54]
mov edx, 0x14
call fcn.00403a6c
ret