Function at 0x40ca6c
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, 0x5c9704
call fcn.00496be4
mov dword [ebp - 0x24], 1
lea edx, [ebp + 8]
lea eax, [ebp + 8]
call fcn.004a4524
inc dword [ebp - 0x24]
mov word [ebp - 0x30], 8
cmp dword [ebp + 0xc], 0
je 0x40caae
push str.winoa386.mod
call fcn.00401dac
pop ecx
mov word [ebp - 0x30], 0x14
lea eax, [ebp - 4]
call fcn.00401af8
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 0x40cb57
mov word [ebp - 0x30], 0x20
lea eax, [ebp - 0x10]
call fcn.00401af8
push eax
inc dword [ebp - 0x24]
mov edx, str._scrpt.bat
lea eax, [ebp - 0xc]
call fcn.004a44ec
inc dword [ebp - 0x24]
lea edx, [ebp - 0xc]
push edx
lea edx, [ebp - 0x14c]
lea eax, [ebp - 8]
call fcn.004a44ec
inc dword [ebp - 0x24]
pop edx
pop ecx
call fcn.004a46e8
lea edx, [ebp - 0x10]
lea eax, [ebp - 4]
call fcn.004a46c0
dec dword [ebp - 0x24]
lea eax, [ebp - 0x10]
mov edx, 2
call fcn.004a4690
dec dword [ebp - 0x24]
lea eax, [ebp - 0xc]
mov edx, 2
call fcn.004a4690
dec dword [ebp - 0x24]
lea eax, [ebp - 8]
mov edx, 2
call fcn.004a4690
jmp 0x40cbd0
mov word [ebp - 0x30], 0x2c
lea eax, [ebp - 0x1c]
call fcn.00401af8
push eax
inc dword [ebp - 0x24]
mov edx, str._scrpt.vbs
lea eax, [ebp - 0x18]
call fcn.004a44ec
inc dword [ebp - 0x24]
lea edx, [ebp - 0x18]
push edx
lea edx, [ebp - 0x14c]
lea eax, [ebp - 0x14]
call fcn.004a44ec
inc dword [ebp - 0x24]
pop edx
pop ecx
call fcn.004a46e8
lea edx, [ebp - 0x1c]
lea eax, [ebp - 4]
call fcn.004a46c0
dec dword [ebp - 0x24]
lea eax, [ebp - 0x1c]
mov edx, 2
call fcn.004a4690
dec dword [ebp - 0x24]
lea eax, [ebp - 0x18]
mov edx, 2
call fcn.004a4690
dec dword [ebp - 0x24]
lea eax, [ebp - 0x14]
mov edx, 2
call fcn.004a4690
mov dl, 1
mov eax, dword [0x480f94]
call fcn.004035d0
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 0x40cc4e
cmp dword [ebp + 0xc], 0
jne 0x40ccdb
push 0
push 0
push 0
lea eax, [ebp - 4]
call fcn.00401b28
push eax
push 0x5c1de9
push 0
call sub.SHELL32.DLL_ShellExecuteA
cmp eax, 0x20
jle 0x40ccab
mov al, 1
push eax
dec dword [ebp - 0x24]
lea eax, [ebp - 4]
mov edx, 2
call fcn.004a4690
dec dword [ebp - 0x24]
lea eax, [ebp + 8]
mov edx, 2
call fcn.004a4690
pop eax
mov edx, dword [ebp - 0x40]
mov dword fs:[0], edx
jmp 0x40cd59
xor eax, eax
push eax
dec dword [ebp - 0x24]
lea eax, [ebp - 4]
mov edx, 2
call fcn.004a4690
dec dword [ebp - 0x24]
lea eax, [ebp + 8]
mov edx, 2
call fcn.004a4690
pop eax
mov edx, dword [ebp - 0x40]
mov dword fs:[0], edx
jmp 0x40cd59
push 5
push 0
push 0
lea eax, [ebp - 4]
call fcn.00401b28
push eax
push 0x5c1dee
push 0
call sub.SHELL32.DLL_ShellExecuteA
cmp eax, 0x20
jle 0x40cd2b
mov al, 1
push eax
dec dword [ebp - 0x24]
lea eax, [ebp - 4]
mov edx, 2
call fcn.004a4690
dec dword [ebp - 0x24]
lea eax, [ebp + 8]
mov edx, 2
call fcn.004a4690
pop eax
mov edx, dword [ebp - 0x40]
mov dword fs:[0], edx
jmp 0x40cd59
xor eax, eax
push eax
dec dword [ebp - 0x24]
lea eax, [ebp - 4]
mov edx, 2
call fcn.004a4690
dec dword [ebp - 0x24]
lea eax, [ebp + 8]
mov edx, 2
call fcn.004a4690
pop eax
mov edx, dword [ebp - 0x40]
mov dword fs:[0], edx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret