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

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
push 0xffffffffffffffff
push 0x40bc38
mov eax, dword fs:[0]
push eax
sub esp, 0x70
push ebx
push esi
push edi
mov eax, dword [0x410040]
xor eax, esp
push eax
lea eax, [esp + 0x80]
mov dword fs:[0], eax
call fcn.00401b90
mov dword [esp + 0x1c], eax
mov eax, dword [section..data]
mov edx, dword [eax + 0xc]
mov ecx, section..data
call edx
lea esi, [eax + 0x10]
mov dword [esp + 0x18], esi
mov dword [esp + 0x88], 0
mov eax, dword [esi - 8]
mov ecx, 1
sub ecx, dword [esi - 4]
sub eax, 0x104
or eax, ecx
jge 0x401caf
mov eax, 0x104
lea ecx, [esp + 0x18]
call fcn.004013e0
mov esi, dword [esp + 0x18]
push esi
push 0x103
call dword [sym.imp.KERNEL32.dll_GetTempPathW]
mov eax, dword [esi - 8]
push eax
push esi
call fcn.00402fb2
add esp, 8
test eax, eax
js 0x401f1d
cmp eax, dword [esi - 8]
jg 0x401f1d
xor ecx, ecx
mov dword [esi - 0xc], eax
push esi
mov word [esi + eax*2], cx
call fcn.004018b0
mov edi, eax
add esp, 4
lea eax, [esi - 0x10]
test edi, edi
je 0x401d30
mov dword [esp + 0x88], 0xffffffff
lea edx, [eax + 0xc]
or ecx, 0xffffffff
lock xadd dword [edx], ecx
dec ecx
test ecx, ecx
jg 0x401d18
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov eax, edi
mov ecx, dword [esp + 0x80]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
mov dword [esp + 0x14], eax
call fcn.004012c0
add eax, 0x10
mov dword [esp + 0x10], eax
lea edi, [esp + 0x10]
mov byte [esp + 0x88], 1
call fcn.00402450
push 0xe
mov ecx, edi
push ecx
call fcn.00401f30
mov ebx, dword [esp + 0x10]
lea esi, [ebx - 0x10]
mov eax, esi
call fcn.004012c0
lea edi, [eax + 0x10]
mov dword [esp + 0x20], edi
cmp dword [esp + 0x1c], 0
mov byte [esp + 0x88], 2
je 0x401e1f
mov edx, dword [ebp + 8]
push ebx
push edx
mov ecx, edi
call fcn.00402130
add esp, 8
test eax, eax
je 0x401e97
lea eax, [edi - 0x10]
or edx, 0xffffffff
lea ecx, [eax + 0xc]
mov byte [esp + 0x88], 1
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x401dbe
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
or edx, 0xffffffff
lea ecx, [esi + 0xc]
mov byte [esp + 0x88], 0
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x401ddf
mov ecx, dword [esi]
mov eax, dword [ecx]
mov edx, dword [eax + 4]
push esi
call edx
mov eax, dword [esp + 0x14]
mov dword [esp + 0x88], 0xffffffff
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x401e07
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
xor eax, eax
mov ecx, dword [esp + 0x80]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
push 0x44
lea ecx, [esp + 0x38]
push 0
push ecx
call fcn.004032d0
xor eax, eax
add esp, 0xc
lea edx, [esp + 0x34]
push edx
mov dword [esp + 0x28], eax
mov dword [esp + 0x2c], eax
mov dword [esp + 0x30], eax
mov dword [esp + 0x34], eax
call dword [sym.imp.KERNEL32.dll_GetStartupInfoW]
xor eax, eax
lea ecx, [esp + 0x24]
push ecx
lea edx, [esp + 0x38]
push edx
push eax
push eax
push 0x10
push eax
push eax
push eax
push eax
push ebx
mov dword [esp + 0x5c], 0x44
mov dword [esp + 0x88], 1
mov word [esp + 0x8c], ax
call dword [sym.imp.KERNEL32.dll_CreateProcessW]
test eax, eax
je 0x401e97
mov eax, dword [esp + 0x24]
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
jmp 0x401d9a
lea eax, [edi - 0x10]
mov byte [esp + 0x88], 1
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x401ebb
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov byte [esp + 0x88], 0
lea ecx, [esi + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x401edc
mov ecx, dword [esi]
mov eax, dword [ecx]
mov edx, dword [eax + 4]
push esi
call edx
mov eax, dword [esp + 0x14]
mov dword [esp + 0x88], 0xffffffff
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x401f04
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
or eax, 0xffffffff
mov ecx, dword [esp + 0x80]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
push 0x80070057
call fcn.00401780
int3