Function at 0x405300
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x42ca68
mov eax, dword fs:[0]
push eax
sub esp, 0x510
mov eax, dword [0x449b88]
xor eax, ebp
mov dword [ebp - 0x10], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov ebx, ecx
mov dword [ebp - 4], 0
cmp dword [ebp + 0x1c], 0x10
mov eax, dword [ebp + 8]
jae 0x405343
lea eax, [ebp + 8]
push eax
push str.SYSTEMCurrentControlSetServices_s
lea eax, [ebp - 0x514]
push 0x400
push eax
call dword [sym.imp.MSVCR100.dll_sprintf_s]
add esp, 0x10
lea ecx, [ebp - 0x518]
push ecx
push 1
push 0
lea edx, [ebp - 0x514]
push edx
push reloc.OLEAUT32.dll_SysReAllocString
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
mov edi, eax
test edi, edi
je 0x4053c8
call dword [sym.imp.ACE.dll_public:_static_int___cdecl_ACE_Log_Msg::last_error_adapter_void_]
mov ebx, eax
call dword [sym.imp.ACE.dll_public:_static_class_ACE_Log_Msg____cdecl_ACE_Log_Msg::instance_void_]
push ebx
push 0
mov esi, eax
push 0x77
push str.VerifyFile.cpp
mov ecx, esi
call dword [sym.imp.ACE.dll_public:_void___thiscall_ACE_Log_Msg::conditional_set_char_const___int__int__int_]
push edi
push str.__t___D____M___I_GetServiceDirectory:RegOpenKeyEx_failed_err_d_n
push 4
push esi
call dword [sym.imp.ACE.dll_public:_int___cdecl_ACE_Log_Msg::log_enum_ACE_Log_Priority__char_const__]
add esp, 0x10
cmp dword [ebp + 0x1c], 0x10
jb 0x405522
mov eax, dword [ebp + 8]
push eax
jmp 0x405519
mov eax, dword [ebp - 0x518]
lea ecx, [ebp - 0x51c]
push ecx
lea edx, [ebp - 0x114]
push edx
push 0
push 0
push str.ImagePath
mov esi, 0x104
push eax
mov dword [ebp - 0x51c], esi
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
mov edi, eax
test edi, edi
jne 0x4054ce
cmp dword [ebp - 0x51c], esi
ja 0x4054ce
mov ecx, dword [ebp - 0x518]
push ecx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
cmp byte [ebp - 0x114], 0x22
jne 0x405458
lea edx, [ebp - 0x113]
push 0x22
push edx
call dword [sym.imp.MSVCR100.dll_strchr]
add esp, 8
test eax, eax
je 0x40543c
mov byte [eax], 0
lea eax, [ebp - 0x113]
lea edx, [eax + 1]
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x405445
sub eax, edx
push eax
lea eax, [ebp - 0x113]
push eax
jmp 0x405472
lea eax, [ebp - 0x114]
lea edx, [eax + 1]
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x405461
sub eax, edx
push eax
lea ecx, [ebp - 0x114]
push ecx
mov ecx, ebx
call fcn.00401b80
call dword [sym.imp.ACE.dll_public:_static_int___cdecl_ACE_Log_Msg::last_error_adapter_void_]
mov edi, eax
call dword [sym.imp.ACE.dll_public:_static_class_ACE_Log_Msg____cdecl_ACE_Log_Msg::instance_void_]
push edi
push 0
mov esi, eax
push 0x93
push str.VerifyFile.cpp
mov ecx, esi
call dword [sym.imp.ACE.dll_public:_void___thiscall_ACE_Log_Msg::conditional_set_char_const___int__int__int_]
mov ecx, ebx
call fcn.00401180
push eax
push str.__t___D____M___I_GetServiceDirectory:Success___got__s_n
push 4
push esi
call dword [sym.imp.ACE.dll_public:_int___cdecl_ACE_Log_Msg::log_enum_ACE_Log_Priority__char_const__]
add esp, 0x10
cmp dword [ebp + 0x1c], 0x10
jb 0x4054ca
mov edx, dword [ebp + 8]
push edx
call dword [sym.imp.MSVCR100.dll_void___cdecl_operator_delete_void__]
add esp, 4
mov al, 1
jmp 0x405524
call dword [sym.imp.ACE.dll_public:_static_int___cdecl_ACE_Log_Msg::last_error_adapter_void_]
mov ebx, eax
call dword [sym.imp.ACE.dll_public:_static_class_ACE_Log_Msg____cdecl_ACE_Log_Msg::instance_void_]
push ebx
push 0
mov esi, eax
push 0x7f
push str.VerifyFile.cpp
mov ecx, esi
call dword [sym.imp.ACE.dll_public:_void___thiscall_ACE_Log_Msg::conditional_set_char_const___int__int__int_]
push edi
push str.__t___D____M___I_GetServiceDirectory:RegQueryValueEx_failed_err_d_n
push 4
push esi
call dword [sym.imp.ACE.dll_public:_int___cdecl_ACE_Log_Msg::log_enum_ACE_Log_Priority__char_const__]
mov eax, dword [ebp - 0x518]
add esp, 0x10
push eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
cmp dword [ebp + 0x1c], 0x10
jb 0x405522
mov ecx, dword [ebp + 8]
push ecx
call dword [sym.imp.MSVCR100.dll_void___cdecl_operator_delete_void__]
add esp, 4
xor al, al
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.00428a52
mov esp, ebp
pop ebp
ret