Function at 0x401fc0
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x422000
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.004172df
xor ebx, ebx
lea eax, [ebp - 0x130]
push 0x42d434
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.0040c1ff
add esp, 8
call fcn.00402fa0
mov esi, eax
mov dword [ebp - 0x24], esi
call fcn.00403000
mov edi, eax
cmp esi, ebx
mov dword [ebp - 0x1c], edi
je 0x4022a2
cmp edi, ebx
je 0x4022a2
mov ecx, esi
call fcn.00403520
push str.Registry_Key
mov ecx, esi
call fcn.00402cc0
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 0x4020b8
lea edx, [ebp - 0x234]
push str.Unable_to_open_Registry_Key
push edx
call fcn.0040c1ff
add esp, 8
mov dword [ebp - 0x2c], edi
mov ecx, 0x83
lea esi, [ebp - 0x234]
lea edi, [ebp - 0x64c]
lea eax, [ebp - 0x64c]
push 0x427f88
push eax
rep movsd dword es:[edi], dword [esi]
call fcn.0040c626
mov ebx, dword [ebp + 0xc]
push 0x104
mov ecx, ebx
mov dword [ebp - 0x18], 0x104
call fcn.0041762d
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 0x402129
lea ecx, [ebp - 0x234]
push str.Unable_to_get_Exe_Name
push ecx
call fcn.0040c1ff
add esp, 8
mov dword [ebp - 0x2c], edi
mov ecx, 0x83
lea esi, [ebp - 0x234]
lea edi, [ebp - 0xa64]
lea edx, [ebp - 0xa64]
push 0x427f88
push edx
rep movsd dword es:[edi], dword [esi]
call fcn.0040c626
push 0xffffffffffffffff
mov ecx, ebx
call fcn.0041767c
mov ecx, esi
call fcn.00403520
push str.ExeName_Reg_Value
mov ecx, esi
call fcn.00402cc0
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.0041762d
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 0x4021c8
lea ecx, [ebp - 0x234]
push str.Unable_to_get_Exe_Path
push ecx
call fcn.0040c1ff
add esp, 8
mov dword [ebp - 0x2c], edi
mov ecx, 0x83
lea esi, [ebp - 0x234]
lea edi, [ebp - 0x858]
lea edx, [ebp - 0x858]
push 0x427f88
push edx
rep movsd dword es:[edi], dword [esi]
call fcn.0040c626
push 0xffffffffffffffff
mov ecx, ebx
call fcn.0041767c
mov ecx, esi
call fcn.00403520
push str.Full_Path_Reg_Value
mov ecx, esi
call fcn.00402cc0
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.0041762d
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 0x40224a
call fcn.0041767c
push str.Registry_Params
mov ecx, esi
call fcn.00402cc0
mov edx, dword [esi]
push str.None_Specified
jmp 0x402267
call fcn.0041767c
mov ecx, esi
call fcn.00403520
push str.Parameters_Reg_Value
mov ecx, esi
call fcn.00402cc0
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.004172b5
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.0040c1ff
lea eax, [ebp - 0x130]
push str.Initialization_error
push eax
call fcn.0040c1ff
mov ecx, 0x83
lea esi, [ebp - 0x234]
lea edi, [ebp - 0xc70]
mov dword [ebp - 0x2c], ebx
add esp, 0x10
rep movsd dword es:[edi], dword [esi]
lea ecx, [ebp - 0xc70]
push 0x427f88
push ecx
call fcn.0040c626
lea ecx, [ebp + 8]
call fcn.00401000
mov ecx, dword [ebp - 0x1c]
mov byte [ebp - 4], 3
test ecx, ecx
je 0x402308
mov edx, dword [ecx]
push 1
call dword [edx + 4]
mov ecx, dword [ebp - 0x24]
test ecx, ecx
je 0x402316
mov eax, dword [ecx]
push 1
call dword [eax + 8]
mov eax, dword [ebp - 0x238]
test eax, eax
je 0x402336
mov ecx, dword [ebp - 0x20]
lea edx, [ebp - 0x440]
push ecx
push edx
push eax
lea ecx, [ebp + 8]
call fcn.00401130
jmp 0x402350
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.00401040
mov eax, dword [ebp - 0x14]
test eax, eax
je 0x40235e
push eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
lea ecx, [ebp + 8]
mov byte [ebp - 4], 2
call fcn.00401030
mov eax, 0x402370
ret