Function at 0x401000
Capabilities:
Access peb ldr_data
Query or enumerate registry value

Disassembly:
push 0xffffffffffffffff
push 0x4028ff
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x124
push ebx
xor ebx, ebx
push esi
push edi
mov dword [esp + 0x1c], ebx
xor esi, esi
mov dword [esp + 0x138], 1
mov dword [esp + 0x28], esi
lea eax, [esp + 0x14]
lea ecx, [esp + 0xc]
push eax
push ecx
push ebx
push 0xf003f
push ebx
push ebx
push ebx
push str.stp_shellopencommand
push 0x80000000
mov byte [esp + 0x15c], 2
mov dword [esp + 0x30], ebx
call dword [sym.imp.ADVAPI32.dll_RegCreateKeyExA]
cmp eax, ebx
jne 0x40124a
mov esi, dword [esp + 0xc]
mov ecx, 0x40
xor eax, eax
lea edi, [esp + 0x30]
rep stosd dword es:[edi], eax
lea edx, [esp + 0x20]
lea eax, [esp + 0x30]
push edx
lea ecx, [esp + 0x14]
push eax
push ecx
push ebx
push 0x404288
push esi
mov dword [esp + 0x40], esi
mov dword [esp + 0x38], 0x100
mov dword [esp + 0x28], ebx
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
cmp eax, ebx
jne 0x40124a
lea edx, [esp + 0x30]
lea ecx, [esp + 0xc]
push edx
call sub.MFC42.DLL_CString::CString_1
mov bl, 3
push 0x404288
push 0x4040bc
lea ecx, [esp + 0x14]
mov byte [esp + 0x140], bl
call sub.MFC42.DLL_CString::Replace
push 0x404288
push 0x4040b8
lea ecx, [esp + 0x14]
call sub.MFC42.DLL_CString::Replace
lea ecx, [esp + 0xc]
call sub.MFC42.DLL_CString::TrimLeft
lea ecx, [esp + 0xc]
call sub.MFC42.DLL_CString::TrimRight_1
mov eax, dword [esp + 0xc]
mov ecx, dword [eax - 8]
test ecx, ecx
je 0x401237
push 0
push eax
lea eax, [esp + 0x20]
push eax
call fcn.00402090
add esp, 0xc
push eax
lea ecx, [esp + 0x10]
mov byte [esp + 0x13c], 4
call sub.MFC42.DLL_CString::operator_1
lea ecx, [esp + 0x18]
mov byte [esp + 0x138], bl
call sub.MFC42.DLL_CString::CString
lea ecx, [esp + 0x14]
push ecx
call sub.MFC42.DLL_CTime::GetTickCount
mov edx, dword [eax]
lea eax, [esp + 0x10]
push str._Y__m__d.ldt
push eax
lea ecx, [esp + 0x34]
mov dword [esp + 0x34], edx
call sub.MFC42.DLL_CTime::Format
lea ecx, [esp + 0xc]
push 0x4040a4
lea edx, [esp + 0x18]
push ecx
push edx
mov byte [esp + 0x144], 5
call sub.MFC42.DLL_operator
push str.Dock_UIdata_
push eax
lea eax, [esp + 0x2c]
mov byte [esp + 0x140], 6
push eax
call sub.MFC42.DLL_operator
lea ecx, [esp + 0x10]
lea edx, [esp + 0x18]
push ecx
push eax
push edx
mov byte [esp + 0x144], 7
call sub.MFC42.DLL_operator_1
push eax
lea ecx, [esp + 0x10]
mov byte [esp + 0x13c], 8
call sub.MFC42.DLL_CString::operator_1
lea ecx, [esp + 0x18]
mov byte [esp + 0x138], 7
call sub.MFC42.DLL_CString::CString
lea ecx, [esp + 0x24]
mov byte [esp + 0x138], 6
call sub.MFC42.DLL_CString::CString
lea ecx, [esp + 0x14]
mov byte [esp + 0x138], 5
call sub.MFC42.DLL_CString::CString
mov edi, dword [esp + 0x140]
lea eax, [esp + 0xc]
push eax
mov ecx, edi
call sub.MFC42.DLL_CString::CString_2
mov dword [esp + 0x1c], 1
lea ecx, [esp + 0x10]
mov byte [esp + 0x138], bl
call sub.MFC42.DLL_CString::CString
lea ecx, [esp + 0xc]
mov byte [esp + 0x138], 2
call sub.MFC42.DLL_CString::CString
test esi, esi
je 0x401270
jmp 0x401269
lea ecx, [esp + 0xc]
mov byte [esp + 0x138], 2
call sub.MFC42.DLL_CString::CString
xor ebx, ebx
mov edi, dword [esp + 0x140]
push 0x404288
mov ecx, edi
call sub.MFC42.DLL_CString::CString_1
cmp esi, ebx
mov dword [esp + 0x1c], 1
je 0x401270
push esi
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
lea ecx, [esp + 0x144]
mov byte [esp + 0x138], 0
call sub.MFC42.DLL_CString::CString
mov ecx, dword [esp + 0x130]
mov eax, edi
pop edi
pop esi
pop ebx
mov dword fs:[0], ecx
add esp, 0x130
ret