Function at 0x1005f540
Capabilities:
Query or enumerate registry value

Disassembly:
sub esp, 0x428
mov eax, dword [0x100bb300]
xor eax, esp
mov dword [esp + 0x424], eax
mov eax, dword [esp + 0x42c]
mov dword [esp + 4], eax
mov eax, 1
mov dword [esp + 0xc], ecx
test byte [0x100c7ba4], al
jne 0x1005f58f
mov edx, dword [0x100bc66c]
or dword [0x100c7ba4], eax
push 0x100a3630
mov dword [0x100c7ba0], edx
call fcn.1008416d
add esp, 4
mov eax, dword [0x100c7ba0]
push ebx
xor ebx, ebx
push esi
push edi
cmp dword [eax - 8], ebx
jne 0x1005f79f
push 0x206
lea edx, [esp + 0x22e]
xor ecx, ecx
push ebx
push edx
mov word [esp + 0x234], cx
call fcn.10087b80
add esp, 0xc
lea eax, [esp + 0xc]
push eax
push 0x20019
push ebx
push 0x100a7990
push reloc.OLEAUT32.DLL_SysReAllocString
mov dword [esp + 0x20], ebx
call dword [sym.imp.ADVAPI32.DLL_RegOpenKeyExW]
test eax, eax
jne 0x1005f631
lea ecx, [esp + 0x1c]
push ecx
mov ecx, dword [esp + 0x10]
lea edx, [esp + 0x22c]
push edx
lea eax, [esp + 0x1c]
push eax
push ebx
push 0x100a86d8
push ecx
mov dword [esp + 0x2c], ebx
mov dword [esp + 0x34], 0x104
call dword [sym.imp.ADVAPI32.DLL_RegQueryValueExW]
mov edx, dword [esp + 0xc]
push edx
call dword [sym.imp.ADVAPI32.DLL_RegCloseKey]
lea eax, [esp + 0x228]
push eax
mov eax, 0x100c7ba0
call fcn.100035a0
mov ecx, dword [0x100c7ba0]
cmp dword [ecx - 8], ebx
jne 0x1005f79f
push ebp
push 0x208
lea edx, [esp + 0x28]
push ebx
push edx
call fcn.10087b80
add esp, 0xc
push 0x104
lea eax, [esp + 0x28]
push eax
push ebx
call dword [sym.imp.KERNEL32.DLL_GetModuleFileNameW]
mov edi, dword [sym.imp.SHLWAPI.DLL_PathRemoveFileSpecW]
lea ecx, [esp + 0x24]
push ecx
call edi
mov ebp, dword [sym.imp.SHLWAPI.DLL_PathFindFileNameW]
lea edx, [esp + 0x24]
push edx
call ebp
cmp eax, ebx
je 0x1005f79e
mov edx, 0x100ae45c
mov ecx, eax
mov edi, edi
mov si, word [ecx]
cmp si, word [edx]
jne 0x1005f6b6
cmp si, bx
je 0x1005f6b2
mov si, word [ecx + 2]
cmp si, word [edx + 2]
jne 0x1005f6b6
add ecx, 4
add edx, 4
cmp si, bx
jne 0x1005f690
xor ecx, ecx
jmp 0x1005f6bb
sbb ecx, ecx
sbb ecx, 0xffffffff
cmp ecx, ebx
jne 0x1005f6d0
lea eax, [esp + 0x24]
push eax
call edi
lea ecx, [esp + 0x24]
push ecx
jmp 0x1005f794
mov edx, 0x100ae46c
mov ecx, eax
mov si, word [ecx]
cmp si, word [edx]
jne 0x1005f6fd
cmp si, bx
je 0x1005f6f9
mov si, word [ecx + 2]
cmp si, word [edx + 2]
jne 0x1005f6fd
add ecx, 4
add edx, 4
cmp si, bx
jne 0x1005f6d7
xor ecx, ecx
jmp 0x1005f702
sbb ecx, ecx
sbb ecx, 0xffffffff
cmp ecx, ebx
je 0x1005f78f
mov ecx, 0x100ae47c
nop
mov dx, word [eax]
cmp dx, word [ecx]
jne 0x1005f736
cmp dx, bx
je 0x1005f732
mov dx, word [eax + 2]
cmp dx, word [ecx + 2]
jne 0x1005f736
add eax, 4
add ecx, 4
cmp dx, bx
jne 0x1005f710
xor eax, eax
jmp 0x1005f73b
sbb eax, eax
sbb eax, 0xffffffff
cmp eax, ebx
lea eax, [esp + 0x24]
push eax
jne 0x1005f74f
call edi
lea ecx, [esp + 0x24]
push ecx
call edi
jmp 0x1005f78f
call edi
lea ecx, [esp + 0x24]
push ecx
call ebp
mov ecx, 0x100ae46c
lea ecx, [ecx]
mov dx, word [eax]
cmp dx, word [ecx]
jne 0x1005f786
cmp dx, bx
je 0x1005f782
mov dx, word [eax + 2]
cmp dx, word [ecx + 2]
jne 0x1005f786
add eax, 4
add ecx, 4
cmp dx, bx
jne 0x1005f760
xor eax, eax
jmp 0x1005f78b
sbb eax, eax
sbb eax, 0xffffffff
cmp eax, ebx
jne 0x1005f79e
lea edx, [esp + 0x24]
push edx
mov eax, 0x100c7ba0
call fcn.100035a0
pop ebp
mov eax, dword [esp + 0x18]
cmp eax, ebx
je 0x1005f7ff
mov ebx, eax
lea edi, [esp + 0xc]
call fcn.100036f0
mov ecx, dword [esp + 0x10]
mov edx, edi
call fcn.10060870
mov eax, dword [esp + 0xc]
lea ecx, [eax - 0xc]
cmp ecx, 0x100bc65c
je 0x1005f7e3
lea esi, [eax - 0xc]
push esi
call dword [sym.imp.KERNEL32.DLL_InterlockedDecrement]
test eax, eax
jg 0x1005f7e3
push esi
call fcn.1008441c
add esp, 4
mov eax, dword [esp + 0x10]
pop edi
pop esi
pop ebx
mov ecx, dword [esp + 0x424]
xor ecx, esp
call fcn.10083dbb
add esp, 0x428
ret
mov eax, dword [0x100c7ba0]
cmp dword [eax - 0xc], ebx
mov esi, dword [esp + 0x10]
jl 0x1005f821
mov dword [esi], eax
mov edx, dword [0x100c7ba0]
add edx, 0xfffffff4
push edx
call dword [sym.imp.KERNEL32.DLL_InterlockedIncrement]
jmp 0x1005f836
mov eax, dword [0x100bc66c]
mov dword [esi], eax
mov ecx, dword [0x100c7ba0]
push ecx
mov eax, esi
call fcn.100035a0
mov ecx, dword [esp + 0x430]
pop edi
mov eax, esi
pop esi
pop ebx
xor ecx, esp
call fcn.10083dbb
add esp, 0x428
ret