Function at 0x531790
Capabilities:
Query or enumerate registry key

Disassembly:
push 0xffffffffffffffff
push 0x5d45ce
mov eax, dword fs:[0]
push eax
sub esp, 0x1d8
mov eax, dword [0x65d4e4]
xor eax, esp
mov dword [esp + 0x1d4], eax
push ebx
push ebp
push esi
push edi
mov eax, dword [0x65d4e4]
xor eax, esp
push eax
lea eax, [esp + 0x1ec]
mov dword fs:[0], eax
mov edi, ecx
mov ebp, dword [esp + 0x1fc]
mov eax, dword [esp + 0x200]
mov esi, dword [esp + 0x204]
xor ebx, ebx
mov ecx, ebp
mov dword [esp + 0x1f4], ebx
mov dword [esp + 0x44], ebp
mov dword [esp + 0x20], eax
mov dword [esp + 0x24], ebx
call fcn.00409a00
mov dword [ebp + 4], eax
mov dword [ebp + 8], ebx
push 0x103
lea ecx, [esp + 0xe9]
push ebx
push ecx
mov dword [esp + 0x200], ebx
mov dword [esp + 0x30], 1
mov dword [esp + 0x20], ebx
mov dword [esp + 0x28], ebx
mov dword [esp + 0x24], ebx
mov byte [esp + 0xf0], bl
call fcn.005b5540
add esp, 0xc
push ebx
push 0x62b600
lea ecx, [esp + 0xd0]
mov dword [esp + 0xe8], 0xf
mov dword [esp + 0xe4], ebx
mov byte [esp + 0xd4], bl
call fcn.00409790
cmp esi, ebx
mov dword [esp + 0x1f4], 1
je 0x531899
mov eax, esi
lea edx, [eax + 1]
jmp 0x531880
mov cl, byte [eax]
add eax, 1
cmp cl, bl
jne 0x531880
sub eax, edx
push eax
push esi
lea ecx, [esp + 0xd0]
call fcn.00409790
cmp dword [edi + 0x24], ebx
mov esi, 0x20019
jne 0x5318b1
call fcn.004ff5a0
test eax, eax
je 0x5318b1
mov esi, 0x20119
mov eax, dword [esp + 0xcc]
mov edi, 0x10
cmp dword [esp + 0xe0], edi
jae 0x5318cd
lea eax, [esp + 0xcc]
lea edx, [esp + 0x14]
push edx
push esi
push ebx
push eax
mov eax, dword [esp + 0x30]
push eax
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
test eax, eax
je 0x5319cb
push 1
push 2
lea ecx, [esp + 0x50]
call fcn.0040b040
push 0x5f8cf4
lea ecx, [esp + 0xcc]
push ecx
lea edx, [esp + 0x50]
push 0x5f8ce8
push edx
mov byte [esp + 0x204], 2
call fcn.00409b60
add esp, 8
push eax
call fcn.00409240
add esp, 8
push eax
call fcn.00409b60
add esp, 8
lea eax, [esp + 0x28]
push eax
lea ecx, [esp + 0x4c]
call fcn.004094f0
cmp dword [eax + 0x18], edi
mov byte [esp + 0x1f4], 3
jb 0x53194e
mov eax, dword [eax + 4]
jmp 0x531951
add eax, 4
push eax
push str.BaseLib::CRegeditOperate::EnumRegSubKey
push 0x32
push str..commonRegeditOperate.cpp
push 0xf0000000
call fcn.00409860
mov ecx, eax
call fcn.004fb930
cmp dword [esp + 0x40], edi
jb 0x531982
mov ecx, dword [esp + 0x2c]
push ecx
call fcn.00595eb8
add esp, 4
lea ecx, [esp + 0x94]
mov byte [esp + 0x1f4], 1
call fcn.00409e00
lea edx, [esp + 0x94]
push edx
mov dword [esp + 0x98], vtable.std::ios_base.0
call fcn.005cdcde
add esp, 4
cmp dword [esp + 0xe0], edi
jb 0x531b07
mov eax, dword [esp + 0xcc]
push eax
jmp 0x531aff
push 0x100
lea ecx, [esp + 0xe8]
push ebx
push ecx
call fcn.005b5540
mov ecx, dword [esp + 0x20]
add esp, 0xc
push ebx
push ebx
push ebx
push ebx
lea edx, [esp + 0x28]
push edx
lea eax, [esp + 0xf8]
push eax
push ebx
push ecx
mov dword [esp + 0x38], 0x100
call dword [sym.imp.ADVAPI32.dll_RegEnumKeyExA]
test eax, eax
jne 0x531ae3
lea eax, [esp + 0xe4]
mov dword [esp + 0x40], 0xf
mov dword [esp + 0x3c], ebx
mov byte [esp + 0x2c], bl
lea edx, [eax + 1]
mov cl, byte [eax]
add eax, 1
cmp cl, bl
jne 0x531a28
sub eax, edx
push eax
lea edx, [esp + 0xe8]
push edx
lea ecx, [esp + 0x30]
call fcn.00409790
mov esi, dword [ebp + 4]
mov ecx, dword [esi + 4]
lea eax, [esp + 0x28]
push eax
push ecx
push esi
mov ecx, ebp
mov byte [esp + 0x200], 4
call fcn.0043d1a0
push 1
mov ecx, ebp
mov edi, eax
call fcn.0043d2d0
mov dword [esi + 4], edi
mov eax, dword [edi + 4]
mov dword [eax], edi
cmp dword [esp + 0x40], 0x10
mov byte [esp + 0x1f4], 1
jb 0x531a90
mov edx, dword [esp + 0x2c]
push edx
call fcn.00595eb8
add esp, 4
mov esi, dword [esp + 0x1c]
push 0x100
lea eax, [esp + 0xe8]
push ebx
add esi, 1
push eax
mov dword [esp + 0x28], esi
call fcn.005b5540
mov eax, dword [esp + 0x20]
add esp, 0xc
push ebx
push ebx
push ebx
push ebx
lea ecx, [esp + 0x28]
push ecx
lea edx, [esp + 0xf8]
push edx
push esi
push eax
mov dword [esp + 0x38], 0x100
call dword [sym.imp.ADVAPI32.dll_RegEnumKeyExA]
test eax, eax
je 0x531a0e
mov edi, 0x10
mov ecx, dword [esp + 0x14]
push ecx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
cmp dword [esp + 0xe0], edi
jb 0x531b07
mov edx, dword [esp + 0xcc]
push edx
call fcn.00595eb8
add esp, 4
mov eax, ebp
mov ecx, dword [esp + 0x1ec]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebp
pop ebx
mov ecx, dword [esp + 0x1d4]
xor ecx, esp
call fcn.005b1988
add esp, 0x1e4
ret 0xc