Function at 0x502ee0
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x5c47c4
mov eax, dword fs:[0]
push eax
sub esp, 0x6c
mov eax, dword [0x669404]
xor eax, ebp
mov dword [ebp - 0x14], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov dword [ebp - 0x10], esp
mov eax, dword [ebp + 8]
mov dword [ebp - 0x5c], eax
mov dword [ebp - 0x78], ecx
mov dword [ebp - 0x60], edx
mov eax, dword [ebp + 0xc]
mov dword [ebp - 0x74], eax
xor edi, edi
mov dword [ebp - 0x64], edi
mov dword [ebp - 4], edi
lea eax, [edi + 0x10]
call fcn.00549c70
mov dword [ebp - 0x10], esp
mov esi, esp
push 0xdead000b
push 0x1a6beef
lea ecx, [ebp - 0x54]
push ecx
call fcn.00404610
add esp, 0xc
mov byte [ebp - 4], 1
cmp dword [eax + 0x14], 0x10
jb 0x502f57
mov eax, dword [eax]
mov edx, dword [eax]
mov dword [esi], edx
mov ecx, dword [eax + 4]
mov dword [esi + 4], ecx
mov edx, dword [eax + 8]
mov dword [esi + 8], edx
mov eax, dword [eax + 0xc]
mov dword [esi + 0xc], eax
mov byte [ebp - 4], 0
lea ecx, [ebp - 0x54]
call fcn.00406010
mov eax, 8
call fcn.00549c70
mov dword [ebp - 0x10], esp
mov eax, esp
mov dword [ebp - 0x64], eax
cmp eax, edi
je 0x502f95
mov dword [eax], 0xabab01a6
mov dword [ebp - 4], 0xffffffff
xor ebx, ebx
mov eax, dword [ebp - 0x64]
cmp eax, ebx
je 0x502fab
mov dword [eax], 0xcdcd01a6
mov esi, 6
mov dword [ebp - 0x6c], esi
test byte [0x679728], 1
jne 0x502fe3
or dword [0x679728], 1
mov dword [ebp - 4], 3
call fcn.00418470
push 0x5ea290
call fcn.00546cf7
add esp, 4
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x6c]
push ecx
mov edi, 0x6796d8
call fcn.00418b90
test al, al
je 0x503133
mov dword [ebp - 0x24], 0xf
mov dword [ebp - 0x28], ebx
mov byte [ebp - 0x38], 0
mov dword [ebp - 4], 4
mov dword [ebp - 0x1c], ebx
mov dword [ebp - 4], 5
mov dword [ebp - 0x18], ebx
mov dword [ebp - 4], esi
lea edi, [ebp - 0x38]
call fcn.004193b0
mov ecx, dword [eax + 0x1c]
cmp ecx, ebx
jne 0x50304a
push 0xd
push str.EnterFunction
mov ecx, eax
call fcn.004044f0
jmp 0x503058
push str.EnterFunction
push ecx
call fcn.004046b0
add esp, 8
push 0x1ff
push ebx
lea edx, [ebp - 0x54]
push edx
mov ecx, dword [ebp - 0x18]
call fcn.00403c90
mov esi, eax
mov byte [ebp - 4], 7
test byte [0x679728], 1
jne 0x50309a
or dword [0x679728], 1
mov byte [ebp - 4], 8
call fcn.00418470
push 0x5ea290
call fcn.00546cf7
add esp, 4
mov byte [ebp - 4], 7
mov dword [ebp - 0x6c], 0x6796dc
mov ecx, 0x6796dc
mov eax, dword [0x6796dc]
mov edx, dword [eax + 4]
call edx
mov byte [ebp - 4], 9
mov ecx, dword [0x679724]
cmp ecx, ebx
je 0x5030e3
cmp dword [esi + 0x14], 8
jb 0x5030c8
mov eax, dword [esi]
jmp 0x5030ca
mov eax, esi
mov edx, dword [ecx]
push 0x1a6
push str.RegistryHandler::GetValue
push str.RegistryHandler.cpp
push eax
push 6
mov eax, dword [edx + 8]
call eax
mov byte [ebp - 4], 7
mov edx, dword [0x6796dc]
mov ecx, 0x6796dc
mov eax, dword [edx + 8]
call eax
mov byte [ebp - 4], 6
cmp dword [ebp - 0x40], 8
jb 0x50310e
mov ecx, dword [ebp - 0x54]
push ecx
call dword [sym.imp.MSVCR100.dll_void___cdecl_operator_delete_void__]
add esp, 4
mov dword [ebp - 0x40], 7
mov dword [ebp - 0x44], ebx
xor edx, edx
mov word [ebp - 0x54], dx
mov dword [ebp - 4], 0xffffffff
lea eax, [ebp - 0x38]
push eax
call fcn.00419280
mov esi, 6
mov eax, dword [ebp - 0x64]
cmp eax, ebx
je 0x503140
mov dword [eax], 0xcdcd01a7
mov dword [ebp - 0x6c], esi
test byte [0x679728], 1
jne 0x503173
or dword [0x679728], 1
mov dword [ebp - 4], 0xa
call fcn.00418470
push 0x5ea290
call fcn.00546cf7
add esp, 4
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x6c]
push ecx
mov edi, 0x6796d8
call fcn.00418b90
test al, al
je 0x5032e1
mov dword [ebp - 0x24], 0xf
mov dword [ebp - 0x28], ebx
mov byte [ebp - 0x38], 0
mov dword [ebp - 4], 0xb
mov dword [ebp - 0x1c], ebx
mov dword [ebp - 4], 0xc
mov dword [ebp - 0x18], ebx
mov dword [ebp - 4], 0xd
lea edi, [ebp - 0x38]
call fcn.004193b0
mov esi, eax
mov eax, dword [esi + 0x1c]
cmp eax, ebx
jne 0x5031d3
push 0x13
push str.EnterFunction_Name
mov ecx, esi
call fcn.004044f0
jmp 0x5031e1
push str.EnterFunction_Name
push eax
call fcn.004046b0
add esp, 8
mov eax, dword [esi + 0x1c]
cmp eax, ebx
jne 0x5031f8
push 0xffffffffffffffff
push ebx
mov edx, dword [ebp - 0x60]
push edx
mov ecx, esi
call fcn.00406070
jmp 0x503205
mov ecx, dword [ebp - 0x60]
push ecx
push eax
call fcn.004049a0
add esp, 8
push 0x1ff
push 0
lea edx, [ebp - 0x54]
push edx
mov ecx, dword [ebp - 0x18]
call fcn.00403c90
mov esi, eax
mov bl, 0xe
mov byte [ebp - 4], bl
test byte [0x679728], 1
jne 0x503248
or dword [0x679728], 1
mov byte [ebp - 4], 0xf
call fcn.00418470
push 0x5ea290
call fcn.00546cf7
add esp, 4
mov byte [ebp - 4], bl
mov dword [ebp - 0x6c], 0x6796dc
mov ecx, 0x6796dc
mov eax, dword [0x6796dc]
mov edx, dword [eax + 4]
call edx
mov byte [ebp - 4], 0x10
mov ecx, dword [0x679724]
test ecx, ecx
je 0x503291
cmp dword [esi + 0x14], 8
jb 0x503276
mov eax, dword [esi]
jmp 0x503278
mov eax, esi
mov edx, dword [ecx]
push 0x1a7
push str.RegistryHandler::GetValue
push str.RegistryHandler.cpp
push eax
push 6
mov eax, dword [edx + 8]
call eax
mov byte [ebp - 4], bl
mov edx, dword [0x6796dc]
mov ecx, 0x6796dc
mov eax, dword [edx + 8]
call eax
mov byte [ebp - 4], 0xd
cmp dword [ebp - 0x40], 8
jb 0x5032bb
mov ecx, dword [ebp - 0x54]
push ecx
call dword [sym.imp.MSVCR100.dll_void___cdecl_operator_delete_void__]
add esp, 4
mov dword [ebp - 0x40], 7
mov dword [ebp - 0x44], 0
xor edx, edx
mov word [ebp - 0x54], dx
mov dword [ebp - 4], 0xffffffff
lea eax, [ebp - 0x38]
push eax
call fcn.00419280
xor ebx, ebx
mov dword [ebp - 0x70], ebx
mov byte [ebp - 0x55], 1
lea ecx, [ebp - 0x65]
push ecx
mov edi, dword [ebp - 0x5c]
push edi
mov esi, dword [ebp - 0x60]
mov edx, esi
mov ecx, dword [ebp - 0x78]
call fcn.005037b0
add esp, 8
test al, al
je 0x503414
cmp byte [ebp - 0x65], 0
jne 0x50341b
mov eax, dword [ebp - 0x64]
cmp eax, ebx
je 0x50331f
mov dword [eax], 0xcdcd01b3
mov dword [ebp - 0x5c], 2
lea edx, [ebp - 0x5c]
push edx
push ecx
call fcn.00418640
add esp, 4
mov edi, eax
call fcn.00418b90
test al, al
je 0x503414
mov dword [ebp - 0x24], 0xf
mov dword [ebp - 0x28], ebx
mov byte [ebp - 0x38], 0
mov dword [ebp - 4], 0x11
mov dword [ebp - 0x1c], ebx
mov dword [ebp - 4], 0x12
mov dword [ebp - 0x18], ebx
mov dword [ebp - 4], 0x13
lea edi, [ebp - 0x38]
call fcn.004193b0
mov edx, str.No_such_value._Name
mov esi, eax
call fcn.00418da0
mov ecx, dword [eax + 0x1c]
cmp ecx, ebx
jne 0x503396
push 0xffffffffffffffff
push ebx
mov ecx, dword [ebp - 0x60]
push ecx
mov ecx, eax
call fcn.00406070
jmp 0x5033a3
mov edx, dword [ebp - 0x60]
push edx
push ecx
call fcn.004049a0
add esp, 8
push 0x1ff
push 0
lea eax, [ebp - 0x54]
push eax
mov ecx, dword [ebp - 0x18]
call fcn.00403c90
mov ebx, eax
mov byte [ebp - 4], 0x14
push 0x1b3
push str.RegistryHandler::GetValue
push str.RegistryHandler.cpp
push 2
call fcn.00418640
mov ecx, eax
call fcn.00418c40
mov byte [ebp - 4], 0x13
cmp dword [ebp - 0x40], 8
jb 0x5033f0
mov ecx, dword [ebp - 0x54]
push ecx
call dword [sym.imp.MSVCR100.dll_void___cdecl_operator_delete_void__]
add esp, 4
mov dword [ebp - 0x40], 7
mov dword [ebp - 0x44], 0
xor edx, edx
mov word [ebp - 0x54], dx
mov dword [ebp - 4], 0xffffffff
lea eax, [ebp - 0x38]
push eax
call fcn.00419280
xor al, al
jmp 0x503781
push edi
lea edx, [ebp - 0x70]
mov ecx, dword [ebp - 0x78]
call fcn.00504ac0
add esp, 4
test al, al
je 0x503414
mov ecx, dword [ebp - 0x70]
cmp ecx, ebx
jne 0x5034e1
mov eax, dword [ebp - 0x64]
cmp eax, ebx
je 0x503446
mov dword [eax], 0xcdcd01bd
mov dword [ebp - 0x5c], 2
lea ecx, [ebp - 0x5c]
push ecx
push ecx
call fcn.00418640
add esp, 4
mov edi, eax
call fcn.00418b90
test al, al
je 0x5034da
lea edx, [ebp - 0x38]
push edx
call fcn.00419220
mov dword [ebp - 4], 0x15
mov edi, edx
call fcn.004193b0
mov edx, str.No_such_path
mov esi, eax
call fcn.00418da0
push 0x1ff
push 0
lea eax, [ebp - 0x54]
push eax
mov ecx, dword [ebp - 0x18]
call fcn.00403c90
mov ebx, eax
mov byte [ebp - 4], 0x16
push 0x1bd
push str.RegistryHandler::GetValue
push str.RegistryHandler.cpp
push 2
call fcn.00418640
mov ecx, eax
call fcn.00418c40
mov byte [ebp - 4], 0x15
lea ecx, [ebp - 0x54]
call fcn.004068c0
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x38]
push ecx
call fcn.00419280
xor al, al
jmp 0x503781
cmp dword [esi + 0x14], 8
jb 0x5034eb
mov eax, dword [esi]
jmp 0x5034ed
mov eax, esi
mov esi, dword [ebp - 0x74]
add esi, 0x20
push esi
push ebx
push ebx
push ebx
push eax
push ecx
mov edi, dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
call edi
cmp eax, 0xea
je 0x503510
cmp eax, ebx
jne 0x503628
mov edx, dword [esi]
add edx, 5
push edx
push 1
call dword [sym.imp.MSVCR100.dll_calloc]
add esp, 8
mov ecx, dword [ebp - 0x74]
mov dword [ecx + 0x24], eax
cmp eax, ebx
je 0x503624
mov ecx, dword [ebp - 0x60]
cmp dword [ecx + 0x14], 8
jb 0x50353a
mov ecx, dword [ecx]
push esi
push eax
mov edx, dword [ebp - 0x74]
add edx, 0x1c
push edx
push ebx
push ecx
mov eax, dword [ebp - 0x70]
push eax
call edi
mov esi, eax
cmp esi, ebx
je 0x503628
mov eax, dword [ebp - 0x64]
cmp eax, ebx
je 0x503562
mov dword [eax], 0xcdcd01cf
mov dword [ebp - 0x5c], 2
lea ecx, [ebp - 0x5c]
push ecx
push ecx
call fcn.00418640
add esp, 4
mov edi, eax
call fcn.00418b90
test al, al
je 0x503624
lea edx, [ebp - 0x38]
push edx
call fcn.00419220
mov dword [ebp - 4], 0x17
push esi
push ecx
mov edi, edx
call fcn.004193b0
mov edx, str.RegQueryValueExW_failed._Name
mov esi, eax
call fcn.00418da0
mov ecx, dword [ebp - 0x60]
mov esi, eax
call fcn.00418d70
mov edx, str.__Error_Code_
mov esi, eax
call fcn.00418da0
add esp, 4
mov esi, eax
call fcn.00419070
push 0x1ff
push 0
lea eax, [ebp - 0x54]
push eax
mov ecx, edi
push ecx
call fcn.00419470
mov ecx, eax
call fcn.00403c90
mov ebx, eax
mov byte [ebp - 4], 0x18
push 0x1cf
push str.RegistryHandler::GetValue
push str.RegistryHandler.cpp
push 2
call fcn.00418640
mov ecx, eax
call fcn.00418c40
mov byte [ebp - 4], 0x17
lea ecx, [ebp - 0x54]
call fcn.004068c0
mov dword [ebp - 4], 0xffffffff
mov edx, edi
push edx
call fcn.00419280
xor ebx, ebx
mov byte [ebp - 0x55], 0
mov eax, dword [ebp - 0x70]
push eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
test eax, eax
mov eax, dword [ebp - 0x64]
je 0x5036d6
cmp eax, ebx
je 0x503647
mov dword [eax], 0xcdcd01d8
mov dword [ebp - 0x5c], 2
lea ecx, [ebp - 0x5c]
push ecx
push ecx
call fcn.00418640
add esp, 4
mov edi, eax
call fcn.00418b90
test al, al
je 0x5034da
lea edx, [ebp - 0x38]
push edx
call fcn.00419220
mov dword [ebp - 4], 0x19
mov edi, edx
call fcn.004193b0
mov edx, str.RegCloseKey_failed._Name
mov esi, eax
call fcn.00418da0
mov ecx, dword [ebp - 0x60]
mov esi, eax
call fcn.00418d70
push 0x1ff
push 0
lea eax, [ebp - 0x54]
push eax
mov ecx, dword [ebp - 0x18]
call fcn.00403c90
mov ebx, eax
mov byte [ebp - 4], 0x1a
push 0x1d8
push str.RegistryHandler::GetValue
push str.RegistryHandler.cpp
push 2
call fcn.00418640
mov ecx, eax
call fcn.00418c40
mov byte [ebp - 4], 0x19
jmp 0x5034c2
cmp eax, ebx
je 0x5036e0
mov dword [eax], 0xcdcd01dd
mov dword [ebp - 0x5c], 6
lea edx, [ebp - 0x5c]
push edx
push ecx
call fcn.00418640
add esp, 4
mov edi, eax
call fcn.00418b90
test al, al
je 0x50377e
lea eax, [ebp - 0x38]
push eax
call fcn.00419220
mov dword [ebp - 4], 0x1b
lea edi, [ebp - 0x38]
call fcn.004193b0
mov edx, str.ExitFunction_Name
mov esi, eax
call fcn.00418da0
mov ecx, dword [ebp - 0x60]
mov esi, eax
call fcn.00418d70
push 0x1ff
push 0
lea ecx, [ebp - 0x54]
push ecx
mov ecx, dword [ebp - 0x18]
call fcn.00403c90
mov ebx, eax
mov byte [ebp - 4], 0x1c
push 0x1dd
push str.RegistryHandler::GetValue
push str.RegistryHandler.cpp
push 6
call fcn.00418640
mov ecx, eax
call fcn.00418c40
mov byte [ebp - 4], 0x1b
lea ecx, [ebp - 0x54]
call fcn.004068c0
mov dword [ebp - 4], 0xffffffff
mov edx, edi
push edx
call fcn.00419280
mov al, byte [ebp - 0x55]
lea esp, [ebp - 0x88]
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 0x14]
xor ecx, ebp
call fcn.00546bdc
mov esp, ebp
pop ebp
ret