Function at 0x407310
Capabilities:
Create process on windows

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x430eb7
mov eax, dword fs:[0]
push eax
sub esp, 0x480
mov eax, dword [0x443230]
xor eax, ebp
mov dword [ebp - 0x14], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov dword [ebp - 0x47c], ecx
mov eax, dword [ebp + 0xc]
mov dword [ebp - 0x480], eax
mov eax, dword [ebp + 0x10]
mov dword [ebp - 0x488], eax
mov dword [ebp - 0x420], 0
mov dword [ebp - 4], 0
call fcn.00408d32
xor ecx, ecx
mov edx, eax
test edx, edx
setne cl
test ecx, ecx
jne 0x407383
push 0x80004005
call fcn.00401010
mov eax, dword [edx]
mov ecx, edx
call dword [eax + 0xc]
lea ebx, [eax + 0x10]
mov dword [ebp - 0x478], ebx
mov byte [ebp - 4], 1
call fcn.00408d32
xor ecx, ecx
mov edx, eax
test edx, edx
setne cl
test ecx, ecx
jne 0x4073b3
push 0x80004005
call fcn.00401010
mov eax, dword [edx]
mov ecx, edx
call dword [eax + 0xc]
lea edi, [eax + 0x10]
mov dword [ebp - 0x484], edi
mov dword [ebp - method.Profile.virtual_0], vtable.Profile.0
mov dword [ebp - 0x418], 0
mov byte [ebp - 4], 3
call fcn.00408d32
xor ecx, ecx
mov edx, eax
test edx, edx
setne cl
test ecx, ecx
jne 0x4073f7
push 0x80004005
call fcn.00401010
mov eax, dword [edx]
mov ecx, edx
call dword [eax + 0xc]
lea esi, [eax + 0x10]
mov dword [ebp - 0x474], esi
push 0x44
lea eax, [ebp - 0x46c]
push 0
push eax
mov byte [ebp - 4], 4
call fcn.0041ce40
mov eax, dword [ebp - 0x47c]
add eax, 0x20
xorps xmm0, xmm0
movq qword [eax], xmm0
movq qword [eax + 8], xmm0
mov dword [ebp - 0x48c], eax
xor eax, eax
add esp, 0xc
mov word [ebp - 0x43c], ax
mov eax, dword [ebp - 0x480]
push 1
push dword [eax]
lea eax, [ebp - 0x420]
push eax
mov dword [ebp - 0x46c], 0x44
mov dword [ebp - 0x464], str.winsta0default
call dword [sym.imp.USERENV.dll_CreateEnvironmentBlock]
test eax, eax
jne 0x40749b
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
push eax
push str.CreateEnvironmentBlock_error__d___0x_X_
push 0x1ad
push 0x43b8c8
mov dword [ebp - 0x470], eax
call fcn.00405530
add esp, 0x14
jmp 0x4075fb
push 0
lea eax, [ebp - 0x418]
push eax
push 0
push 0xf003f
push 0
push 0
push 0
push 0x43a9f8
push SysStringLen
call dword [sym.imp.ADVAPI32.dll_RegCreateKeyExA]
mov dword [ebp - 0x470], eax
test eax, eax
je 0x4074e9
push eax
push eax
push str.profile_open_error__d___0x_X_
push 0x1b8
push 0x43b8f8
call fcn.00405530
add esp, 0x14
jmp 0x4075fb
lea eax, [ebp - 0x474]
push eax
push ecx
lea ecx, [ebp - 0x41c]
call fcn.00405680
mov dword [ebp - 0x470], eax
test eax, eax
je 0x40752a
push eax
push eax
push str.profile_get_path_error__d___0x_X_
push 0x1bf
push 0x43b908
call fcn.00405530
mov esi, dword [ebp - 0x474]
add esp, 0x14
jmp 0x4075fb
mov esi, dword [ebp - 0x474]
push esi
lea eax, [ebp - 0x484]
push 0x43b904
push eax
call fcn.00402bf0
mov edi, dword [ebp - 0x484]
add esp, 0xc
lea eax, [ebp - 0x478]
push edi
push str._sKCaseLib.exe
push eax
call fcn.00402bf0
mov eax, dword [ebp - 0x47c]
mov ebx, dword [ebp - 0x478]
add esp, 0xc
push dword [ebp - 0x488]
push edi
push dword [eax + 8]
lea eax, [ebp - 0x414]
push ebx
push str.__s____s____s____s_
push 0x400
push eax
call fcn.0041cb0f
add esp, 0x1c
lea eax, [ebp - 0x46c]
push dword [ebp - 0x48c]
push eax
push 0
push dword [ebp - 0x420]
lea eax, [ebp - 0x414]
push 0x8000400
push 0
push 0
push 0
push eax
mov eax, dword [ebp - 0x480]
push ebx
push dword [eax]
call dword [sym.imp.ADVAPI32.dll_CreateProcessAsUserA]
test eax, eax
jne 0x4075f1
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
push eax
push str.CreateProcessAsUser_error__d___0x_X_
push 0x226
push 0x43b980
mov dword [ebp - 0x470], eax
call fcn.00405530
add esp, 0x14
jmp 0x4075fb
mov dword [ebp - 0x470], 0
lea edx, [esi - 0x10]
or esi, 0xffffffff
mov byte [ebp - 4], 3
lea ecx, [edx + 0xc]
mov eax, esi
lock xadd dword [ecx], eax
dec eax
test eax, eax
jg 0x40761b
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
mov eax, dword [ebp - 0x418]
mov dword [ebp - method.Profile.virtual_0], vtable.Profile.0
test eax, eax
je 0x407636
push eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
add edi, 0xfffffff0
mov byte [ebp - 4], 1
lea eax, [edi + 0xc]
mov ecx, esi
lock xadd dword [eax], ecx
dec ecx
test ecx, ecx
jg 0x407653
mov ecx, dword [edi]
push edi
mov eax, dword [ecx]
call dword [eax + 4]
add ebx, 0xfffffff0
mov byte [ebp - 4], 0
lea eax, [ebx + 0xc]
lock xadd dword [eax], esi
dec esi
test esi, esi
jg 0x40766e
mov ecx, dword [ebx]
push ebx
mov eax, dword [ecx]
call dword [eax + 4]
mov ecx, dword [ebp - 0x420]
test ecx, ecx
je 0x40767f
push ecx
call dword [sym.imp.USERENV.dll_DestroyEnvironmentBlock]
mov eax, dword [ebp - 0x470]
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 0x14]
xor ecx, ebp
call fcn.00419355
mov esp, ebp
pop ebp
ret 0xc