Function at 0x7317b430
Capabilities:
Query or enumerate registry value

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push 0xfffffffffffffffe
push 0x731f2ed0
push 0x731efe00
mov eax, dword fs:[0]
push eax
sub esp, 0x140
mov eax, dword [0x731f70b4]
xor dword [ebp - 8], eax
xor eax, ebp
mov dword [ebp - 0x1c], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0x10]
mov dword fs:[0], eax
mov dword [ebp - 0x18], esp
mov ebx, ecx
mov esi, dword [ebp + 8]
mov dword [ebp - 0x140], esi
mov eax, dword [ebp + 0x18]
mov dword [ebp - 0x13c], eax
mov edx, dword [ebp + 0x20]
mov dword [ebp - 0x134], edx
mov dword [ebp - 0x130], 0
lea edi, [ebx + 0x40]
mov ecx, 0x77
rep movsd dword es:[edi], dword [esi]
mov eax, dword [ebp + 0x10]
mov dword [ebx + 0x21c], eax
mov eax, dword [ebp + 0xc]
mov dword [ebx + 0x238], eax
mov dword [ebx + 0x23c], edx
mov dword [ebp - 0x138], 4
mov dword [ebp - 0x12c], 0
lea eax, [ebp - 0x12c]
push eax
push 0x731540c0
push 0x80000002
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyA]
test eax, eax
jne 0x7317b517
lea eax, [ebp - 0x138]
push eax
lea eax, [ebp - 0x130]
push eax
lea eax, [ebp - 0x148]
push eax
push 0
push 0x7315558c
push dword [ebp - 0x12c]
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
push dword [ebp - 0x12c]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
call fcn.73168ef0
test eax, eax
je 0x7317b52d
cmp dword [ebp - 0x130], 0
jne 0x7317b52d
xor eax, eax
jmp 0x7317b532
mov eax, 0x100
or eax, dword [ebp + 0x14]
mov dword [ebx + 0x220], eax
mov dword [ebp - 0x130], 0
mov dword [ebp - 0x138], 4
mov dword [ebp - 0x12c], 0
lea eax, [ebp - 0x12c]
push eax
push 0x731540c0
push 0x80000002
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyA]
test eax, eax
jne 0x7317b5a8
lea eax, [ebp - 0x138]
push eax
lea eax, [ebp - 0x130]
push eax
lea eax, [ebp - 0x148]
push eax
push 0
push 0x73155598
push dword [ebp - 0x12c]
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
push dword [ebp - 0x12c]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov ecx, dword [ebx + 0x220]
mov dword [ebx + 0x224], ecx
cmp dword [ebp + 0x24], 0
je 0x7317b5c5
mov eax, ecx
or eax, 0x10
mov dword [ebx + 0x224], eax
cmp dword [ebp - 0x130], 0
je 0x7317b5d7
or ecx, 4
mov dword [ebx + 0x220], ecx
mov edi, dword [ebp - 0x13c]
cmp dword [edi + 0x1c], 0
jne 0x7317b631
lea eax, [ebx + 0x1d0]
mov dword [ebp - 0x14c], eax
mov dword [ebp - 0x148], 0
call fcn.7316f1d0
mov esi, dword [0x731f8578]
test esi, esi
je 0x7317b62a
lea eax, [ebp - 0x14c]
push eax
push 0x7316f530
push 0
push 0
mov ecx, esi
call dword [0x731fd4e8]
call esi
mov ecx, dword [ebp - 0x148]
jmp 0x7317b62c
xor ecx, ecx
call fcn.73179050
push dword [ebp - 0x140]
call dword [sym.imp.KERNEL32.dll_LocalFree]
mov ecx, dword [ebp - 0x134]
mov eax, dword [ecx]
push ecx
mov esi, dword [eax + 4]
mov ecx, esi
call dword [0x731fd4e8]
call esi
test byte [ebx + 0x220], 4
je 0x7317b67b
mov dword [ebp - 4], 0
lea eax, [ebx + 4]
mov dword [eax + 0x18], 1
push eax
call dword [sym.imp.KERNEL32.dll_InitializeCriticalSection]
mov dword [ebp - 4], 0xfffffffe
push 0
call dword [sym.imp.KERNEL32.dll_GetModuleHandleA]
mov byte [ebp - 0x128], 0
push 0x103
lea ecx, [ebp - 0x128]
push ecx
push eax
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameA]
mov edx, eax
lea ecx, [edx - 5]
cmp ecx, 0xff
ja 0x7317b6eb
cmp byte [ebp + edx - 0x12c], 0x2e
jne 0x7317b6eb
mov al, byte [ebp + edx - 0x12b]
cmp al, 0x73
je 0x7317b6c3
cmp al, 0x53
jne 0x7317b6eb
mov al, byte [ebp + edx - 0x12a]
cmp al, 0x63
je 0x7317b6d2
cmp al, 0x43
jne 0x7317b6eb
mov al, byte [ebp + edx - 0x129]
cmp al, 0x72
je 0x7317b6e1
cmp al, 0x52
jne 0x7317b6eb
or dword [ebx + 0x220], 0x10000000
push ebx
mov ecx, dword [ebx + 0x3c]
call fcn.7317cb60
mov dword [ebp - 0x12c], eax
test eax, eax
jne 0x7317b97a
mov ecx, dword [ebx + 0x16c]
mov edx, ecx
neg edx
sbb edx, edx
and edx, 3
mov eax, ecx
neg eax
sbb eax, eax
and eax, 8
mov esi, eax
test ecx, ecx
je 0x7317b734
cmp dword [ebx + 0x170], 0
je 0x7317b734
or esi, 0x10
movzx eax, si
mov edx, 4
test al, 0x10
je 0x7317b75e
test dword [ebx + 0x5c], 0x10000
je 0x7317b749
or eax, 0x20
mov edx, 5
test al, 0x10
je 0x7317b75e
cmp dword [ebx + 0xfc], 0
je 0x7317b75e
or eax, 0x40
mov edx, 6
test al, 0x40
je 0x7317b775
test dword [ebx + 0x5c], 0x10000
je 0x7317b775
or eax, 0x80
mov edx, 7
mov ecx, dword [ebx + 0x208]
test ecx, ecx
je 0x7317b785
cmp dword [ecx + 0x30], 0
jne 0x7317b798
cmp dword [0x731f8564], 0
je 0x7317b798
or eax, 0x400
mov edx, 0xa
test eax, 0x400
je 0x7317b7b2
test dword [ebx + 0x5c], 0x10000
je 0x7317b7b2
or eax, 0x800
mov edx, 0xb
movzx eax, ax
neg eax
sbb eax, eax
and eax, edx
mov dword [ebx + 0x28], eax
mov eax, dword [ebx + 0x118]
mov dword [ebx + 0x244], eax
mov eax, dword [ebx + 0x114]
mov dword [ebx + 0x240], eax
mov eax, dword [ebx + 0x11c]
mov dword [ebx + 0x24c], eax
mov eax, dword [ebx + 0x124]
mov dword [ebx + 0x248], eax
push 0x7e0
push 0x40
call dword [sym.imp.KERNEL32.dll_LocalAlloc]
test eax, eax
je 0x7317b842
mov ecx, eax
and ecx, 0x1f
mov edx, 0x20
sub edx, ecx
lea ecx, [eax + edx]
mov dword [ecx - 4], edx
push 1
push ebx
call fcn.73173660
jmp 0x7317b844
xor eax, eax
mov dword [ebx + 0x22c], eax
test eax, eax
je 0x7317b975
push 0
lea ecx, [ebp - 0x12c]
push ecx
push edi
mov ecx, eax
call fcn.73173910
mov esi, dword [ebp - 0x12c]
test esi, esi
js 0x7317b971
cmp dword [edi + 0x20], 0
je 0x7317b8c9
push dword [edi + 0x24]
push dword [edi + 8]
mov ecx, ebx
call fcn.7317c2b0
test eax, eax
js 0x7317b97a
mov eax, dword [ebx + 0x22c]
lea ecx, [ebp - 0x134]
push ecx
push 1
push dword [edi + 0x10]
push dword [edi + 0x24]
push 2
push dword [eax + 0x38]
mov edx, dword [eax + 0x34]
mov ecx, ebx
call fcn.73176c20
add esp, 0x18
mov esi, eax
test esi, esi
js 0x7317b971
mov eax, dword [ebp - 0x134]
mov dword [ebx + 0x234], eax
mov eax, dword [ebx + 0x22c]
mov eax, dword [eax + 0x2c]
mov ecx, dword [eax]
push dword [ebx + 0x234]
lea eax, [ecx + 0x1c]
neg ecx
sbb ecx, ecx
and ecx, eax
push ecx
mov ecx, ebx
call fcn.7317b1b0
mov eax, dword [ebx + 0x22c]
xor ecx, ecx
cmp dword [eax + 0x50], ecx
sete cl
mov dword [ebx + 0x30], ecx
lea eax, [ebp - 0x144]
push eax
push 0x731540c0
push 0x80000002
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyA]
test eax, eax
jne 0x7317b971
mov dword [ebp - 0x134], 4
lea eax, [ebp - 0x134]
push eax
lea eax, [ebp - 0x13c]
push eax
lea eax, [ebp - 0x140]
push eax
push 0
push 0x731555a4
push dword [ebp - 0x144]
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
test eax, eax
jne 0x7317b965
cmp dword [ebp - 0x140], 4
jne 0x7317b965
cmp dword [ebp - 0x13c], eax
je 0x7317b965
mov dword [ebx + 0x34], 1
push dword [ebp - 0x144]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, esi
jmp 0x7317b97a
mov eax, 0x8007000e
mov ecx, dword [ebp - 0x10]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 0x1c]
xor ecx, ebp
call fcn.731efbf0
mov esp, ebp
pop ebp
ret 0x20