Function at 0x4096d0
Capabilities:
Create process on windows
Get common file path
Query environment variable

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x461a56
mov eax, dword fs:[0]
push eax
sub esp, 0x470
mov eax, dword [0x47a040]
xor eax, ebp
mov dword [ebp - 0x10], eax
push ebx
push esi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov esi, ecx
push 0x3c
lea eax, [ebp - 0x478]
push 0
push eax
call fcn.00439ab0
add esp, 0xc
lea eax, [ebp - 0x43c]
mov ecx, esi
push eax
call fcn.00409980
push 0x208
lea eax, [ebp - 0x420]
mov dword [ebp - 4], 0
push 0
push eax
call fcn.00439ab0
add esp, 0xc
call fcn.00404660
mov ecx, eax
test ecx, ecx
je 0x409961
mov eax, dword [ecx]
call dword [eax + 0xc]
add eax, 0x10
mov dword [ebp - 0x424], eax
push 0x46f608
lea eax, [ebp - 0x424]
mov byte [ebp - 4], 1
push str.CO_sEC
push eax
call fcn.00405a50
mov esi, dword [ebp - 0x424]
add esp, 0xc
or ebx, 0xffffffff
cmp dword [ebp - 0x42c], 0
je 0x4098f1
push 0x104
lea eax, [ebp - 0x420]
push eax
push esi
call dword [sym.imp.KERNEL32.dll_GetEnvironmentVariableW]
test eax, eax
je 0x4098f1
cmp dword [ebp - 0x428], 7
lea eax, [ebp - 0x420]
mov dword [ebp - 0x468], eax
lea eax, [ebp - 0x43c]
cmova eax, dword [ebp - 0x43c]
push 0x208
mov dword [ebp - 0x464], eax
lea eax, [ebp - 0x218]
push 0
push eax
mov dword [ebp - 0x478], 0x3c
mov dword [ebp - 0x470], 0
mov dword [ebp - 0x46c], str.Open
call fcn.00439ab0
add esp, 0xc
lea eax, [ebp - 0x218]
push eax
push 0x104
call dword [sym.imp.KERNEL32.dll_GetTempPathW]
call fcn.00404660
mov ecx, eax
test ecx, ecx
je 0x40996b
mov eax, dword [ecx]
call dword [eax + 0xc]
add eax, 0x10
mov dword [ebp - 0x47c], eax
lea eax, [ebp - 0x218]
mov byte [ebp - 4], 2
push eax
lea ecx, [ebp - 0x47c]
call fcn.00405690
test al, al
jne 0x409876
lea ecx, [ebp - 0x218]
lea edx, [ecx + 2]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x409854
sub ecx, edx
lea eax, [ebp - 0x218]
sar ecx, 1
push ecx
push eax
lea ecx, [ebp - 0x47c]
call fcn.004058c0
mov byte [ebp - 4], 1
mov eax, dword [ebp - 0x47c]
mov dword [ebp - 0x460], eax
lea edx, [eax - 0x10]
mov eax, ebx
lock xadd dword [edx + 0xc], eax
dec eax
test eax, eax
jg 0x40989d
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
lea eax, [ebp - 0x478]
mov dword [ebp - 0x45c], 0
push eax
mov dword [ebp - 0x474], 0x40
call dword [sym.imp.SHELL32.dll_ShellExecuteExW]
test eax, eax
je 0x4098f1
push 0x40
push dword [ebp - 0x440]
call dword [sym.imp.KERNEL32.dll_SetPriorityClass]
push 0x100
call dword [sym.imp.KERNEL32.dll_GetCurrentProcess]
push eax
call dword [sym.imp.KERNEL32.dll_SetPriorityClass]
push 0xf
call dword [sym.imp.KERNEL32.dll_GetCurrentThread]
push eax
call dword [sym.imp.KERNEL32.dll_SetThreadPriority]
mov byte [ebp - 4], 0
add esi, 0xfffffff0
lock xadd dword [esi + 0xc], ebx
dec ebx
test ebx, ebx
jg 0x40990a
mov ecx, dword [esi]
push esi
mov eax, dword [ecx]
call dword [eax + 4]
mov ecx, dword [ebp - 0x428]
cmp ecx, 7
jbe 0x409946
mov edx, dword [ebp - 0x43c]
lea ecx, [ecx*2 + 2]
mov eax, edx
cmp ecx, 0x1000
jb 0x40993c
mov edx, dword [eax - 4]
add ecx, 0x23
sub eax, edx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x409975
push ecx
push edx
call fcn.00437f52
add esp, 8
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop esi
pop ebx
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.004378e6
mov esp, ebp
pop ebp
ret
push 0x80004005
call fcn.00401920
push 0x80004005
call fcn.00401920
call fcn.00441fe0
int3