Function at 0x40c9fc
Capabilities:
Create process on windows
Get common file path

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffeb4
push ebx
push esi
push edi
mov eax, 0x5c4700
call fcn.00496b84
mov dword [ebp - 0x24], 1
lea edx, [ebp + 8]
lea eax, [ebp + 8]
call fcn.004a44c4
inc dword [ebp - 0x24]
mov word [ebp - 0x30], 8
cmp dword [ebp + 0xc], 0
je 0x40ca3e
push str.winoa386.mod
call fcn.00401d68
pop ecx
mov word [ebp - 0x30], 0x14
lea eax, [ebp - 4]
call fcn.00401ab4
inc dword [ebp - 0x24]
mov word [ebp - 0x30], 8
lea edx, [ebp - 0x14c]
push edx
push 0x105
call sub.KERNEL32.DLL_GetTempPathA
cmp dword [ebp + 0xc], 0
je 0x40cae7
mov word [ebp - 0x30], 0x20
lea eax, [ebp - 0x10]
call fcn.00401ab4
push eax
inc dword [ebp - 0x24]
mov edx, str._scrpt.bat
lea eax, [ebp - 0xc]
call fcn.004a448c
inc dword [ebp - 0x24]
lea edx, [ebp - 0xc]
push edx
lea edx, [ebp - 0x14c]
lea eax, [ebp - 8]
call fcn.004a448c
inc dword [ebp - 0x24]
pop edx
pop ecx
call fcn.004a4688
lea edx, [ebp - 0x10]
lea eax, [ebp - 4]
call fcn.004a4660
dec dword [ebp - 0x24]
lea eax, [ebp - 0x10]
mov edx, 2
call fcn.004a4630
dec dword [ebp - 0x24]
lea eax, [ebp - 0xc]
mov edx, 2
call fcn.004a4630
dec dword [ebp - 0x24]
lea eax, [ebp - 8]
mov edx, 2
call fcn.004a4630
jmp 0x40cb60
mov word [ebp - 0x30], 0x2c
lea eax, [ebp - 0x1c]
call fcn.00401ab4
push eax
inc dword [ebp - 0x24]
mov edx, str._scrpt.vbs
lea eax, [ebp - 0x18]
call fcn.004a448c
inc dword [ebp - 0x24]
lea edx, [ebp - 0x18]
push edx
lea edx, [ebp - 0x14c]
lea eax, [ebp - 0x14]
call fcn.004a448c
inc dword [ebp - 0x24]
pop edx
pop ecx
call fcn.004a4688
lea edx, [ebp - 0x1c]
lea eax, [ebp - 4]
call fcn.004a4660
dec dword [ebp - 0x24]
lea eax, [ebp - 0x1c]
mov edx, 2
call fcn.004a4630
dec dword [ebp - 0x24]
lea eax, [ebp - 0x18]
mov edx, 2
call fcn.004a4630
dec dword [ebp - 0x24]
lea eax, [ebp - 0x14]
mov edx, 2
call fcn.004a4630
mov dl, 1
mov eax, dword [0x480f34]
call fcn.0040358c
mov dword [ebp - 0x44], eax
mov word [ebp - 0x30], 8
mov edx, dword [ebp + 8]
mov eax, dword [ebp - 0x44]
mov ecx, dword [eax]
call dword [ecx + 0x2c]
mov word [ebp - 0x30], 0x38
mov edx, dword [ebp - 4]
mov eax, dword [ebp - 0x44]
mov ecx, dword [eax]
call dword [ecx + 0x64]
mov word [ebp - 0x30], 8
jmp 0x40cbde
cmp dword [ebp + 0xc], 0
jne 0x40cc6b
push 0
push 0
push 0
lea eax, [ebp - 4]
call fcn.00401ae4
push eax
push 0x5bcdc5
push 0
call sub.SHELL32.DLL_ShellExecuteA
cmp eax, 0x20
jle 0x40cc3b
mov al, 1
push eax
dec dword [ebp - 0x24]
lea eax, [ebp - 4]
mov edx, 2
call fcn.004a4630
dec dword [ebp - 0x24]
lea eax, [ebp + 8]
mov edx, 2
call fcn.004a4630
pop eax
mov edx, dword [ebp - 0x40]
mov dword fs:[0], edx
jmp 0x40cce9
xor eax, eax
push eax
dec dword [ebp - 0x24]
lea eax, [ebp - 4]
mov edx, 2
call fcn.004a4630
dec dword [ebp - 0x24]
lea eax, [ebp + 8]
mov edx, 2
call fcn.004a4630
pop eax
mov edx, dword [ebp - 0x40]
mov dword fs:[0], edx
jmp 0x40cce9
push 5
push 0
push 0
lea eax, [ebp - 4]
call fcn.00401ae4
push eax
push 0x5bcdca
push 0
call sub.SHELL32.DLL_ShellExecuteA
cmp eax, 0x20
jle 0x40ccbb
mov al, 1
push eax
dec dword [ebp - 0x24]
lea eax, [ebp - 4]
mov edx, 2
call fcn.004a4630
dec dword [ebp - 0x24]
lea eax, [ebp + 8]
mov edx, 2
call fcn.004a4630
pop eax
mov edx, dword [ebp - 0x40]
mov dword fs:[0], edx
jmp 0x40cce9
xor eax, eax
push eax
dec dword [ebp - 0x24]
lea eax, [ebp - 4]
mov edx, 2
call fcn.004a4630
dec dword [ebp - 0x24]
lea eax, [ebp + 8]
mov edx, 2
call fcn.004a4630
pop eax
mov edx, dword [ebp - 0x40]
mov dword fs:[0], edx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret