Function at 0x402520
Capabilities:
Create process on windows

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x583859
mov eax, dword fs:[0]
push eax
mov eax, 0xfc8c
call fcn.00551fc0
mov eax, dword [0x5f63b0]
xor eax, ebp
mov dword [ebp - 0x10], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov dword [ebp - 0xfc2c], ecx
cmp byte [0x6bfe40], 0
je 0x40256b
mov ecx, str.CNagScreenApp::iStartUserPart
call fcn.00401270
call fcn.004285d4
xor ecx, ecx
mov edx, eax
test edx, edx
setne cl
test ecx, ecx
jne 0x402587
push 0x80004005
call fcn.00404b40
mov eax, dword [edx]
mov ecx, edx
call dword [eax + 0xc]
lea edi, [eax + 0x10]
mov dword [ebp - 0xfc38], edi
mov dword [ebp - 4], 0
call fcn.004285d4
xor ecx, ecx
mov edx, eax
test edx, edx
setne cl
test ecx, ecx
jne 0x4025ba
push 0x80004005
call fcn.00404b40
mov eax, dword [edx]
mov ecx, edx
call dword [eax + 0xc]
lea ebx, [eax + 0x10]
mov dword [ebp - 0xfc34], ebx
push 0
mov byte [ebp - 4], 1
call dword [sym.imp.KERNEL32.dll_GetModuleHandleW]
or esi, 0xffffffff
mov dword [ebp - 0xfc24], eax
test eax, eax
je 0x402add
push 0x20a
lea eax, [ebp - 0x220]
push 0
push eax
call fcn.005502f0
add esp, 0xc
lea eax, [ebp - 0x220]
push 0x104
push eax
push dword [ebp - 0xfc24]
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameW]
lea ecx, [ebp - 0x220]
lea edx, [ecx + 2]
mov edi, edi
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x402620
sub ecx, edx
sar ecx, 1
push ecx
lea eax, [ebp - 0x220]
push eax
lea ecx, [ebp - 0xfc38]
call fcn.00404190
lea eax, [ebp - 0x220]
push eax
call dword [sym.imp.SHLWAPI.dll_PathRemoveFileSpecW]
lea ecx, [ebp - 0x220]
lea edx, [ecx + 2]
jmp 0x402660
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x402660
sub ecx, edx
sar ecx, 1
push ecx
lea eax, [ebp - 0x220]
push eax
lea ecx, [ebp - 0xfc34]
call fcn.00404190
mov ebx, dword [ebp - 0xfc2c]
push 0
push ebx
lea eax, [ebp - 0xfc3c]
push eax
call dword [sym.imp.USERENV.dll_CreateEnvironmentBlock]
test eax, eax
je 0x402acf
push 0x44
lea eax, [ebp - 0xfc98]
push 0
push eax
call fcn.005502f0
add esp, 0xc
mov dword [ebp - 0xfc98], 0x44
mov dword [ebp - 0xfc90], 0x5c076c
call fcn.004285d4
xor ecx, ecx
mov edx, eax
test edx, edx
setne cl
test ecx, ecx
jne 0x4026e3
push 0x80004005
call fcn.00404b40
mov eax, dword [edx]
mov ecx, edx
call dword [eax + 0xc]
add eax, 0x10
mov dword [ebp - 0xfc28], eax
mov byte [ebp - 4], 2
cmp byte [0x6bff4c], 0
je 0x402712
push 7
push str.__force
lea ecx, [ebp - 0xfc28]
call fcn.00403dc0
mov eax, dword [0x6bff58]
cmp dword [eax - 0xc], 0
je 0x4027ae
push 0x6bff58
lea eax, [ebp - 0xfc30]
push 0x5c052c
push eax
call fcn.00403b60
add esp, 0xc
push 0x5c0528
push eax
lea eax, [ebp - 0xfc24]
push eax
mov byte [ebp - 4], 3
call fcn.00403ce0
add esp, 0xc
mov byte [ebp - 4], 4
mov eax, dword [eax]
lea ecx, [ebp - 0xfc28]
push dword [eax - 0xc]
push eax
call fcn.00403dc0
mov byte [ebp - 4], 3
mov edx, dword [ebp - 0xfc24]
add edx, 0xfffffff0
mov ecx, esi
lea eax, [edx + 0xc]
lock xadd dword [eax], ecx
dec ecx
test ecx, ecx
jg 0x40278b
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
mov byte [ebp - 4], 2
mov edx, dword [ebp - 0xfc30]
add edx, 0xfffffff0
mov ecx, esi
lea eax, [edx + 0xc]
lock xadd dword [eax], ecx
dec ecx
test ecx, ecx
jg 0x4027ae
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
mov eax, dword [0x6bff50]
cmp dword [eax - 0xc], 0
je 0x40284a
push 0x6bff50
lea eax, [ebp - 0xfc24]
push str.__lg__
push eax
call fcn.00403b60
add esp, 0xc
push 0x5c0528
push eax
lea eax, [ebp - 0xfc30]
push eax
mov byte [ebp - 4], 5
call fcn.00403ce0
add esp, 0xc
mov byte [ebp - 4], 6
mov eax, dword [eax]
lea ecx, [ebp - 0xfc28]
push dword [eax - 0xc]
push eax
call fcn.00403dc0
mov byte [ebp - 4], 5
mov edx, dword [ebp - 0xfc30]
add edx, 0xfffffff0
mov ecx, esi
lea eax, [edx + 0xc]
lock xadd dword [eax], ecx
dec ecx
test ecx, ecx
jg 0x402827
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
mov byte [ebp - 4], 2
mov edx, dword [ebp - 0xfc24]
add edx, 0xfffffff0
mov ecx, esi
lea eax, [edx + 0xc]
lock xadd dword [eax], ecx
dec ecx
test ecx, ecx
jg 0x40284a
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
mov eax, dword [0x6bff54]
cmp dword [eax - 0xc], 0
je 0x4028e6
push 0x6bff54
lea eax, [ebp - 0xfc24]
push str.__pl__
push eax
call fcn.00403b60
add esp, 0xc
push 0x5c0528
push eax
lea eax, [ebp - 0xfc30]
push eax
mov byte [ebp - 4], 7
call fcn.00403ce0
add esp, 0xc
mov byte [ebp - 4], 8
mov eax, dword [eax]
lea ecx, [ebp - 0xfc28]
push dword [eax - 0xc]
push eax
call fcn.00403dc0
mov byte [ebp - 4], 7
mov edx, dword [ebp - 0xfc30]
add edx, 0xfffffff0
mov ecx, esi
lea eax, [edx + 0xc]
lock xadd dword [eax], ecx
dec ecx
test ecx, ecx
jg 0x4028c3
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
mov byte [ebp - 4], 2
mov edx, dword [ebp - 0xfc24]
add edx, 0xfffffff0
mov ecx, esi
lea eax, [edx + 0xc]
lock xadd dword [eax], ecx
dec ecx
test ecx, ecx
jg 0x4028e6
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
push dword [ebp - 0xfc28]
lea eax, [ebp - 0xfc20]
push 0x7d00
push eax
call fcn.0054d9fb
add esp, 0xc
push ebx
call dword [sym.imp.ADVAPI32.dll_ImpersonateLoggedOnUser]
mov edi, dword [ebp - 0xfc38]
mov ebx, dword [ebp - 0xfc34]
test eax, eax
je 0x402a9e
cmp byte [0x6bfe40], 0
je 0x40298f
lea ecx, [ebp - 0xfc24]
call fcn.00403090
lea eax, [ebp - 0xfc20]
push eax
push edi
lea eax, [ebp - 0xfc24]
push str.CreateProcessAsUser:__S__CmdLine:__S
push eax
mov byte [ebp - 4], 9
call fcn.004038c0
mov esi, dword [ebp - 0xfc24]
add esp, 0x10
mov ecx, esi
call fcn.00401270
lea edx, [esi - 0x10]
or esi, 0xffffffff
mov byte [ebp - 4], 2
lea eax, [edx + 0xc]
mov ecx, esi
lock xadd dword [eax], ecx
dec ecx
test ecx, ecx
jg 0x40297c
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
cmp byte [0x6bfe40], 0
je 0x40298f
mov ecx, str._Start_UI_Process__r_n
call fcn.00401270
lea eax, [ebp - 0xfc4c]
push eax
lea eax, [ebp - 0xfc98]
push eax
push ebx
push dword [ebp - 0xfc3c]
lea eax, [ebp - 0xfc20]
push 0x4000410
push 0
push 0
push 0
push eax
push edi
push dword [ebp - 0xfc2c]
call dword [sym.imp.ADVAPI32.dll_CreateProcessAsUserW]
call dword [sym.imp.ADVAPI32.dll_RevertToSelf]
mov eax, dword [ebp - 0xfc4c]
cmp eax, 0xffffffff
je 0x402a8c
push 0xffffffffffffffff
push eax
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
cmp byte [0x6bfe40], 0
je 0x4029f4
mov ecx, str._UI_Process_Ended__r_n
call fcn.00401270
call fcn.0040dd80
mov cl, byte [0x6bfe40]
mov dword [ebp - 0xfc2c], eax
test cl, cl
je 0x402a58
lea ecx, [ebp - 0xfc24]
call fcn.00403090
push dword [ebp - 0xfc2c]
lea eax, [ebp - 0xfc24]
push str.Check_shared_magic_value:__u
push eax
mov byte [ebp - 4], 0xa
call fcn.004038c0
mov ecx, dword [ebp - 0xfc24]
add esp, 0xc
call fcn.00401270
lea ecx, [ebp - 0xfc24]
mov byte [ebp - 4], 2
call fcn.00403160
mov cl, byte [0x6bfe40]
mov eax, dword [ebp - 0xfc2c]
cmp eax, 0xab2ce5a1
jne 0x402a72
xor ecx, ecx
call fcn.0040de50
call fcn.00402b50
call fcn.00402d20
jmp 0x402a80
test cl, cl
je 0x402a80
mov ecx, str.Shared_magic_value_invalid___
call fcn.00401270
push dword [ebp - 0xfc4c]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, dword [ebp - 0xfc48]
cmp eax, 0xffffffff
je 0x402a9e
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
push dword [ebp - 0xfc3c]
call dword [sym.imp.USERENV.dll_DestroyEnvironmentBlock]
mov byte [ebp - 4], 1
mov edx, dword [ebp - 0xfc28]
add edx, 0xfffffff0
mov ecx, esi
lea eax, [edx + 0xc]
lock xadd dword [eax], ecx
dec ecx
test ecx, ecx
jg 0x402af0
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
jmp 0x402af0
mov edi, dword [ebp - 0xfc38]
mov ebx, dword [ebp - 0xfc34]
jmp 0x402af0
cmp byte [0x6bfe40], 0
je 0x402af0
mov ecx, str.Cannot_get_Path_to_NeroInfo.exe
call fcn.00401270
add ebx, 0xfffffff0
mov byte [ebp - 4], 0
lea eax, [ebx + 0xc]
mov ecx, esi
lock xadd dword [eax], ecx
dec ecx
test ecx, ecx
jg 0x402b0d
mov ecx, dword [ebx]
push ebx
mov eax, dword [ecx]
call dword [eax + 4]
add edi, 0xfffffff0
mov dword [ebp - 4], 0xffffffff
lea eax, [edi + 0xc]
lock xadd dword [eax], esi
dec esi
test esi, esi
jg 0x402b2b
mov ecx, dword [edi]
push edi
mov eax, dword [ecx]
call dword [eax + 4]
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.0054cf7e
mov esp, ebp
pop ebp
ret