Function at 0x5238bab5
Capabilities:
Query or enumerate registry value

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x20
mov eax, dword [0x523ac650]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 0x28]
push ebx
push esi
mov esi, ecx
mov dword [esi], eax
mov eax, dword [ebp + 8]
mov dword [esi + 0xc], eax
mov eax, dword [ebp + 0x14]
push edi
mov dword [esi + 0x6c], eax
mov eax, dword [ebp + 0x18]
lea ecx, [ebp - 8]
push ecx
push 4
mov dword [esi + 0x70], eax
mov eax, dword [ebp + 0x1c]
pop ecx
mov dword [esi + 0x74], eax
mul ecx
push edx
push eax
call fcn.52383843
test eax, eax
jge 0x5238bb1a
push dword [0x523ac66c]
push 1
push 0x52381c88
call fcn.523a88e9
push 0x216
call dword [sym.imp.msvcrt.dll_exit]
xor edi, edi
inc edi
push edi
push edi
push dword [ebp - 8]
call fcn.52394459
mov dword [esi + 0xcac], eax
mov eax, dword [ebp + 0x20]
mov dword [esi + 0x78], eax
inc dword [eax + 4]
mov eax, dword [ebp + 0x24]
mov dword [esi + 0x7c], eax
inc dword [eax + 4]
lea eax, [esi + 0x80]
push 0x400
mov dword [esi + 0x888], eax
xor ebx, ebx
lea eax, [esi + 0x88c]
push ebx
push eax
call sub.msvcrt.dll_memset
add esp, 0xc
push dword [esi + 0x7c]
call fcn.52387b27
cmp eax, ebx
jne 0x5238bb83
push dword [0x523ac668]
push edi
push 0x52381c38
call fcn.523a88e9
push 0xe
jmp 0x5238bb14
mov dword [esi + 0xc9c], eax
inc dword [eax + 4]
push 0xd84
call fcn.5239450f
pop ecx
cmp eax, ebx
je 0x5238bba5
push ebx
mov ecx, eax
call fcn.5239f997
jmp 0x5238bba7
xor eax, eax
mov dword [esi + 0xc98], eax
inc dword [eax + 4]
mov eax, 0x100
call fcn.523a8570
lea eax, [ebp - 0x10]
push eax
push 0x20019
push ebx
push 0x52381a78
push 0x80000001
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
test eax, eax
je 0x5238bc19
lea eax, [ebp - 8]
push eax
lea eax, [ebp - 0x10]
push eax
push ebx
push 0xf003f
push ebx
push 0x52381a5c
push ebx
push 0x52381a78
push 0x80000001
call dword [sym.imp.ADVAPI32.dll_RegCreateKeyExA]
test eax, eax
jne 0x5238bcf4
cmp dword [ebp - 8], 2
je 0x5238bc19
push dword [ebp - 0x10]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
jmp 0x5238bcf4
mov edi, dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
lea eax, [ebp - 0xc]
push eax
lea eax, [esi + 0xcb8]
push eax
lea eax, [ebp - 8]
push eax
push ebx
push 0x52381a50
push dword [ebp - 0x10]
mov dword [ebp - 0xc], 4
call edi
lea eax, [ebp - 0xc]
push eax
lea eax, [esi + 0xcbc]
push eax
lea eax, [ebp - 8]
push eax
push ebx
push 0x52381a44
push dword [ebp - 0x10]
mov dword [ebp - 0xc], 4
call edi
lea eax, [ebp - 0xc]
push eax
lea eax, [esi + 0x30]
push eax
lea eax, [ebp - 8]
push eax
push ebx
push 0x52381a34
push dword [ebp - 0x10]
mov dword [ebp - 0xc], 4
call edi
lea eax, [ebp - 0xc]
push eax
lea eax, [esi + 0x58]
push eax
lea eax, [ebp - 8]
push eax
push ebx
push 0x52381a24
push dword [ebp - 0x10]
mov dword [ebp - 0xc], 4
call edi
lea eax, [ebp - 0xc]
push eax
lea eax, [esi + 0x4c]
push eax
lea eax, [ebp - 8]
push eax
push ebx
push 0x52381a0c
push dword [ebp - 0x10]
mov dword [ebp - 0xc], 4
call edi
lea eax, [ebp - 0xc]
push eax
lea eax, [esi + 0x34]
push eax
lea eax, [ebp - 8]
push eax
push ebx
push 0x523819fc
push dword [ebp - 0x10]
mov dword [ebp - 0xc], 4
call edi
mov eax, dword [esi + 0x78]
mov eax, dword [eax + 0xdac]
push dword [ebp - 0x10]
and eax, 4
mov dword [esi + 0x5c], eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
xor edi, edi
inc edi
cmp dword [esi + 0x30], edi
jne 0x5238bd08
mov eax, dword [esi + 0x78]
test byte [eax + 0xdac], 2
jne 0x5238bd08
mov dword [esi + 0x30], ebx
push ebx
push ebx
push ebx
push ebx
push dword [esi + 0x34]
push dword [esi + 0x5c]
push dword [esi + 0x30]
push dword [esi + 0x7c]
push dword [esi + 0x78]
call fcn.5238d9b9
push esi
push 0x5238b603
push dword [ebp + 0x10]
mov dword [esi + 0x88c], eax
push 0x8ac
push dword [esi + 0xc]
mov dword [esi + 0xc8c], edi
mov dword [esi + 0xc90], edi
call dword [sym.imp.USER32.dll_CreateDialogParamA]
lea ecx, [ebp - 0x20]
push ecx
push eax
mov dword [esi + 4], eax
call dword [sym.imp.USER32.dll_GetWindowRect]
mov eax, dword [ebp - 0x14]
sub eax, dword [ebp - 0x1c]
push edi
push eax
mov eax, dword [ebp - 0x18]
sub eax, dword [ebp - 0x20]
push eax
push ebx
push ebx
push dword [esi + 4]
call dword [sym.imp.USER32.dll_MoveWindow]
push 5
push 0x177b
push dword [esi + 4]
call dword [sym.imp.USER32.dll_GetDlgItem]
push eax
call dword [sym.imp.USER32.dll_GetWindow]
push esi
push 0x52381c28
push eax
mov dword [ebp - 8], eax
call dword [sym.imp.USER32.dll_SetPropA]
mov edi, dword [sym.imp.USER32.dll_SetWindowLongA]
push 0x5238b981
push 0xfffffffffffffffc
push dword [ebp - 8]
call edi
mov dword [0x523ac68c], eax
cmp dword [esi], ebx
je 0x5238bdcb
push 0xffffffffffffffec
push dword [ebp - 8]
call dword [sym.imp.USER32.dll_GetWindowLongA]
or eax, 0x3000
push eax
push 0xffffffffffffffec
push dword [ebp - 8]
call edi
mov dword [esi + 0xcb0], ebx
lea esp, [ebp - 0x2c]
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.523a8462
leave
ret 0x24