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

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
push 0xffffffffffffffff
push 0x46cec8
mov eax, dword fs:[0]
push eax
sub esp, 0x4f8
mov eax, dword [0x48c7d0]
xor eax, esp
mov dword [esp + 0x4f0], eax
push ebx
push esi
push edi
mov eax, dword [0x48c7d0]
xor eax, esp
push eax
lea eax, [esp + 0x508]
mov dword fs:[0], eax
mov edi, ecx
mov esi, edx
call fcn.0042a8d7
push eax
lea ecx, [esp + 0x24]
call fcn.00402773
and dword [esp + 0x510], 0
call fcn.0042a8d7
push eax
lea ecx, [esp + 0x18]
call fcn.00402773
mov byte [esp + 0x510], 1
call fcn.0042a8d7
push eax
lea ecx, [esp + 0x1c]
call fcn.00402773
cmp dword [ebp + 8], 0
mov byte [esp + 0x510], 2
lea ecx, [esp + 0x14]
je 0x4158ec
push 0x47741c
call fcn.0040247a
jmp 0x4158f2
push esi
call fcn.0040270e
push dword [edi]
lea esi, [esp + 0x6c]
call fcn.00403b43
mov byte [esp + 0x510], 3
mov ecx, dword [eax]
call fcn.00415020
mov bl, al
lea eax, [esp + 0x6c]
mov byte [esp + 0x510], 2
cmp dword [esp + 0x68], eax
je 0x41592a
push dword [esp + 0x68]
call fcn.0044dba4
pop ecx
test bl, bl
je 0x415a02
xor esi, esi
cmp dword [ebp + 8], esi
je 0x41595d
mov ecx, dword [esp + 0x18]
add ecx, 0xfffffff0
call fcn.0040285d
mov ecx, dword [esp + 0x14]
add ecx, 0xfffffff0
call fcn.0040285d
mov ecx, dword [esp + 0x20]
add ecx, 0xfffffff0
jmp 0x415b4b
push dword [esp + 0x14]
lea eax, [esp + 0x24]
push dword [edi]
push str._TEMP_DNAME___s__IP__s
push eax
call fcn.0040314f
add esp, 0x10
lea eax, [esp + 0x10]
push eax
push 0x20019
push esi
push 0x47a2e4
push reloc.OLEAUT32.dll_SysReAllocString
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
jne 0x415ae2
lea eax, [esp + 0x24]
push eax
lea eax, [esp + 0xf0]
push eax
lea eax, [esp + 0x24]
push eax
push esi
push str.BaseModulePath
push dword [esp + 0x24]
mov dword [esp + 0x3c], 0x410
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
test eax, eax
jne 0x4159f3
push 0xffffffffffffffff
push str.Corees2utility.exe
lea eax, [esp + 0xf4]
push 0x208
push eax
call fcn.00450f71
add esp, 0x10
lea eax, [esp + 0xec]
push eax
lea ecx, [esp + 0x1c]
call fcn.0040247a
push dword [esp + 0x10]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
jmp 0x415ae2
push dword [esp + 0x14]
mov edi, dword [edi]
push edi
lea eax, [esp + 0x28]
push str._T:__s___s
push eax
call fcn.0040314f
add esp, 0x10
push str.HKEY_LOCAL_MACHINESOFTWAREMicrosoftWindowsCurrentVersionApp_Pathsestcfg.exe
lea ecx, [esp + 0x28]
call fcn.004024c3
mov byte [esp + 0x510], 4
call fcn.0042a8d7
push eax
lea ecx, [esp + 0x14]
call fcn.00402773
push ecx
mov byte [esp + 0x514], 5
lea eax, [esp + 0x28]
mov dword [esp + 0x20], esp
mov ecx, esp
push eax
call fcn.0040283c
lea eax, [esp + 0x14]
push eax
call fcn.004288c5
pop ecx
pop ecx
test eax, eax
je 0x415a79
lea eax, [esp + 0x10]
push eax
lea ecx, [esp + 0x1c]
call fcn.0040270e
jmp 0x415aca
push str.HKEY_LOCAL_MACHINESOFTWAREMicrosoftWindowsCurrentVersionApp_Pathsescfg.exe
lea ecx, [esp + 0x20]
call fcn.004024c3
push ecx
lea eax, [esp + 0x20]
mov dword [esp + 0x2c], esp
mov ecx, esp
push eax
mov byte [esp + 0x518], 6
call fcn.0040283c
lea eax, [esp + 0x14]
push eax
call fcn.004288c5
pop ecx
pop ecx
test eax, eax
je 0x415abe
lea eax, [esp + 0x10]
push eax
lea ecx, [esp + 0x1c]
call fcn.0040270e
mov ecx, dword [esp + 0x1c]
add ecx, 0xfffffff0
call fcn.0040285d
mov ecx, dword [esp + 0x10]
add ecx, 0xfffffff0
call fcn.0040285d
mov ecx, dword [esp + 0x24]
add ecx, 0xfffffff0
call fcn.0040285d
push 0x38
lea eax, [esp + 0x34]
push 0
push eax
call fcn.0044de40
mov esi, dword [esp + 0x24]
mov edi, dword [esp + 0x2c]
add esp, 0xc
lea eax, [esp + 0x2c]
push eax
mov dword [esp + 0x30], 0x3c
mov dword [esp + 0x34], 0x40
mov dword [esp + 0x40], esi
mov dword [esp + 0x44], edi
call dword [sym.imp.SHELL32.dll_ShellExecuteExW]
push 0xffffffffffffffff
push dword [esp + 0x68]
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
push dword [esp + 0x64]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
lea ecx, [esi - 0x10]
call fcn.0040285d
mov ecx, dword [esp + 0x14]
add ecx, 0xfffffff0
call fcn.0040285d
lea ecx, [edi - 0x10]
call fcn.0040285d
mov ecx, dword [esp + 0x508]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [esp + 0x4f0]
xor ecx, esp
call fcn.0044d1dc
mov esp, ebp
pop ebp
ret