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

Disassembly:
push 0xffffffffffffffff
push 0x44a7f8
mov eax, dword fs:[0]
push eax
sub esp, 0x14
push ebp
push esi
push edi
mov eax, dword [0x45f684]
xor eax, esp
push eax
lea eax, [esp + 0x24]
mov dword fs:[0], eax
mov dword [esp + 0x2c], 2
call fcn.004115c0
xor ecx, ecx
test eax, eax
setne cl
test ecx, ecx
jne 0x40a888
push 0x80004005
call fcn.00401080
mov edx, dword [eax]
mov ecx, eax
mov eax, dword [edx + 0xc]
call eax
lea esi, [eax + 0x10]
mov dword [esp + 0x10], esi
mov byte [esp + 0x2c], 3
mov eax, dword [esi - 8]
mov ecx, 1
sub ecx, dword [esi - 4]
sub eax, 0x100
or eax, ecx
jge 0x40a8c3
push 0x100
lea ecx, [esp + 0x14]
call fcn.00401100
mov esi, dword [esp + 0x10]
push esi
push 0x100
call dword [sym.imp.KERNEL32.dll_GetTempPathW]
test esi, esi
jne 0x40a8d7
xor eax, eax
jmp 0x40a8f5
mov eax, esi
lea edx, [eax + 2]
lea esp, [esp]
mov cx, word [eax]
add eax, 2
test cx, cx
jne 0x40a8e0
sub eax, edx
sar eax, 1
js 0x40ac69
cmp eax, dword [esi - 8]
jg 0x40ac69
mov dword [esi - 0xc], eax
mov word [esi + eax*2], 0
mov eax, dword [esi - 8]
mov ecx, 1
sub ecx, dword [esi - 4]
sub eax, 0x100
or eax, ecx
jge 0x40a92d
push 0x100
lea ecx, [esp + 0x14]
call fcn.00401100
mov esi, dword [esp + 0x10]
push esi
push 0
push 0x453b48
push esi
call dword [sym.imp.KERNEL32.dll_GetTempFileNameW]
test esi, esi
jne 0x40a944
xor eax, eax
jmp 0x40a965
mov eax, esi
lea edx, [eax + 2]
lea esp, [esp]
mov cx, word [eax]
add eax, 2
test cx, cx
jne 0x40a950
sub eax, edx
sar eax, 1
js 0x40ac69
cmp eax, dword [esi - 8]
jg 0x40ac69
push 4
mov dword [esi - 0xc], eax
push str..exe
lea ecx, [esp + 0x18]
mov word [esi + eax*2], 0
call fcn.00402f90
mov ebp, dword [esp + 0x10]
push ecx
lea edi, [ebp - 0x10]
mov dword [esp + 0x24], esp
mov esi, esp
push edi
call fcn.00401260
add eax, 0x10
add esp, 4
mov dword [esi], eax
call fcn.0040a710
add esp, 4
call dword [sym.imp.KERNEL32.dll_GetCurrentProcessId]
push eax
push 0
push 0x1f0fff
call dword [sym.imp.KERNEL32.dll_OpenProcess]
mov esi, eax
call fcn.004115c0
xor ecx, ecx
test eax, eax
setne cl
test ecx, ecx
jne 0x40a9db
push 0x80004005
call fcn.00401080
mov edx, dword [eax]
mov ecx, eax
mov eax, dword [edx + 0xc]
call eax
add eax, 0x10
mov dword [esp + 0x14], eax
push esi
lea ecx, [esp + 0x18]
push 0x453f44
push ecx
mov byte [esp + 0x38], 4
call fcn.004012d0
add esp, 0xc
lea edx, [esp + 0x20]
push 0x453b70
push edx
lea ecx, [esp + 0x3c]
call fcn.0040d200
lea ecx, [esp + 0x44]
push ecx
push eax
lea edx, [esp + 0x2c]
push edx
mov byte [esp + 0x40], 5
call fcn.004060a0
add esp, 0x14
push 0x453b6c
push eax
lea eax, [esp + 0x20]
push eax
mov byte [esp + 0x38], 6
call fcn.00406160
add esp, 0xc
mov byte [esp + 0x2c], 7
mov eax, dword [eax]
mov ecx, dword [eax - 0xc]
push ecx
push eax
lea ecx, [esp + 0x1c]
call fcn.00402f90
mov byte [esp + 0x2c], 6
mov eax, dword [esp + 0x18]
add eax, 0xfffffff0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x40aa80
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov byte [esp + 0x2c], 5
mov eax, dword [esp + 0x1c]
add eax, 0xfffffff0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x40aaa5
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov byte [esp + 0x2c], 4
mov eax, dword [esp + 0x20]
add eax, 0xfffffff0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x40aaca
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
lea ecx, [esp + 0x18]
push 0x453b70
push ecx
lea ecx, [esp + 0x3c]
call fcn.0040d200
lea edx, [esp + 0x40]
push edx
push eax
lea eax, [esp + 0x2c]
push eax
mov byte [esp + 0x40], 8
call fcn.004060a0
add esp, 0x14
push 0x453b6c
push eax
lea ecx, [esp + 0x28]
push ecx
mov byte [esp + 0x38], 9
call fcn.00406160
add esp, 0xc
mov byte [esp + 0x2c], 0xa
mov eax, dword [eax]
mov ecx, dword [eax - 0xc]
push ecx
push eax
lea ecx, [esp + 0x1c]
call fcn.00402f90
mov byte [esp + 0x2c], 9
mov eax, dword [esp + 0x20]
add eax, 0xfffffff0
lea edx, [eax + 0xc]
or ecx, 0xffffffff
lock xadd dword [edx], ecx
dec ecx
test ecx, ecx
jg 0x40ab47
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov byte [esp + 0x2c], 8
mov eax, dword [esp + 0x1c]
add eax, 0xfffffff0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x40ab6c
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov byte [esp + 0x2c], 4
mov eax, dword [esp + 0x18]
add eax, 0xfffffff0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x40ab91
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov esi, dword [esp + 0x14]
push 0
push 0
push esi
push ebp
push 0
push 0
call dword [sym.imp.SHELL32.dll_ShellExecuteW]
lea eax, [esi - 0x10]
mov byte [esp + 0x2c], 3
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x40abc6
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov byte [esp + 0x2c], 2
lea ecx, [edi + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x40abe4
mov ecx, dword [edi]
mov eax, dword [ecx]
mov edx, dword [eax + 4]
push edi
call edx
mov byte [esp + 0x2c], 1
mov eax, dword [esp + 0x34]
add eax, 0xfffffff0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x40ac09
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov byte [esp + 0x2c], 0
mov eax, dword [esp + 0x38]
add eax, 0xfffffff0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x40ac2e
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov dword [esp + 0x2c], 0xffffffff
mov eax, dword [esp + 0x3c]
add eax, 0xfffffff0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x40ac56
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov ecx, dword [esp + 0x24]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebp
add esp, 0x20
ret
push 0x80070057
call fcn.00401080
int3