Function at 0x10026f9
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
lea ebp, [esp - 0xdc]
sub esp, 0x15c
mov eax, dword [0x1005048]
push esi
mov dword [ebp + 0xd8], eax
push 0x104
lea eax, [ebp - 0x2c]
xor esi, esi
push eax
push esi
mov dword [ebp - 0x34], esi
mov dword [ebp - 0x30], esi
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameA]
test eax, eax
je 0x100275d
lea eax, [ebp - 0x2c]
push eax
call fcn.010019f2
cmp eax, esi
je 0x100275d
inc eax
lea ecx, [ebp + 0xd8]
sub ecx, eax
cmp ecx, 0x7fffffff
ja 0x100275d
push 0x100119c
push ecx
push eax
call fcn.010014a0
cmp eax, esi
jge 0x1002764
xor eax, eax
jmp 0x1002984
lea eax, [ebp - 0x34]
push eax
push 0x20019
push esi
push 0x1001338
push 0x80000002
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
cmp eax, esi
jne 0x1002973
push ebx
mov ebx, dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
push edi
push 0x10
pop edi
lea eax, [ebp - 0x38]
push eax
lea eax, [ebp - 0x70]
push eax
lea eax, [ebp - 0x3c]
push eax
push esi
push 0x1001320
push dword [ebp - 0x34]
mov dword [ebp - 0x38], edi
call ebx
cmp eax, esi
jne 0x1002971
cmp dword [ebp - 0x3c], 3
jne 0x1002971
cmp dword [ebp - 0x38], edi
jne 0x1002971
lea eax, [ebp - 0x80]
push eax
call dword [sym.imp.KERNEL32.dll_GetSystemTime]
lea eax, [ebp - 0x70]
push eax
call fcn.010022ed
mov edi, eax
lea eax, [ebp - 0x80]
push eax
mov dword [ebp - 0x40], edx
call fcn.010022ed
cmp edx, dword [ebp - 0x40]
jb 0x1002971
ja 0x10027fa
cmp eax, edi
jbe 0x1002971
sub eax, edi
sbb edx, dword [ebp - 0x40]
push esi
push 0x989680
push edx
push eax
call fcn.010035b0
cmp edx, esi
mov ecx, dword [ebp + 0xe4]
ja 0x1002971
jb 0x1002824
cmp eax, ecx
jae 0x1002971
lea eax, [ebp - 0x38]
push eax
push esi
lea eax, [ebp - 0x3c]
push eax
push esi
mov edi, 0x100131e
push edi
push dword [ebp - 0x34]
call ebx
test eax, eax
jne 0x1002971
cmp dword [ebp - 0x3c], 1
jne 0x1002971
mov eax, dword [ebp - 0x38]
cmp eax, esi
jbe 0x1002971
inc eax
push eax
push esi
call dword [sym.imp.KERNEL32.dll_GetProcessHeap]
push eax
call dword [sym.imp.KERNEL32.dll_HeapAlloc]
cmp eax, esi
mov dword [ebp - 0x30], eax
je 0x1002971
lea eax, [ebp - 0x38]
push eax
push dword [ebp - 0x30]
push esi
push esi
push edi
push dword [ebp - 0x34]
call ebx
test eax, eax
jne 0x1002890
push dword [ebp - 0x30]
call fcn.01002679
test eax, eax
jne 0x10028a4
push dword [ebp - 0x30]
push esi
call dword [sym.imp.KERNEL32.dll_GetProcessHeap]
push eax
call dword [sym.imp.KERNEL32.dll_HeapFree]
mov dword [ebp - 0x30], esi
cmp dword [ebp - 0x30], esi
je 0x1002971
lea eax, [ebp - 0x50]
push eax
lea eax, [ebp - 0x44]
push eax
lea eax, [ebp - 0x2c]
push eax
call fcn.01002435
test eax, eax
je 0x100295d
lea eax, [ebp - 0x38]
push eax
lea eax, [ebp - 0x60]
push eax
lea eax, [ebp - 0x3c]
push eax
push esi
push 0x1001314
push dword [ebp - 0x34]
call ebx
test eax, eax
jne 0x100295d
cmp dword [ebp - 0x3c], 3
jne 0x100295d
mov edx, dword [ebp - 0x44]
mov ecx, dword [ebp - 0x40]
mov edi, dword [ebp - 0x50]
xor esi, esi
or eax, edx
mov edx, dword [ebp - 0x4c]
xor ebx, ebx
or ecx, esi
or esi, edi
or edx, ebx
cmp eax, dword [ebp - 0x60]
jne 0x100295b
cmp ecx, dword [ebp - 0x5c]
jne 0x100295b
cmp esi, dword [ebp - 0x58]
jne 0x100295b
cmp edx, dword [ebp - 0x54]
jne 0x100295b
lea eax, [ebp + 0xe4]
push eax
lea eax, [ebp - 0x2c]
push eax
call fcn.01002309
test eax, eax
je 0x100295b
lea eax, [ebp - 0x38]
push eax
lea eax, [ebp - 0x48]
push eax
lea eax, [ebp - 0x3c]
push eax
xor esi, esi
push esi
push 0x1001308
push dword [ebp - 0x34]
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
test eax, eax
jne 0x100295d
cmp dword [ebp - 0x3c], 4
jne 0x100295d
mov eax, dword [ebp - 0x48]
cmp eax, dword [ebp + 0xe4]
je 0x1002971
jmp 0x100295d
xor esi, esi
push dword [ebp - 0x30]
push esi
call dword [sym.imp.KERNEL32.dll_GetProcessHeap]
push eax
call dword [sym.imp.KERNEL32.dll_HeapFree]
mov dword [ebp - 0x30], esi
pop edi
pop ebx
cmp dword [ebp - 0x34], esi
je 0x1002981
push dword [ebp - 0x34]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, dword [ebp - 0x30]
mov ecx, dword [ebp + 0xd8]
pop esi
call fcn.010033ad
add ebp, 0xdc
leave
ret 4