Function at 0x10050500
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x1009664e
mov eax, dword fs:[0]
push eax
sub esp, 0x238
mov eax, dword [0x100cb9b0]
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 esi, ecx
mov eax, dword [ebp + 0xc]
mov ebx, dword [ebp + 8]
mov dword [ebp - 0x234], eax
mov eax, dword [ebp + 0x10]
mov dword [ebp - 0x238], eax
test ebx, ebx
jns 0x10050550
xor eax, eax
jmp 0x100507df
lea edi, [esi + 0x34]
mov dword [ebp - method._BaseModule::CAutoLocker.virtual_0], vtable._BaseModule::CAutoLocker.0
mov dword [ebp - 0x240], edi
test edi, edi
je 0x1005056c
mov eax, dword [edi]
push edi
call dword [eax]
cmp dword [esi + 0x24], 0
mov dword [ebp - 4], 0
jge 0x100507c9
push 4
call fcn.1004b336
add esp, 4
mov dword [ebp - 0x23c], eax
mov byte [ebp - 4], 1
test eax, eax
je 0x1005059e
mov ecx, eax
call fcn.1003d810
jmp 0x100505a0
xor eax, eax
push ebx
mov ecx, eax
mov byte [ebp - 4], 0
mov dword [esi + 0x58], eax
call fcn.100418d0
test al, al
jne 0x100505de
mov ecx, dword [esi + 0x58]
call fcn.10043280
mov ebx, dword [esi + 0x58]
test ebx, ebx
je 0x100505d4
mov ecx, ebx
call fcn.1003da30
push 4
push ebx
call fcn.1004b366
add esp, 8
mov ebx, dword [ebp + 8]
mov dword [esi + 0x58], 0
mov eax, dword [ebp - 0x234]
mov dword [esi + 0x24], ebx
test eax, eax
je 0x100505f4
push eax
lea ecx, [esi + 0x30]
call fcn.1004fed0
mov eax, dword [ebp - 0x238]
test eax, eax
je 0x10050609
push eax
lea ecx, [esi + 0x2c]
call fcn.1004fed0
jmp 0x10050642
mov ecx, dword [esi + 0x58]
test ecx, ecx
je 0x10050642
push 0
lea eax, [ebp - 0x230]
push eax
call fcn.1003ec40
cmp dword [eax + 0x14], 8
mov byte [ebp - 4], 2
jb 0x1005062a
mov eax, dword [eax]
push eax
lea ecx, [esi + 0x2c]
call fcn.1004fed0
lea ecx, [ebp - 0x230]
mov byte [ebp - 4], 0
call fcn.10008c80
mov ecx, esi
call fcn.10050950
mov dword [ebp - 0x224], 0
mov dword [ebp - 0x220], 0
mov dword [ebp - 0x21c], 0
push 0x2021f
push 0x100a3158
push 0x80000002
lea ecx, [ebp - 0x224]
call fcn.10050d20
test eax, eax
je 0x100506aa
call dword [sym.imp.KERNEL32.dll_GetTickCount]
push eax
call fcn.1007d18a
add esp, 4
call fcn.1007d169
cdq
mov ecx, 0x64
idiv ecx
inc edx
mov dword [esi + 0x1c], edx
jmp 0x100507b8
push 0x208
lea eax, [ebp - 0x218]
push 0
push eax
call fcn.100686c0
add esp, 0xc
mov dword [ebp - 0x234], 0x208
lea eax, [ebp - 0x234]
push eax
lea eax, [ebp - 0x218]
push eax
lea eax, [ebp - 0x238]
push eax
push 0
push str.stat_rand
push dword [ebp - 0x224]
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
test eax, eax
jne 0x1005073e
mov eax, dword [ebp - 0x238]
cmp eax, 1
je 0x10050706
cmp eax, 2
jne 0x1005073e
mov eax, dword [ebp - 0x234]
test eax, eax
je 0x10050723
test al, 1
jne 0x1005073e
shr eax, 1
cmp word [ebp + eax*2 - 0x21a], 0
je 0x1005072c
jmp 0x1005073e
xor eax, eax
mov word [ebp - 0x218], ax
lea eax, [ebp - 0x218]
push eax
call fcn.1006cf06
add esp, 4
mov dword [esi + 0x1c], eax
cmp dword [esi + 0x1c], 0
jne 0x100507ad
call dword [sym.imp.KERNEL32.dll_GetTickCount]
push eax
call fcn.1007d18a
add esp, 4
call fcn.1007d169
cdq
mov ecx, 0x64
idiv ecx
lea ecx, [ebp - 0x234]
inc edx
mov dword [esi + 0x1c], edx
call fcn.1003b7f0
push dword [esi + 0x1c]
lea eax, [ebp - 0x234]
mov byte [ebp - 4], 4
push 0x100ab924
push eax
call fcn.1000a790
add esp, 0xc
lea ecx, [ebp - 0x224]
push 1
push dword [ebp - 0x234]
push str.stat_rand
call fcn.10051540
lea ecx, [ebp - 0x234]
call fcn.10008bd0
lea ecx, [ebp - 0x224]
call fcn.100500f0
mov eax, dword [ebp - 0x224]
test eax, eax
je 0x100507c9
push eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov dword [ebp - 4], 5
test edi, edi
je 0x100507da
mov eax, dword [edi]
push edi
call dword [eax + 4]
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.1004b6e5
mov esp, ebp
pop ebp
ret 0xc