Function at 0x104d3ab
Capabilities:
Query or enumerate registry value

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x334
mov eax, dword [0x1072c48]
xor eax, ebp
mov dword [ebp - 4], eax
xor ecx, ecx
push ebx
mov ebx, dword [ebp + 0xc]
xor eax, eax
inc eax
push edi
mov edi, dword [ebp + 8]
mov dword [ebp - 0x314], ebx
mov dword [ebp - 0x31c], ecx
mov dword [ebp - 0x318], ecx
mov dword [ebp - 0x324], eax
mov dword [ebp - 0x320], ecx
cmp ebx, ecx
jne 0x104d3f9
mov eax, 0x80004003
jmp 0x104d86c
push esi
cmp edi, ecx
je 0x104d46c
mov eax, edi
lea edx, [eax + 2]
mov cx, word [eax]
inc eax
inc eax
test cx, cx
jne 0x104d403
sub eax, edx
sar eax, 1
lea esi, [eax + eax + 1]
push esi
call sub.msvcrt.dll_void____cdecl_operator_new___unsigned_int_
mov ebx, eax
pop ecx
test ebx, ebx
jne 0x104d42c
mov eax, 0x8007000e
jmp 0x104d86b
push 0xffffffffffffffff
push esi
push edi
push ebx
mov dword [ebp - 0x31c], 0x80004005
call fcn.01047c8d
test eax, eax
je 0x104d45a
and dword [ebp - 0x31c], 0
push ebx
push dword [ebp + 0x10]
push dword [ebp - 0x314]
call fcn.01045c57
push ebx
call sub.msvcrt.dll_void___cdecl_operator_delete___void__
mov ebx, dword [ebp - 0x314]
pop ecx
jmp 0x104d532
mov esi, dword [ebp + 0x10]
cmp esi, 0xffffffff
jae 0x104d4e6
lea edx, [ebp - 0x318]
push edx
push eax
push ecx
push 0x1001c88
push 0x80000002
mov dword [ebp - 0x328], esi
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
jne 0x104d4e6
lea eax, [ebp - 0x328]
push eax
push ebx
lea eax, [ebp - 0x324]
push eax
push 0
push 0x1007cb4
push dword [ebp - 0x318]
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
test eax, eax
jne 0x104d4d1
inc eax
cmp dword [ebp - 0x324], eax
jne 0x104d4d1
mov dword [ebp - 0x320], eax
mov byte [ebx + esi - 1], 0
push dword [ebp - 0x318]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
cmp dword [ebp - 0x320], 0
jne 0x104d53f
cmp esi, 0x7fffffff
ja 0x104d528
push esi
push ebx
push 0x277e
push dword [0x1073960]
call dword [sym.imp.USER32.dll_LoadStringA]
test eax, eax
jne 0x104d53f
call dword [sym.imp.KERNEL32.dll_GetLastError]
test eax, eax
jne 0x104d514
push 0x57
pop eax
test eax, eax
jle 0x104d520
and eax, 0xffff
or eax, 0x80070000
mov dword [ebp - 0x31c], eax
jmp 0x104d532
mov dword [ebp - 0x31c], 0x80070057
cmp dword [ebp - 0x31c], 0
jl 0x104d850
mov esi, dword [sym.imp.msvcrt.dll_strstr]
mov edi, 0x1007cb0
push edi
push ebx
call esi
pop ecx
pop ecx
test eax, eax
jne 0x104d589
push 0x1007ca8
push ebx
call esi
pop ecx
pop ecx
test eax, eax
jne 0x104d589
push 0x1007ca0
push ebx
call esi
pop ecx
pop ecx
test eax, eax
jne 0x104d589
push dword [ebp + 0x10]
push 0x2f
push ebx
call fcn.01055d9f
push 0x10074a8
push dword [ebp + 0x10]
push ebx
call fcn.010486b3
push edi
push ebx
call esi
pop ecx
pop ecx
test eax, eax
jne 0x104d59d
push edi
push dword [ebp + 0x10]
push ebx
call fcn.010486b3
mov eax, ebx
lea ecx, [eax + 1]
mov dl, byte [eax]
inc eax
test dl, dl
jne 0x104d5a2
mov esi, dword [ebp + 0x10]
sub eax, ecx
sub esi, eax
push esi
call sub.msvcrt.dll_void____cdecl_operator_new___unsigned_int_
xor edi, edi
pop ecx
mov dword [ebp - 0x314], eax
cmp eax, edi
je 0x104d865
mov dword [ebp - 0x328], edi
call fcn.0105663b
test eax, eax
je 0x104d5ec
push 0x1007c94
push dword [ebp + 0x10]
push ebx
call fcn.010486b3
add esi, 0xfffffff6
jmp 0x104d733
lea eax, [ebp - 0x318]
push eax
push 0x20019
push edi
push 0x1001c88
push 0x80000002
mov dword [ebp - 0x330], edi
mov dword [ebp - 0x334], edi
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
jne 0x104d6dc
push 4
pop edi
lea eax, [ebp - 0x32c]
push eax
lea eax, [ebp - 0x334]
push eax
lea eax, [ebp - 0x320]
push eax
push 0
push 0x1007c6c
push dword [ebp - 0x318]
mov dword [ebp - 0x320], edi
mov dword [ebp - 0x32c], edi
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
test eax, eax
jne 0x104d66a
cmp dword [ebp - 0x320], edi
jne 0x104d66a
mov dword [ebp - 0x330], 1
push dword [ebp - 0x318]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
cmp dword [ebp - 0x330], 0
je 0x104d6dc
push 0x104
lea eax, [ebp - 0x108]
push eax
push dword [ebp - 0x334]
call fcn.0105a2b9
lea eax, [ebp - 0x108]
push eax
push 0x1007c60
lea eax, [ebp - 0x210]
push 0x105
push eax
call fcn.01045cbf
add esp, 0x10
test eax, eax
jl 0x104d733
lea eax, [ebp - 0x210]
push eax
push dword [ebp + 0x10]
push ebx
call fcn.010486b3
lea eax, [ebp - 0x210]
lea ecx, [eax + 1]
mov dl, byte [eax]
inc eax
test dl, dl
jne 0x104d6d3
jmp 0x104d72e
cmp esi, 0xffffffff
jae 0x104d801
push esi
push dword [ebp - 0x314]
push 0x277f
push dword [0x1073960]
call dword [sym.imp.USER32.dll_LoadStringA]
test eax, eax
je 0x104d733
push dword [ebp - 0x314]
push dword [ebp + 0x10]
push ebx
call fcn.010486b3
push 0x1007c5c
push dword [ebp + 0x10]
push ebx
call fcn.010486b3
mov eax, dword [ebp - 0x314]
lea ecx, [eax + 1]
mov dl, byte [eax]
inc eax
test dl, dl
jne 0x104d727
sub eax, ecx
sub esi, eax
dec esi
cmp esi, 0xffffffff
jae 0x104d801
xor edi, edi
push edi
push 0xc
push 0x10074d0
lea eax, [ebp - 0x310]
push 0x208
push eax
call fcn.01035948
add esp, 0x14
test eax, eax
jl 0x104d801
mov dword [ebp - 0x32c], esi
lea eax, [ebp - 0x318]
push eax
xor esi, esi
inc esi
push esi
push edi
lea eax, [ebp - 0x310]
push eax
push 0x80000002
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
jne 0x104d801
lea eax, [ebp - 0x32c]
push eax
push dword [ebp - 0x314]
lea eax, [ebp - 0x324]
push eax
push edi
push 0x1007c50
push dword [ebp - 0x318]
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
test eax, eax
jne 0x104d7ed
cmp dword [ebp - 0x324], esi
jne 0x104d7ed
push 0x1007c44
push dword [ebp + 0x10]
push ebx
call fcn.010486b3
push dword [ebp - 0x314]
push dword [ebp + 0x10]
push ebx
call fcn.010486b3
push 0x1007c5c
push dword [ebp + 0x10]
push ebx
call fcn.010486b3
mov dword [ebp - 0x328], esi
push dword [ebp - 0x318]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
cmp dword [ebp - 0x328], edi
jne 0x104d842
push 0x104
lea eax, [ebp - 0x108]
push eax
call fcn.0105a9fa
test eax, eax
je 0x104d842
push 0x1007c44
push dword [ebp + 0x10]
push ebx
call fcn.010486b3
lea eax, [ebp - 0x108]
push eax
push dword [ebp + 0x10]
push ebx
call fcn.010486b3
push 0x1007c5c
push dword [ebp + 0x10]
push ebx
call fcn.010486b3
push dword [ebp - 0x314]
call sub.msvcrt.dll_void___cdecl_operator_delete___void__
pop ecx
jmp 0x104d865
push dword [ebp - 0x31c]
push 0x1007c00
push 2
call fcn.01055c69
add esp, 0xc
mov eax, dword [ebp - 0x31c]
pop esi
mov ecx, dword [ebp - 4]
pop edi
xor ecx, ebp
pop ebx
call fcn.01047464
leave
ret 0xc