Function at 0x40ca4c
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, 0x5c7668
call fcn.00496c14
mov dword [ebp - 0x24], 1
lea edx, [ebp + 8]
lea eax, [ebp + 8]
call fcn.004a4554
inc dword [ebp - 0x24]
mov word [ebp - 0x30], 8
cmp dword [ebp + 0xc], 0
je 0x40ca8e
push str.winoa386.mod
call fcn.00401d8c
pop ecx
mov word [ebp - 0x30], 0x14
lea eax, [ebp - 4]
call fcn.00401ad8
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 0x40cb37
mov word [ebp - 0x30], 0x20
lea eax, [ebp - 0x10]
call fcn.00401ad8
push eax
inc dword [ebp - 0x24]
mov edx, str._scrpt.bat
lea eax, [ebp - 0xc]
call fcn.004a451c
inc dword [ebp - 0x24]
lea edx, [ebp - 0xc]
push edx
lea edx, [ebp - 0x14c]
lea eax, [ebp - 8]
call fcn.004a451c
inc dword [ebp - 0x24]
pop edx
pop ecx
call fcn.004a4718
lea edx, [ebp - 0x10]
lea eax, [ebp - 4]
call fcn.004a46f0
dec dword [ebp - 0x24]
lea eax, [ebp - 0x10]
mov edx, 2
call fcn.004a46c0
dec dword [ebp - 0x24]
lea eax, [ebp - 0xc]
mov edx, 2
call fcn.004a46c0
dec dword [ebp - 0x24]
lea eax, [ebp - 8]
mov edx, 2
call fcn.004a46c0
jmp 0x40cbb0
mov word [ebp - 0x30], 0x2c
lea eax, [ebp - 0x1c]
call fcn.00401ad8
push eax
inc dword [ebp - 0x24]
mov edx, str._scrpt.vbs
lea eax, [ebp - 0x18]
call fcn.004a451c
inc dword [ebp - 0x24]
lea edx, [ebp - 0x18]
push edx
lea edx, [ebp - 0x14c]
lea eax, [ebp - 0x14]
call fcn.004a451c
inc dword [ebp - 0x24]
pop edx
pop ecx
call fcn.004a4718
lea edx, [ebp - 0x1c]
lea eax, [ebp - 4]
call fcn.004a46f0
dec dword [ebp - 0x24]
lea eax, [ebp - 0x1c]
mov edx, 2
call fcn.004a46c0
dec dword [ebp - 0x24]
lea eax, [ebp - 0x18]
mov edx, 2
call fcn.004a46c0
dec dword [ebp - 0x24]
lea eax, [ebp - 0x14]
mov edx, 2
call fcn.004a46c0
mov dl, 1
mov eax, dword [0x480fc4]
call fcn.004035b0
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 0x40cc2e
cmp dword [ebp + 0xc], 0
jne 0x40ccbb
push 0
push 0
push 0
lea eax, [ebp - 4]
call fcn.00401b08
push eax
push 0x5bfd45
push 0
call sub.SHELL32.DLL_ShellExecuteA
cmp eax, 0x20
jle 0x40cc8b
mov al, 1
push eax
dec dword [ebp - 0x24]
lea eax, [ebp - 4]
mov edx, 2
call fcn.004a46c0
dec dword [ebp - 0x24]
lea eax, [ebp + 8]
mov edx, 2
call fcn.004a46c0
pop eax
mov edx, dword [ebp - 0x40]
mov dword fs:[0], edx
jmp 0x40cd39
xor eax, eax
push eax
dec dword [ebp - 0x24]
lea eax, [ebp - 4]
mov edx, 2
call fcn.004a46c0
dec dword [ebp - 0x24]
lea eax, [ebp + 8]
mov edx, 2
call fcn.004a46c0
pop eax
mov edx, dword [ebp - 0x40]
mov dword fs:[0], edx
jmp 0x40cd39
push 5
push 0
push 0
lea eax, [ebp - 4]
call fcn.00401b08
push eax
push 0x5bfd4a
push 0
call sub.SHELL32.DLL_ShellExecuteA
cmp eax, 0x20
jle 0x40cd0b
mov al, 1
push eax
dec dword [ebp - 0x24]
lea eax, [ebp - 4]
mov edx, 2
call fcn.004a46c0
dec dword [ebp - 0x24]
lea eax, [ebp + 8]
mov edx, 2
call fcn.004a46c0
pop eax
mov edx, dword [ebp - 0x40]
mov dword fs:[0], edx
jmp 0x40cd39
xor eax, eax
push eax
dec dword [ebp - 0x24]
lea eax, [ebp - 4]
mov edx, 2
call fcn.004a46c0
dec dword [ebp - 0x24]
lea eax, [ebp + 8]
mov edx, 2
call fcn.004a46c0
pop eax
mov edx, dword [ebp - 0x40]
mov dword fs:[0], edx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret