Function at 0x10007241
Capabilities:
Query or enumerate registry value
Resolve function by parsing pe exports

Disassembly:
push 0xffffffffffffffff
push 0x1000cf86
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x758
mov al, byte [esp + 2]
push ebx
push ebp
push esi
mov esi, ecx
push edi
push 0
lea ecx, [esp + 0x24]
mov dword [esp + 0x1c], esi
mov dword [esp + 0x38], 0
mov byte [esp + 0x24], al
call fcn.10001c00
lea ecx, [esp + 0x12]
lea edx, [esp + 0x13]
push ecx
push 0
push edx
lea ecx, [esp + 0x44]
mov dword [esp + 0x77c], 1
call fcn.10004340
mov edi, dword [esi + 0xc]
mov al, byte [esp + 0x13]
push 0
lea ecx, [esp + 0x4c]
mov byte [esp + 0x774], 2
mov dword [esp + 0x18], edi
mov bl, 1
mov byte [esp + 0x4c], al
call fcn.10001c00
mov ebp, dword [esi + 8]
mov byte [esp + 0x770], 3
cmp ebp, edi
je 0x100074ae
lea esi, [ebp + 0x18]
mov eax, dword [esi]
test eax, eax
jne 0x100072c5
mov eax, 0x1000e16c
mov edx, dword [ebp]
lea ecx, [esp + 0x1c]
push ecx
push 0x20019
push 0
push eax
push edx
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
test eax, eax
jne 0x1000744e
mov eax, dword [esi + 0x14]
test eax, eax
jne 0x100072f6
mov eax, dword [esi + 0x24]
test eax, eax
je 0x10007441
mov dword [esp + 0x30], 0x400
mov byte [esp + 0x368], 0
mov eax, dword [esi + 0x10]
test eax, eax
jne 0x10007312
mov eax, 0x1000e16c
lea ecx, [esp + 0x30]
lea edx, [esp + 0x368]
push ecx
push edx
push 0
push 0
push eax
mov eax, dword [esp + 0x30]
push eax
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
test eax, eax
jne 0x10007379
mov eax, dword [esi + 0x24]
test eax, eax
je 0x10007441
lea edi, [esp + 0x368]
or ecx, 0xffffffff
xor eax, eax
mov edx, dword [esi + 0x24]
repne scasb al, byte es:[edi]
not ecx
dec ecx
push ecx
lea ecx, [esp + 0x36c]
push ecx
push edx
push eax
lea ecx, [esi + 0x1c]
call fcn.10006790
test eax, eax
jne 0x1000737b
mov eax, dword [esp + 0x1c]
push eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
jmp 0x10007498
xor bl, bl
lea eax, [esi + 0x2c]
lea ecx, [esp + 0x58]
push eax
push ecx
lea ecx, [esp + 0x40]
call fcn.10004370
test bl, bl
je 0x100073ec
mov eax, dword [esi + 0x10]
mov edx, 0x1000e16c
test eax, eax
je 0x1000739f
mov edx, eax
mov eax, dword [esi]
mov ecx, 0x1000e16c
test eax, eax
je 0x100073ac
mov ecx, eax
mov eax, dword [esi - 0x10]
test eax, eax
jne 0x100073b8
mov eax, 0x1000e16c
push edx
push ecx
push eax
lea edx, [esp + 0x274]
push str.err_reg_s:_s:_s
push edx
call sub.MSVCRT.dll_sprintf
lea edi, [esp + 0x27c]
or ecx, 0xffffffff
xor eax, eax
add esp, 0x14
repne scasb al, byte es:[edi]
not ecx
dec ecx
lea eax, [esp + 0x268]
push ecx
push eax
jmp 0x10007436
mov eax, dword [esi]
mov ecx, 0x1000e16c
test eax, eax
je 0x100073f9
mov ecx, eax
mov eax, dword [esi - 0x10]
test eax, eax
jne 0x10007405
mov eax, 0x1000e16c
push ecx
push eax
lea ecx, [esp + 0x170]
push str.miss_reg_s:_s
push ecx
call sub.MSVCRT.dll_sprintf
lea edi, [esp + 0x178]
or ecx, 0xffffffff
xor eax, eax
add esp, 0x10
repne scasb al, byte es:[edi]
not ecx
dec ecx
lea edx, [esp + 0x168]
push ecx
push edx
lea ecx, [esp + 0x28]
call fcn.10002680
mov bl, 1
mov eax, dword [esp + 0x1c]
push eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
jmp 0x10007498
mov eax, dword [esi]
mov ecx, 0x1000e16c
test eax, eax
je 0x1000745b
mov ecx, eax
mov eax, dword [esi - 0x10]
test eax, eax
jne 0x10007467
mov eax, 0x1000e16c
push ecx
push eax
lea ecx, [esp + 0x70]
push str.miss_reg_s:_s
push ecx
call sub.MSVCRT.dll_sprintf
lea edi, [esp + 0x78]
or ecx, 0xffffffff
xor eax, eax
add esp, 0x10
repne scasb al, byte es:[edi]
not ecx
dec ecx
lea edx, [esp + 0x68]
push ecx
push edx
lea ecx, [esp + 0x28]
call fcn.10002680
mov eax, dword [esp + 0x14]
add ebp, 0x54
add esi, 0x54
cmp ebp, eax
jne 0x100072ba
mov esi, dword [esp + 0x18]
mov ebp, dword [esi + 0x18]
mov eax, dword [esi + 0x1c]
cmp ebp, eax
mov dword [esp + 0x14], ebp
je 0x10007632
lea ebx, [ebp + 0x28]
xor edi, edi
mov eax, dword [ebx - 0x10]
cmp eax, edi
jne 0x100074d1
mov eax, 0x1000e16c
mov edx, dword [ebp]
lea ecx, [esp + 0x1c]
push ecx
push 0x20019
push edi
push eax
push edx
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
test eax, eax
jne 0x1000761b
cmp dword [ebx + 4], edi
jne 0x100074f9
cmp dword [ebx + 0x14], edi
je 0x10007560
mov dword [esp + 0x30], 0x400
mov eax, dword [ebx]
cmp eax, edi
jne 0x1000750c
mov eax, 0x1000e16c
lea ecx, [esp + 0x30]
lea edx, [esp + 0x368]
push ecx
push edx
push edi
push edi
push eax
mov eax, dword [esp + 0x30]
push eax
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
test eax, eax
jne 0x1000760a
mov edx, dword [ebx + 0x14]
cmp edx, edi
je 0x10007560
lea edi, [esp + 0x368]
or ecx, 0xffffffff
repne scasb al, byte es:[edi]
not ecx
dec ecx
push ecx
lea ecx, [esp + 0x36c]
push ecx
push edx
push eax
lea ecx, [ebx + 0xc]
call fcn.10006790
test eax, eax
jne 0x1000760a
mov eax, dword [ebx]
mov edx, 0x1000e16c
test eax, eax
je 0x1000756d
mov edx, eax
mov eax, dword [ebx - 0x10]
mov ecx, 0x1000e16c
test eax, eax
je 0x1000757b
mov ecx, eax
mov eax, dword [ebx - 0x20]
test eax, eax
jne 0x10007587
mov eax, 0x1000e16c
push edx
push ecx
push eax
lea edx, [esp + 0x74]
push str.ban_reg_s:_s:_s
push edx
call sub.MSVCRT.dll_sprintf
lea edi, [esp + 0x7c]
or ecx, 0xffffffff
xor eax, eax
add esp, 0x14
repne scasb al, byte es:[edi]
mov eax, dword [0x1000e170]
mov edx, dword [esp + 0x28]
not ecx
dec ecx
sub eax, edx
mov esi, ecx
cmp eax, esi
ja 0x100075c0
call fcn.1000c22b
test esi, esi
jbe 0x1000760a
mov ecx, dword [esp + 0x28]
push 0
lea ebp, [ecx + esi]
lea ecx, [esp + 0x24]
push ebp
call fcn.10001c70
test al, al
je 0x10007606
mov edx, dword [esp + 0x24]
mov eax, dword [esp + 0x28]
mov ecx, esi
lea esi, [esp + 0x68]
lea edi, [eax + edx]
mov edx, ecx
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, edx
and ecx, 3
rep movsb byte es:[edi], byte [esi]
mov eax, dword [esp + 0x24]
mov dword [esp + 0x28], ebp
mov byte [eax + ebp], 0
mov ebp, dword [esp + 0x14]
mov ecx, dword [esp + 0x1c]
push ecx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov esi, dword [esp + 0x18]
xor edi, edi
mov eax, dword [esi + 0x1c]
add ebp, 0x54
add ebx, 0x54
cmp ebp, eax
mov dword [esp + 0x14], ebp
jne 0x100074c5
jmp 0x10007634
xor edi, edi
mov eax, dword [esp + 0x28]
cmp eax, edi
je 0x10007694
dec eax
lea edx, [esp + 0x58]
push eax
push edi
push edx
lea ecx, [esp + 0x2c]
call fcn.100024f0
mov ecx, dword [0x1000e170]
mov byte [esp + 0x770], 4
push ecx
push edi
push eax
lea ecx, [esp + 0x2c]
call fcn.100018e0
mov eax, dword [esp + 0x5c]
mov byte [esp + 0x770], 3
cmp eax, edi
je 0x10007694
lea ecx, [eax - 1]
mov al, byte [eax - 1]
test al, al
je 0x1000768b
cmp al, 0xff
je 0x1000768b
dec al
mov byte [ecx], al
jmp 0x10007694
push ecx
call fcn.1000c220
add esp, 4
mov esi, dword [esp + 0x778]
mov dl, byte [esp + 0x20]
lea ecx, [esp + 0x20]
mov byte [esi], dl
mov dword [esi + 4], edi
mov dword [esi + 8], edi
mov dword [esi + 0xc], edi
mov eax, dword [0x1000e170]
push eax
push edi
push ecx
mov ecx, esi
call fcn.100018e0
mov dword [esp + 0x34], 1
mov eax, dword [esp + 0x4c]
cmp eax, edi
je 0x100076ea
lea ecx, [eax - 1]
mov al, byte [eax - 1]
test al, al
je 0x100076e1
cmp al, 0xff
je 0x100076e1
dec al
mov byte [ecx], al
jmp 0x100076ea
push ecx
call fcn.1000c220
add esp, 4
mov eax, dword [esp + 0x3c]
mov dword [esp + 0x4c], edi
mov dword [esp + 0x50], edi
mov dword [esp + 0x54], edi
mov ecx, dword [eax]
push eax
lea edx, [esp + 0x1c]
push ecx
push edx
lea ecx, [esp + 0x44]
mov byte [esp + 0x77c], 1
call fcn.100044e0
mov eax, dword [esp + 0x3c]
push eax
call fcn.1000c220
add esp, 4
lea ecx, [esp + 0x18]
mov dword [esp + 0x3c], edi
mov dword [esp + 0x44], edi
call fcn.1000c582
mov eax, dword [0x10013860]
dec eax
mov dword [0x10013860], eax
jne 0x10007754
mov ecx, dword [0x1001385c]
push ecx
call fcn.1000c220
add esp, 4
mov dword [0x1001385c], edi
lea ecx, [esp + 0x18]
call fcn.1000c61e
mov ecx, dword [esp + 0x24]
cmp ecx, edi
je 0x10007781
mov al, byte [ecx - 1]
test al, al
je 0x10007777
cmp al, 0xff
je 0x10007777
dec al
mov byte [ecx - 1], al
jmp 0x10007781
dec ecx
push ecx
call fcn.1000c220
add esp, 4
mov ecx, dword [esp + 0x768]
mov eax, esi
pop edi
pop esi
pop ebp
pop ebx
mov dword fs:[0], ecx
add esp, 0x764
ret 4