Function at 0x1004ee50
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x1009c9e2
mov eax, dword fs:[0]
push eax
sub esp, 0x228
mov eax, dword [0x100bd0c0]
xor eax, ebp
mov dword [ebp - 0x10], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
call fcn.100087b0
mov ecx, eax
test ecx, ecx
je 0x1004f1e2
mov eax, dword [ecx]
call dword [eax + 0xc]
add eax, 0x10
mov dword [ebp - 0x224], eax
lea eax, [ebp - 0x220]
mov dword [ebp - 4], 0
push eax
lea ecx, [ebp - 0x219]
call fcn.10030f60
mov ecx, dword [eax]
test ecx, ecx
je 0x1004f1ec
mov ebx, dword [ebp + 8]
mov eax, dword [ebx]
mov dx, word [eax]
cmp dx, word [ecx]
jne 0x1004eee9
test dx, dx
je 0x1004eee5
mov dx, word [eax + 2]
cmp dx, word [ecx + 2]
jne 0x1004eee9
add eax, 4
add ecx, 4
test dx, dx
jne 0x1004eec3
xor edi, edi
jmp 0x1004eeee
sbb edi, edi
or edi, 1
mov edx, dword [ebp - 0x220]
or esi, 0xffffffff
add edx, 0xfffffff0
mov eax, esi
lock xadd dword [edx + 0xc], eax
dec eax
test eax, eax
jg 0x1004ef0e
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
lea eax, [ebp - 0x220]
lea ecx, [ebp - 0x219]
push eax
test edi, edi
jne 0x1004ef2d
call fcn.10045790
mov byte [ebp - 4], 1
jmp 0x1004f02a
call fcn.10033330
push eax
push ebx
call fcn.1004dba0
mov edx, dword [ebp - 0x220]
add esp, 8
mov byte [ebp - 0x219], al
add edx, 0xfffffff0
mov ecx, esi
lock xadd dword [edx + 0xc], ecx
dec ecx
test ecx, ecx
jg 0x1004ef65
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
mov al, byte [ebp - 0x219]
test al, al
lea ecx, [ebp - 0x219]
lea eax, [ebp - 0x220]
push eax
je 0x1004ef84
call fcn.1003d920
mov byte [ebp - 4], 2
jmp 0x1004f02a
call fcn.10031f80
push eax
push ebx
call fcn.1004dba0
mov edx, dword [ebp - 0x220]
add esp, 8
mov byte [ebp - 0x219], al
add edx, 0xfffffff0
mov ecx, esi
lock xadd dword [edx + 0xc], ecx
dec ecx
test ecx, ecx
jg 0x1004efbc
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
mov al, byte [ebp - 0x219]
test al, al
lea ecx, [ebp - 0x219]
lea eax, [ebp - 0x220]
push eax
je 0x1004efd8
call fcn.1003e8b0
mov byte [ebp - 4], 3
jmp 0x1004f02a
call fcn.10032620
push eax
push ebx
call fcn.1004dba0
mov edx, dword [ebp - 0x220]
add esp, 8
mov byte [ebp - 0x219], al
add edx, 0xfffffff0
mov ecx, esi
lock xadd dword [edx + 0xc], ecx
dec ecx
test ecx, ecx
jg 0x1004f010
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
mov al, byte [ebp - 0x219]
test al, al
lea ecx, [ebp - 0x219]
lea eax, [ebp - 0x220]
push eax
je 0x1004f059
call fcn.100498d0
mov byte [ebp - 4], 4
push eax
lea ecx, [ebp - 0x224]
call fcn.10008130
mov edx, dword [ebp - 0x220]
mov eax, esi
mov byte [ebp - 4], 0
add edx, 0xfffffff0
lock xadd dword [edx + 0xc], eax
dec eax
test eax, eax
jg 0x1004f0b8
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
jmp 0x1004f0b8
call fcn.10031020
push eax
push ebx
call fcn.1004dba0
mov edx, dword [ebp - 0x220]
add esp, 8
mov bl, al
add edx, 0xfffffff0
mov ecx, esi
lock xadd dword [edx + 0xc], ecx
dec ecx
test ecx, ecx
jg 0x1004f087
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
test bl, bl
je 0x1004f0b8
lea eax, [ebp - 0x220]
push eax
lea ecx, [ebp - 0x219]
call fcn.1003f9f0
push eax
lea ecx, [ebp - 0x224]
mov byte [ebp - 4], 5
call fcn.10008130
lea ecx, [ebp - 0x220]
call fcn.100080f0
mov eax, dword [ebp - 0x224]
xor edi, edi
cmp dword [eax - 0xc], edi
je 0x1004f1a0
push 0x20219
push eax
push 0x80000002
lea ecx, [ebp - 0x234]
mov dword [ebp - 0x234], edi
mov dword [ebp - 0x230], edi
mov dword [ebp - 0x22c], edi
call fcn.1004cda0
mov ebx, dword [ebp - 0x234]
test eax, eax
jne 0x1004f195
push 0x208
lea eax, [ebp - 0x218]
push edi
push eax
call fcn.10074cb0
add esp, 0xc
mov dword [ebp - 0x220], 0x208
lea eax, [ebp - 0x220]
push eax
lea eax, [ebp - 0x218]
push eax
lea eax, [ebp - 0x228]
push eax
push edi
push str.oem_f
push ebx
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
test eax, eax
jne 0x1004f195
mov eax, dword [ebp - 0x228]
cmp eax, 1
je 0x1004f154
cmp eax, 2
jne 0x1004f195
mov eax, dword [ebp - 0x220]
test eax, eax
je 0x1004f170
test al, 1
jne 0x1004f195
shr eax, 1
cmp word [ebp + eax*2 - 0x21a], di
je 0x1004f179
jmp 0x1004f195
xor eax, eax
mov word [ebp - 0x218], ax
push 0x100a11b8
lea eax, [ebp - 0x218]
push eax
call dword [sym.imp.SHLWAPI.dll_StrCmpIW]
test eax, eax
mov ecx, 1
cmove edi, ecx
test ebx, ebx
je 0x1004f1a0
push ebx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, dword [ebp - 0x224]
mov dword [ebp - 4], 0xffffffff
add eax, 0xfffffff0
lock xadd dword [eax + 0xc], esi
dec esi
test esi, esi
jg 0x1004f1c2
mov ecx, dword [eax]
push eax
mov edx, dword [ecx]
call dword [edx + 4]
mov eax, edi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.100395fd
mov esp, ebp
pop ebp
ret 4
push 0x80004005
call fcn.10008530
push 0x80004005
call fcn.10008530
int3