Function at 0x402530
Capabilities:
Create process on windows
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x415a7b
mov eax, dword fs:[0]
push eax
sub esp, 0xb10
mov eax, dword [0x41b194]
xor eax, ebp
mov dword [ebp - 0x20], eax
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
lea eax, [ebp - 0xac4]
push eax
call fcn.00401c10
add esp, 4
mov dword [ebp - 0xb10], eax
mov ecx, dword [ebp - 0xb10]
push ecx
mov ecx, 0x41cee0
call fcn.004017d0
lea ecx, [ebp - 0xac4]
call fcn.004017b0
push str.HitmanPro_3.8_Application
push 0
push 2
call dword [sym.imp.KERNEL32.dll_OpenEventW]
mov dword [ebp - 0x14], eax
cmp dword [ebp - 0x14], 0
je 0x4025c2
push str.HitmanPro_already_running_r_n
call fcn.00401180
add esp, 4
mov edx, dword [ebp - 0x14]
push edx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov al, 1
jmp 0x40295e
call fcn.00402410
mov dword [ebp - 0x10], eax
cmp dword [ebp - 0x10], 0
jne 0x4025dc
xor al, al
jmp 0x40295e
mov byte [ebp - 0x19], 1
lea eax, [ebp - 0x18]
push eax
push 1
push 0
push str.SOFTWAREHitmanPro
push 0x80000002
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
jne 0x402760
mov dword [ebp - 0xa80], 0x200
lea ecx, [ebp - 0xa80]
push ecx
lea edx, [ebp - 0xa7c]
push edx
push 0
push 0
push str.SchedulerScanType
mov eax, dword [ebp - 0x18]
push eax
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
test eax, eax
jne 0x40264b
lea ecx, [ebp - 0xa7c]
push ecx
push str.quick
call fcn.00404b4c
add esp, 8
test eax, eax
je 0x40264b
mov byte [ebp - 0x19], 0
mov dword [ebp - 0xa80], 0x200
lea edx, [ebp - 0xa80]
push edx
lea eax, [ebp - 0xa7c]
push eax
push 0
push 0
push str.LastDefaultScan
mov ecx, dword [ebp - 0x18]
push ecx
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
test eax, eax
jne 0x402760
lea ecx, [ebp - 0xa9c]
call fcn.00401660
mov dword [ebp - 4], 0
lea edx, [ebp - 0xa9c]
push edx
lea eax, [ebp - 0xa7c]
push eax
call fcn.00401d00
add esp, 8
movzx ecx, al
test ecx, ecx
je 0x40274e
sub esp, 8
fld qword [0x418898]
fstp qword [esp]
lea edx, [ebp - 0xaf4]
push edx
call fcn.004015d0
add esp, 0xc
mov dword [ebp - 0xb14], eax
lea eax, [ebp - 0xae4]
push eax
call fcn.00401c10
add esp, 4
mov dword [ebp - 0xb18], eax
mov ecx, dword [ebp - 0xb14]
push ecx
lea edx, [ebp - 0xb0c]
push edx
mov ecx, dword [ebp - 0xb18]
call fcn.00401c60
mov dword [ebp - 0xb1c], eax
mov eax, dword [ebp - 0xb1c]
push eax
lea ecx, [ebp - 0xa9c]
call fcn.00401800
mov byte [ebp - 0xac5], al
lea ecx, [ebp - 0xb0c]
call fcn.004017b0
lea ecx, [ebp - 0xae4]
call fcn.004017b0
lea ecx, [ebp - 0xaf4]
call fcn.00401550
movzx ecx, byte [ebp - 0xac5]
test ecx, ecx
je 0x40274e
mov byte [ebp - 0x19], 0
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0xa9c]
call fcn.004017b0
mov edx, dword [ebp - 0x10]
push edx
push str.__s___scan:boot__quiet
push 0x400
lea eax, [ebp - 0x824]
push eax
call fcn.00404efd
add esp, 0x10
movzx ecx, byte [ebp - 0x19]
test ecx, ecx
je 0x40279e
push str.__quick
push 0x400
lea edx, [ebp - 0x824]
push edx
call fcn.00404f1b
add esp, 0xc
push 0x44
push 0
lea eax, [ebp - 0x87c]
push eax
call fcn.0040b510
add esp, 0xc
xor ecx, ecx
mov dword [ebp - 0x834], ecx
mov dword [ebp - 0x830], ecx
mov dword [ebp - 0x82c], ecx
mov dword [ebp - 0x828], ecx
cmp dword [ebp + 8], 0
je 0x4028e7
mov byte [ebp - 0xaa5], 0
mov dword [ebp - 0x87c], 0x44
mov dword [ebp - 0x874], str.winsta0Default
mov dword [ebp - 0xaa4], 0
mov dword [ebp - 0xaa0], 0
push 0
mov edx, dword [ebp + 8]
push edx
lea eax, [ebp - 0xaa4]
push eax
call dword [sym.imp.USERENV.dll_CreateEnvironmentBlock]
test eax, eax
je 0x40282d
mov ecx, dword [ebp - 0xaa0]
or ecx, 0x400
mov dword [ebp - 0xaa0], ecx
lea edx, [ebp - 0x824]
push edx
push str.CreateProcessAsUser:__ws_r_n
call fcn.00401180
add esp, 8
lea eax, [ebp - 0x834]
push eax
lea ecx, [ebp - 0x87c]
push ecx
push 0
mov edx, dword [ebp - 0xaa4]
push edx
mov eax, dword [ebp - 0xaa0]
push eax
push 1
push 0
push 0
lea ecx, [ebp - 0x824]
push ecx
push 0
mov edx, dword [ebp + 8]
push edx
call dword [sym.imp.ADVAPI32.dll_CreateProcessAsUserW]
test eax, eax
jne 0x40288b
push str.CreateProcessAsUser
call fcn.00401220
add esp, 4
jmp 0x4028c7
mov eax, dword [ebp - 0x82c]
push eax
lea ecx, [ebp - 0x824]
push ecx
push str._ws_started_with_PID__u_r_n
call fcn.00401180
add esp, 0xc
mov edx, dword [ebp - 0x830]
push edx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, dword [ebp - 0x834]
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov byte [ebp - 0xaa5], 1
cmp dword [ebp - 0xaa4], 0
je 0x4028dd
mov ecx, dword [ebp - 0xaa4]
push ecx
call dword [sym.imp.USERENV.dll_DestroyEnvironmentBlock]
mov al, byte [ebp - 0xaa5]
jmp 0x40295e
lea edx, [ebp - 0x834]
push edx
lea eax, [ebp - 0x87c]
push eax
push 0
push 0
push 0
push 1
push 0
push 0
lea ecx, [ebp - 0x824]
push ecx
push 0
call dword [sym.imp.KERNEL32.dll_CreateProcessW]
test eax, eax
jne 0x402927
push str.CreateProcess
call fcn.00401220
add esp, 4
xor al, al
jmp 0x40295e
mov edx, dword [ebp - 0x82c]
push edx
lea eax, [ebp - 0x824]
push eax
push str._ws_started_with_PID__u_r_n
call fcn.00401180
add esp, 0xc
mov ecx, dword [ebp - 0x830]
push ecx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov edx, dword [ebp - 0x834]
push edx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov al, 1
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
mov ecx, dword [ebp - 0x20]
xor ecx, ebp
call fcn.00404566
mov esp, ebp
pop ebp
ret