Function at 0x451f50
Capabilities:
Query or enumerate registry value
Read .ini file

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x58dd70
mov eax, dword fs:[0]
push eax
mov eax, 0x2028
call fcn.00552760
mov eax, dword [0x5f0a00]
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
cmp dword [ecx + 4], 0
mov edx, dword [ebp + 0x14]
mov esi, dword [ebp + 0xc]
mov ebx, dword [ebp + 0x10]
mov edi, dword [ebp + 8]
mov dword [ebp - 0x2030], edx
mov dword [ebp - 0x2024], esi
mov dword [ebp - 0x202c], ebx
je 0x452236
mov dword [ebp - 0x201c], 0
call fcn.0044c370
mov esi, eax
test esi, esi
je 0x452225
lea eax, [ebp - 0x2034]
push eax
lea eax, [ebp - 0x201c]
push eax
push 0
push 0x2001f
push 0
push 0
push 0
push edi
push esi
call dword [sym.imp.ADVAPI32.dll_RegCreateKeyExW]
push esi
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, dword [ebp - 0x201c]
mov dword [ebp - 0x2028], eax
test eax, eax
je 0x452225
mov edi, dword [0x5f0130]
mov dword [ebp - 0x2014], edi
lea ecx, [ebp - 0x2018]
mov dword [ebp - 4], 0
push ecx
push 0
lea ecx, [ebp - 0x2020]
mov dword [ebp - 0x2020], 0
push ecx
push 0
push dword [ebp - 0x2024]
mov dword [ebp - 0x2018], 0
push eax
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
mov esi, eax
or ebx, 0xffffffff
test esi, esi
jne 0x4521cd
mov esi, dword [ebp - 0x2018]
lea ebx, [edi - 0xc]
mov ecx, dword [ebx]
shr esi, 1
cmp ecx, 1
jg 0x45206b
cmp esi, dword [ebx + 8]
jle 0x4520a1
cmp esi, dword [ebx + 4]
mov eax, dword [0x5f012c]
cmovl esi, dword [ebx + 4]
cmp ecx, 1
jg 0x45212a
cmp ebx, eax
je 0x45212a
test esi, esi
jne 0x4520e6
test eax, eax
jne 0x45211c
mov eax, dword [0x5f0130]
mov dword [ebp - 0x2014], eax
xor edi, edi
lea eax, [ebp - 0x2018]
push eax
push edi
lea eax, [ebp - 0x2020]
push eax
push 0
push dword [ebp - 0x2024]
push dword [ebp - 0x2028]
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
lea ecx, [ebp - 0x2014]
mov esi, eax
call fcn.0040e9e0
mov edi, dword [ebp - 0x2014]
test edi, edi
jne 0x4521ad
xor ecx, ecx
jmp 0x4521c1
lea eax, [esi*2 + 0xe]
push eax
test ebx, ebx
jne 0x4520fc
call fcn.00440020
add esp, 4
jmp 0x452105
push ebx
call fcn.00440030
add esp, 8
test eax, eax
je 0x452094
xor ecx, ecx
mov dword [eax], 1
mov dword [eax + 4], esi
mov dword [eax + 8], esi
mov word [eax + esi*2 + 0xc], cx
lea edi, [eax + 0xc]
mov dword [ebp - 0x2014], edi
jmp 0x4520a1
test esi, esi
jne 0x452138
test eax, eax
je 0x45209f
jmp 0x452163
lea eax, [esi*2 + 0xe]
push eax
call fcn.00440020
add esp, 4
test eax, eax
je 0x45209f
xor ecx, ecx
mov dword [eax], 1
mov dword [eax + 4], esi
mov dword [eax + 8], esi
mov word [eax + esi*2 + 0xc], cx
cmp dword [ebx + 4], esi
lea ecx, [eax + 0xc]
mov dword [ebp - 0x2014], ecx
cmovl esi, dword [ebx + 4]
lea eax, [esi*2 + 2]
push eax
push edi
push ecx
call fcn.005577f0
add esp, 0xc
cmp ebx, dword [0x5f012c]
je 0x4521a2
or eax, 0xffffffff
lock xadd dword [ebx], eax
dec eax
test eax, eax
jg 0x4521a2
push ebx
call fcn.00408c50
add esp, 4
mov edi, dword [ebp - 0x2014]
jmp 0x4520a1
mov ecx, edi
lea edx, [ecx + 2]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x4521b2
sub ecx, edx
sar ecx, 1
xor eax, eax
mov dword [edi - 8], ecx
mov word [edi + ecx*2], ax
or ebx, 0xffffffff
push dword [ebp - 0x2028]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov ecx, dword [ebp - 0x202c]
test esi, esi
jne 0x4521f0
push edi
call fcn.0040c0e0
mov esi, 1
jmp 0x4521fd
push dword [ebp - 0x2030]
call fcn.0040c0e0
xor esi, esi
add edi, 0xfffffff4
mov dword [ebp - 4], 1
cmp edi, dword [0x5f012c]
je 0x452221
lock xadd dword [edi], ebx
dec ebx
test ebx, ebx
jg 0x452221
push edi
call fcn.00408c50
add esp, 4
mov eax, esi
jmp 0x45226b
push dword [ebp - 0x2030]
mov ecx, ebx
call fcn.0040c0e0
xor eax, eax
jmp 0x45226b
push dword [ecx + 8]
lea eax, [ebp - 0x2010]
test edx, edx
push 0x1000
push eax
mov eax, 0x59a304
cmovne eax, edx
push eax
push esi
push edi
call dword [sym.imp.KERNEL32.dll_GetPrivateProfileStringW]
lea eax, [ebp - 0x2010]
mov ecx, ebx
push eax
call fcn.0040c0e0
mov eax, 1
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.00551e44
mov esp, ebp
pop ebp
ret 0x10