Function at 0x1003d2d0
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x10085366
mov eax, dword fs:[0]
push eax
sub esp, 0x14
push ebx
push esi
push edi
mov eax, dword [0x100c6034]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov dword [ebp - 0x10], 0
cmp byte [ebp + 0x10], 0
jne 0x1003d508
mov esi, dword [ebp + 8]
mov ecx, esi
mov dl, byte [ebp + 0xc]
call fcn.1003cfc0
mov ebx, eax
mov dword [ebp - 0x18], 0x100a5e8c
mov dword [ebp - 0x14], ebx
mov dword [ebp - 4], 0
call fcn.1003e820
cmp byte [eax + 0x1c], 0
je 0x1003d4bd
call fcn.1003e820
mov edi, eax
call fcn.10029330
test eax, eax
je 0x1003d7eb
mov edx, dword [eax]
mov ecx, eax
call dword [edx + 0xc]
add eax, 0x10
mov dword [ebp + 0xc], eax
mov byte [ebp - 4], 3
lea ecx, [ebp + 0xc]
push 0x1a
push str.Registry_KEY_existence_of
call fcn.1002ae70
mov edx, dword [esi]
test edx, edx
je 0x1003d390
mov ecx, edx
lea esi, [ecx + 2]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x1003d377
sub ecx, esi
sar ecx, 1
push ecx
push edx
lea ecx, [ebp + 0xc]
call fcn.1002ae70
push 5
push str._is:
lea ecx, [ebp + 0xc]
call fcn.1002ae70
mov eax, str.does_not_exist
test ebx, ebx
mov esi, str.exists
cmove esi, eax
call fcn.10029330
test eax, eax
je 0x1003d7eb
mov edx, dword [eax]
mov ecx, eax
call dword [edx + 0xc]
add eax, 0x10
mov dword [ebp + 0x10], eax
mov byte [ebp - 4], 4
lea ecx, [ebp + 0x10]
push esi
call fcn.1002b120
test al, al
jne 0x1003d3f9
mov ecx, esi
lea edx, [ecx + 2]
nop
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x1003d3e0
sub ecx, edx
sar ecx, 1
push ecx
push esi
lea ecx, [ebp + 0x10]
call fcn.1002b490
mov byte [ebp - 4], 5
mov esi, dword [ebp + 0x10]
test esi, esi
je 0x1003d429
mov ecx, esi
lea edx, [ecx + 2]
nop dword [eax]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x1003d410
sub ecx, edx
sar ecx, 1
push ecx
push esi
lea ecx, [ebp + 0xc]
call fcn.1002ae70
call fcn.10029330
test eax, eax
je 0x1003d7eb
mov edx, dword [eax]
mov ecx, eax
call dword [edx + 0xc]
add eax, 0x10
mov dword [ebp + 8], eax
mov byte [ebp - 4], 8
lea ecx, [ebp + 8]
push 0
push 0x100a3438
call fcn.1002ae70
push ecx
lea eax, [ebp + 0xc]
mov ecx, edi
push eax
sub esp, 8
call fcn.1003e900
mov byte [ebp - 4], 5
or edi, 0xffffffff
mov edx, dword [ebp + 8]
mov eax, edi
add edx, 0xfffffff0
lock xadd dword [edx + 0xc], eax
dec eax
test eax, eax
jg 0x1003d486
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
mov byte [ebp - 4], 3
add esi, 0xfffffff0
mov eax, edi
lock xadd dword [esi + 0xc], eax
dec eax
test eax, eax
jg 0x1003d4a1
mov ecx, dword [esi]
push esi
mov eax, dword [ecx]
call dword [eax + 4]
mov byte [ebp - 4], 0
mov edx, dword [ebp + 0xc]
add edx, 0xfffffff0
lock xadd dword [edx + 0xc], edi
dec edi
test edi, edi
jg 0x1003d4bd
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
cmp byte [ebp + 0x14], 0
je 0x1003d4cb
test ebx, ebx
setne byte [ebp + 0xf]
jmp 0x1003d4d1
test ebx, ebx
sete byte [ebp + 0xf]
mov dword [ebp - 4], 0xffffffff
mov dword [ebp - 0x18], 0x100a5e8c
test ebx, ebx
je 0x1003d4f1
push ebx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov dword [ebp - 0x14], 0
mov al, byte [ebp + 0xf]
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 0x10
mov ebx, dword [ebp + 8]
push 0x5c
push dword [ebx]
call fcn.1005dd3a
mov esi, eax
mov dword [ebp + 0x10], 3
add esp, 8
or edi, 0xffffffff
test esi, esi
je 0x1003d610
sub esi, dword [ebx]
sar esi, 1
js 0x1003d610
push esi
push 0
lea eax, [ebp - 0x14]
mov ecx, ebx
push eax
call fcn.1002be40
mov dword [ebp - 4], 0xe
lea ecx, [ebp - 0x14]
mov dl, byte [ebp + 0xc]
call fcn.1003cfc0
mov ebx, eax
mov dword [ebp - 0x20], 0x100a5e8c
mov dword [ebp - 0x1c], ebx
mov byte [ebp - 4], 0xf
test ebx, ebx
je 0x1003d5cf
lea ecx, [esi + 1]
mov byte [ebp - 4], 0x10
mov edx, dword [ebp + 8]
mov eax, dword [edx]
mov eax, dword [eax - 0xc]
sub eax, ecx
push eax
push ecx
lea eax, [ebp + 0xc]
mov ecx, edx
push eax
call fcn.1002be40
push 0
push 0
push 0
push 0
push dword [ebp + 0xc]
mov dword [ebp - 0x10], 1
push ebx
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
mov ecx, 1
mov dword [ebp + 0x10], eax
mov dword [ebp - 0x10], ecx
and ecx, 0xfffffffe
mov dword [ebp - 0x10], ecx
mov byte [ebp - 4], 0xf
mov eax, edi
mov edx, dword [ebp + 0xc]
add edx, 0xfffffff0
lock xadd dword [edx + 0xc], eax
dec eax
test eax, eax
jg 0x1003d5cf
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
mov byte [ebp - 4], 0xe
mov dword [ebp - 0x20], 0x100a5e8c
test ebx, ebx
je 0x1003d5ec
push ebx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov dword [ebp - 0x1c], 0
mov dword [ebp - 4], 0xffffffff
mov eax, edi
mov edx, dword [ebp - 0x14]
add edx, 0xfffffff0
lock xadd dword [edx + 0xc], eax
dec eax
test eax, eax
jg 0x1003d60d
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
mov ebx, dword [ebp + 8]
call fcn.1003e820
cmp byte [eax + 0x1c], 0
je 0x1003d7b0
call fcn.1003e820
mov dword [ebp - 0x14], eax
call fcn.10029330
test eax, eax
je 0x1003d7eb
mov edx, dword [eax]
mov ecx, eax
call dword [edx + 0xc]
add eax, 0x10
mov dword [ebp + 0xc], eax
mov dword [ebp - 4], 0x15
lea ecx, [ebp + 0xc]
push 0x1c
push str.Registry_value_existence_of
call fcn.1002ae70
mov edx, dword [ebx]
test edx, edx
je 0x1003d67b
mov ecx, edx
lea esi, [ecx + 2]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x1003d662
sub ecx, esi
sar ecx, 1
push ecx
push edx
lea ecx, [ebp + 0xc]
call fcn.1002ae70
push 5
push str._is:
lea ecx, [ebp + 0xc]
call fcn.1002ae70
mov ebx, dword [ebp + 0x10]
mov eax, str.does_not_exist
test ebx, ebx
mov esi, str.exists
cmovne esi, eax
call fcn.10029330
test eax, eax
je 0x1003d7eb
mov edx, dword [eax]
mov ecx, eax
call dword [edx + 0xc]
add eax, 0x10
mov dword [ebp + 0x10], eax
mov byte [ebp - 4], 0x16
lea ecx, [ebp + 0x10]
push esi
call fcn.1002b120
test al, al
jne 0x1003d6e9
mov ecx, esi
lea edx, [ecx + 2]
nop dword [eax]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x1003d6d0
sub ecx, edx
sar ecx, 1
push ecx
push esi
lea ecx, [ebp + 0x10]
call fcn.1002b490
mov byte [ebp - 4], 0x17
mov esi, dword [ebp + 0x10]
test esi, esi
je 0x1003d719
mov ecx, esi
lea edx, [ecx + 2]
nop dword [eax]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x1003d700
sub ecx, edx
sar ecx, 1
push ecx
push esi
lea ecx, [ebp + 0xc]
call fcn.1002ae70
call fcn.10029330
test eax, eax
je 0x1003d7eb
mov edx, dword [eax]
mov ecx, eax
call dword [edx + 0xc]
add eax, 0x10
mov dword [ebp + 8], eax
mov byte [ebp - 4], 0x1a
lea ecx, [ebp + 8]
push 0
push 0x100a3438
call fcn.1002ae70
push ecx
mov ecx, dword [ebp - 0x14]
lea eax, [ebp + 0xc]
push eax
sub esp, 8
call fcn.1003e900
mov byte [ebp - 4], 0x17
mov eax, edi
mov edx, dword [ebp + 8]
add edx, 0xfffffff0
lock xadd dword [edx + 0xc], eax
dec eax
test eax, eax
jg 0x1003d774
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
mov byte [ebp - 4], 0x15
add esi, 0xfffffff0
mov eax, edi
lock xadd dword [esi + 0xc], eax
dec eax
test eax, eax
jg 0x1003d78f
mov ecx, dword [esi]
push esi
mov eax, dword [ecx]
call dword [eax + 4]
mov dword [ebp - 4], 0xffffffff
mov edx, dword [ebp + 0xc]
add edx, 0xfffffff0
lock xadd dword [edx + 0xc], edi
dec edi
test edi, edi
jg 0x1003d7b3
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
jmp 0x1003d7b3
mov ebx, dword [ebp + 0x10]
cmp byte [ebp + 0x14], 0
je 0x1003d7d2
test ebx, ebx
sete al
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 0x10
test ebx, ebx
setne al
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 0x10
push 0x80004005
call fcn.100269b0
int3