Function at 0x100051f0
Capabilities:
Query or enumerate registry value

Disassembly:
push 0xffffffffffffffff
push 0x1000c301
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x258
push ebx
push ebp
mov ebp, dword [esp + 0x274]
push esi
push edi
mov edi, ecx
mov ecx, dword [esp + 0x278]
lea eax, [esp + 0x30]
push eax
mov esi, 1
push ebp
push ecx
mov dword [esp + 0x44], esi
call dword [0x1000d014]
xor ebx, ebx
cmp eax, ebx
jne 0x10005572
lea edx, [esp + 0x18]
lea eax, [esp + 0x164]
push edx
lea ecx, [esp + 0x30]
push eax
push ecx
mov ecx, dword [esp + 0x3c]
lea edx, [esp + 0x20]
push ebx
lea eax, [esp + 0x70]
push edx
mov dword [esp + 0x40], esi
push eax
mov esi, 0x104
push ebx
push ecx
mov dword [esp + 0x54], ebx
mov dword [esp + 0x34], esi
mov dword [esp + 0x38], esi
call dword [0x1000d010]
test eax, eax
jne 0x10005561
cmp byte [esp + 0x60], bl
je 0x10005499
cmp dword [esp + 0x2c], 1
jne 0x10005499
cmp dword [esp + 0x14], ebx
jne 0x100052aa
cmp dword [esp + 0x18], ebx
je 0x10005499
push 4
lea edx, [esp + 0x168]
push str.rem
push edx
call dword [0x1000d16c]
add esp, 0xc
test eax, eax
je 0x10005499
mov eax, dword [0x1000f07c]
mov dword [esp + 0x10], eax
lea ecx, [esp + 0x10]
lea edx, [esp + 0x164]
push ecx
push edx
mov ecx, edi
mov dword [esp + 0x278], ebx
call fcn.10005bb0
test eax, eax
je 0x1000545f
mov eax, dword [0x1000f07c]
mov dword [esp + 0x20], eax
mov dword [esp + 0x24], eax
mov eax, dword [esp + 0x278]
cmp ebp, ebx
mov byte [esp + 0x270], 1
mov dword [esp + 0x28], 2
mov dword [esp + 0x1c], eax
jne 0x10005326
xor esi, esi
jmp 0x1000532f
push ebp
call dword [sym.imp.KERNEL32.dll_lstrlenA]
mov esi, eax
push esi
lea ecx, [esp + 0x24]
call fcn.10002ea0
test eax, eax
je 0x1000535e
mov edx, dword [esp + 0x20]
push esi
lea ecx, [esi + 1]
push ebp
push ecx
push edx
call fcn.10002720
mov eax, dword [esp + 0x30]
add esp, 0x10
mov dword [eax - 8], esi
mov ecx, dword [esp + 0x20]
mov byte [esi + ecx], bl
lea edx, [esp + 0x60]
test edx, edx
jne 0x1000536a
xor esi, esi
jmp 0x10005377
lea eax, [esp + 0x60]
push eax
call dword [sym.imp.KERNEL32.dll_lstrlenA]
mov esi, eax
push esi
lea ecx, [esp + 0x28]
call fcn.10002ea0
test eax, eax
je 0x100053aa
mov eax, dword [esp + 0x24]
lea ecx, [esp + 0x60]
push esi
lea edx, [esi + 1]
push ecx
push edx
push eax
call fcn.10002720
mov ecx, dword [esp + 0x34]
add esp, 0x10
mov dword [ecx - 8], esi
mov edx, dword [esp + 0x24]
mov byte [esi + edx], bl
mov esi, dword [esp + 0x10]
lea ecx, [esp + 0x3c]
call fcn.100065e0
cmp esi, ebx
mov byte [esp + 0x270], 2
mov dword [esp + 0x3c], 1
jne 0x100053cf
xor eax, eax
jmp 0x100053d6
push esi
call dword [sym.imp.KERNEL32.dll_lstrlenA]
push esi
push eax
lea ecx, [esp + 0x4c]
call fcn.10002de0
mov ecx, dword [esp + 0x58]
lea eax, [esp + 0x1c]
push eax
push ecx
lea ecx, [esp + 0x58]
call fcn.10005de0
mov edx, dword [edi]
lea eax, [esp + 0x3c]
push eax
mov ecx, edi
call dword [edx + 4]
lea ecx, [esp + 0x3c]
mov esi, eax
mov byte [esp + 0x270], 1
call fcn.10003440
cmp esi, ebx
je 0x100054ef
mov eax, dword [esp + 0x24]
mov edx, dword [0x1000f030]
mov byte [esp + 0x270], bl
lea ecx, [eax - 0xc]
cmp ecx, edx
je 0x10005451
add eax, 0xfffffff4
push eax
call dword [sym.imp.KERNEL32.dll_InterlockedDecrement]
test eax, eax
jg 0x10005451
mov edx, dword [esp + 0x24]
lea eax, [edx - 0xc]
push eax
call fcn.1000bdea
add esp, 4
lea ecx, [esp + 0x20]
call fcn.10002d50
mov esi, 0x104
mov eax, dword [esp + 0x10]
mov edx, dword [0x1000f030]
mov dword [esp + 0x270], 0xffffffff
lea ecx, [eax - 0xc]
cmp ecx, edx
je 0x10005499
add eax, 0xfffffff4
push eax
call dword [sym.imp.KERNEL32.dll_InterlockedDecrement]
test eax, eax
jg 0x10005499
mov edx, dword [esp + 0x10]
add edx, 0xfffffff4
push edx
call fcn.1000bdea
add esp, 4
mov eax, dword [esp + 0x34]
lea ecx, [esp + 0x18]
push ecx
lea edx, [esp + 0x168]
lea ecx, [esp + 0x30]
push edx
push ecx
lea edx, [esp + 0x20]
push ebx
lea ecx, [esp + 0x70]
inc eax
push edx
mov edx, dword [esp + 0x44]
push ecx
push eax
push edx
mov dword [esp + 0x34], esi
mov dword [esp + 0x38], esi
mov dword [esp + 0x54], eax
call dword [0x1000d010]
test eax, eax
je 0x10005285
mov eax, dword [esp + 0x30]
push eax
call dword [0x1000d01c]
mov eax, dword [esp + 0x38]
jmp 0x10005574
mov eax, dword [esp + 0x24]
mov edx, dword [0x1000f030]
mov dword [esp + 0x38], ebx
mov byte [esp + 0x270], bl
lea ecx, [eax - 0xc]
cmp ecx, edx
je 0x10005529
add eax, 0xfffffff4
push eax
call dword [sym.imp.KERNEL32.dll_InterlockedDecrement]
test eax, eax
jg 0x10005529
mov edx, dword [esp + 0x24]
add edx, 0xfffffff4
push edx
call fcn.1000bdea
add esp, 4
lea ecx, [esp + 0x20]
call fcn.10002d50
mov eax, dword [esp + 0x10]
mov edx, dword [0x1000f030]
lea ecx, [eax - 0xc]
cmp ecx, edx
je 0x10005561
add eax, 0xfffffff4
push eax
call dword [sym.imp.KERNEL32.dll_InterlockedDecrement]
test eax, eax
jg 0x10005561
mov edx, dword [esp + 0x10]
add edx, 0xfffffff4
push edx
call fcn.1000bdea
add esp, 4
mov eax, dword [esp + 0x30]
push eax
call dword [0x1000d01c]
mov eax, dword [esp + 0x38]
jmp 0x10005574
mov eax, esi
mov ecx, dword [esp + 0x268]
pop edi
pop esi
pop ebp
pop ebx
mov dword fs:[0], ecx
add esp, 0x264
ret 8