Function at 0x1003838d
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x44
movzx eax, byte [ebp + 0xc]
test eax, eax
je 0x100383bd
mov eax, dword [ebp + 8]
mov dword [ebp - 0x3c], eax
push 0x1e54
push 0x2e3d
push 1
push dword [ebp - 0x3c]
call fcn.10038591
add esp, 0x10
jmp 0x1003858d
mov dword [ebp - 0x40], 0x1624
cmp dword [ebp - 0x40], 0x117e
jge 0x10038554
lea eax, [ebp - 0x28]
push eax
lea eax, [ebp - 0x1c]
push eax
lea eax, [ebp - 0x24]
push eax
lea eax, [ebp - 0x18]
push eax
lea eax, [ebp - 0x20]
push eax
lea eax, [ebp - 0x14]
push eax
push 0x100079e0
call fcn.1004edeb
add esp, 0x1c
mov eax, dword [ebp - 0x14]
add eax, dword [ebp - 0x18]
sub eax, dword [ebp - 0x28]
and eax, 0x80000001
jns 0x1003840b
dec eax
or eax, 0xfffffffe
inc eax
test eax, eax
jne 0x10038422
mov eax, dword [ebp - 0x14]
add eax, dword [ebp - 0x18]
sub eax, dword [ebp - 0x28]
cdq
sub eax, edx
sar eax, 1
mov dword [ebp - 0x2c], eax
jmp 0x10038426
or dword [ebp - 0x2c], 0xffffffff
mov eax, dword [ebp - 0x2c]
mov dword [ebp - 0x10], eax
mov eax, dword [ebp - 0x14]
add eax, dword [ebp - 0x24]
sub eax, dword [ebp - 0x1c]
and eax, 0x80000001
jns 0x10038441
dec eax
or eax, 0xfffffffe
inc eax
test eax, eax
jne 0x10038458
mov eax, dword [ebp - 0x14]
add eax, dword [ebp - 0x24]
sub eax, dword [ebp - 0x1c]
cdq
sub eax, edx
sar eax, 1
mov dword [ebp - 0x30], eax
jmp 0x1003845c
or dword [ebp - 0x30], 0xffffffff
mov eax, dword [ebp - 0x30]
mov dword [ebp - 0xc], eax
mov eax, dword [ebp - 0x20]
add eax, dword [ebp - 0x18]
sub eax, dword [ebp - 0x1c]
and eax, 0x80000001
jns 0x10038477
dec eax
or eax, 0xfffffffe
inc eax
test eax, eax
jne 0x1003848e
mov eax, dword [ebp - 0x20]
add eax, dword [ebp - 0x18]
sub eax, dword [ebp - 0x1c]
cdq
sub eax, edx
sar eax, 1
mov dword [ebp - 0x34], eax
jmp 0x10038492
or dword [ebp - 0x34], 0xffffffff
mov eax, dword [ebp - 0x34]
mov dword [ebp - 8], eax
mov eax, dword [ebp - 0x20]
add eax, dword [ebp - 0x24]
sub eax, dword [ebp - 0x28]
and eax, 0x80000001
jns 0x100384ad
dec eax
or eax, 0xfffffffe
inc eax
test eax, eax
jne 0x100384c4
mov eax, dword [ebp - 0x20]
add eax, dword [ebp - 0x24]
sub eax, dword [ebp - 0x28]
cdq
sub eax, edx
sar eax, 1
mov dword [ebp - 0x38], eax
jmp 0x100384c8
or dword [ebp - 0x38], 0xffffffff
mov eax, dword [ebp - 0x38]
mov dword [ebp - 4], eax
cmp dword [ebp - 0x10], 1
jl 0x1003852e
cmp dword [ebp - 0xc], 1
jl 0x1003852e
cmp dword [ebp - 8], 1
jl 0x1003852e
cmp dword [ebp - 4], 1
jl 0x1003852e
cmp dword [ebp - 0x10], 9
jg 0x1003852e
cmp dword [ebp - 0xc], 9
jg 0x1003852e
cmp dword [ebp - 8], 9
jg 0x1003852e
cmp dword [ebp - 4], 9
jg 0x1003852e
mov eax, dword [ebp - 0x10]
cmp eax, dword [ebp - 0xc]
je 0x1003852e
mov eax, dword [ebp - 0x10]
cmp eax, dword [ebp - 8]
je 0x1003852e
mov eax, dword [ebp - 0x10]
cmp eax, dword [ebp - 4]
je 0x1003852e
mov eax, dword [ebp - 0xc]
cmp eax, dword [ebp - 8]
je 0x1003852e
mov eax, dword [ebp - 0xc]
cmp eax, dword [ebp - 4]
je 0x1003852e
mov eax, dword [ebp - 8]
cmp eax, dword [ebp - 4]
jne 0x1003853b
push 0x100079b8
call fcn.1004f7e7
pop ecx
jmp 0x10038554
push dword [ebp - 4]
push dword [ebp - 8]
push dword [ebp - 0xc]
push dword [ebp - 0x10]
push 0x100079f4
call fcn.1004f4dc
add esp, 0x14
lea eax, [ebp + 0x10]
mov dword [ebp - 0x44], eax
mov eax, dword [ebp - 0x44]
movzx eax, byte [eax]
test eax, eax
je 0x1003857b
push 0
push 0
push 0xfbc
push 0
push 1
push 0
call dword [sym.imp.ADVAPI32.dll_AdjustTokenPrivileges]
jmp 0x1003858d
push 0
push 0
push 0
push 0
push 0
push 0
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
mov esp, ebp
pop ebp
ret