Function at 0x402400
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x423420
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0xc64
push ebx
push esi
push edi
lea ecx, [ebp - 0x20]
mov dword [ebp - 0x10], esp
push str.GetRegistryInfo
call fcn.004186ca
xor ebx, ebx
lea eax, [ebp - 0x130]
push 0x42f3d4
mov dword [ebp - 4], ebx
push eax
mov dword [ebp - 0x24], ebx
mov dword [ebp - 0x1c], ebx
mov byte [ebp - 4], 1
mov dword [ebp - 0x2c], ebx
call fcn.0040c660
add esp, 8
call fcn.004033e0
mov esi, eax
mov dword [ebp - 0x24], esi
call fcn.00403440
mov edi, eax
cmp esi, ebx
mov dword [ebp - 0x1c], edi
je 0x4026e2
cmp edi, ebx
je 0x4026e2
mov ecx, esi
call fcn.00403960
push str.Registry_Key
mov ecx, esi
call fcn.00403100
mov ebx, dword [ebp + 8]
mov edx, dword [esi]
push ebx
mov ecx, esi
call dword [edx + 4]
mov eax, dword [edi]
push esi
mov ecx, edi
call dword [eax]
lea ecx, [ebp - 0x14]
push ecx
push 0xf003f
push 0
push ebx
push reloc.OLEAUT32.dll_SysReAllocString
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
mov edi, eax
test edi, edi
je 0x4024f8
lea edx, [ebp - 0x234]
push str.Unable_to_open_Registry_Key
push edx
call fcn.0040c660
add esp, 8
mov dword [ebp - 0x2c], edi
mov ecx, 0x83
lea esi, [ebp - 0x234]
lea edi, [ebp - 0x64c]
lea eax, [ebp - 0x64c]
push 0x42a060
push eax
rep movsd dword es:[edi], dword [esi]
call fcn.0040cba6
mov ebx, dword [ebp + 0xc]
push 0x104
mov ecx, ebx
mov dword [ebp - 0x18], 0x104
call fcn.00418a18
lea ecx, [ebp - 0x18]
lea edx, [ebp - 0x28]
push ecx
push eax
mov eax, dword [ebp - 0x14]
push edx
push 0
push str.ExeName
push eax
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
mov edi, eax
test edi, edi
je 0x402569
lea ecx, [ebp - 0x234]
push str.Unable_to_get_Exe_Name
push ecx
call fcn.0040c660
add esp, 8
mov dword [ebp - 0x2c], edi
mov ecx, 0x83
lea esi, [ebp - 0x234]
lea edi, [ebp - 0xa64]
lea edx, [ebp - 0xa64]
push 0x42a060
push edx
rep movsd dword es:[edi], dword [esi]
call fcn.0040cba6
push 0xffffffffffffffff
mov ecx, ebx
call fcn.00418a67
mov ecx, esi
call fcn.00403960
push str.ExeName_Reg_Value
mov ecx, esi
call fcn.00403100
mov eax, dword [ebx]
mov edx, dword [esi]
push eax
mov ecx, esi
call dword [edx + 4]
mov ecx, dword [ebp - 0x1c]
push esi
mov eax, dword [ecx]
call dword [eax]
mov ebx, dword [ebp + 0x10]
push 0x104
mov ecx, ebx
mov dword [ebp - 0x18], 0x104
call fcn.00418a18
lea ecx, [ebp - 0x18]
lea edx, [ebp - 0x28]
push ecx
push eax
mov eax, dword [ebp - 0x14]
push edx
push 0
push str.ExeFullPath
push eax
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
mov edi, eax
test edi, edi
je 0x402608
lea ecx, [ebp - 0x234]
push str.Unable_to_get_Exe_Path
push ecx
call fcn.0040c660
add esp, 8
mov dword [ebp - 0x2c], edi
mov ecx, 0x83
lea esi, [ebp - 0x234]
lea edi, [ebp - 0x858]
lea edx, [ebp - 0x858]
push 0x42a060
push edx
rep movsd dword es:[edi], dword [esi]
call fcn.0040cba6
push 0xffffffffffffffff
mov ecx, ebx
call fcn.00418a67
mov ecx, esi
call fcn.00403960
push str.Full_Path_Reg_Value
mov ecx, esi
call fcn.00403100
mov eax, dword [ebx]
mov edx, dword [esi]
push eax
mov ecx, esi
call dword [edx + 4]
mov ebx, dword [ebp - 0x1c]
push esi
mov ecx, ebx
mov eax, dword [ebx]
call dword [eax]
mov edi, dword [ebp + 0x14]
push 0x104
mov ecx, edi
mov dword [ebp - 0x18], 0x104
call fcn.00418a18
lea ecx, [ebp - 0x18]
lea edx, [ebp - 0x28]
push ecx
push eax
mov eax, dword [ebp - 0x14]
push edx
push 0
push str.ExeParams
push eax
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
test eax, eax
push 0xffffffffffffffff
mov ecx, edi
je 0x40268a
call fcn.00418a67
push str.Registry_Params
mov ecx, esi
call fcn.00403100
mov edx, dword [esi]
push str.None_Specified
jmp 0x4026a7
call fcn.00418a67
mov ecx, esi
call fcn.00403960
push str.Parameters_Reg_Value
mov ecx, esi
call fcn.00403100
mov edi, dword [edi]
mov edx, dword [esi]
push edi
mov ecx, esi
call dword [edx + 4]
mov eax, dword [ebx]
push esi
mov ecx, ebx
call dword [eax]
mov ecx, dword [ebp - 0x14]
push ecx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
lea ecx, [ebp - 0x20]
mov dword [ebp - 4], 0xffffffff
call fcn.004186a0
mov eax, 1
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
lea edx, [ebp - 0x234]
push str.Output_failed
push edx
call fcn.0040c660
add esp, 8
lea eax, [ebp - 0x130]
push str.Initialization_error
push eax
call fcn.0040c660
mov ecx, 0x83
lea esi, [ebp - 0x234]
lea edi, [ebp - 0xc70]
mov dword [ebp - 0x2c], ebx
add esp, 8
rep movsd dword es:[edi], dword [esi]
lea ecx, [ebp - 0xc70]
push 0x42a060
push ecx
call fcn.0040cba6
lea ecx, [ebp + 8]
call fcn.004012b0
mov ecx, dword [ebp - 0x1c]
mov byte [ebp - 4], 3
test ecx, ecx
je 0x40274b
mov edx, dword [ecx]
push 1
call dword [edx + 4]
mov ecx, dword [ebp - 0x24]
test ecx, ecx
je 0x402759
mov eax, dword [ecx]
push 1
call dword [eax + 8]
mov eax, dword [ebp - 0x238]
test eax, eax
je 0x402779
mov ecx, dword [ebp - 0x20]
lea edx, [ebp - 0x440]
push ecx
push edx
push eax
lea ecx, [ebp + 8]
call fcn.004013e0
jmp 0x402793
mov eax, dword [ebp - 0x20]
lea ecx, [ebp - 0x33c]
push eax
lea edx, [ebp - 0x440]
push ecx
push edx
lea ecx, [ebp + 8]
call fcn.004012f0
mov eax, dword [ebp - 0x14]
test eax, eax
je 0x4027a1
push eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
lea ecx, [ebp + 8]
mov byte [ebp - 4], 2
call fcn.004012e0
mov eax, 0x4027b3
ret