Function at 0x100248b
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x158
push esi
push 0x104
lea eax, [ebp - 0x158]
xor esi, esi
push eax
push esi
mov dword [ebp - 8], esi
mov dword [ebp - 4], esi
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameA]
test eax, eax
je 0x10024c4
lea eax, [ebp - 0x158]
push eax
call main
cmp eax, esi
jne 0x10024cb
xor eax, eax
jmp 0x10026f5
push 0x100117c
inc eax
push eax
call dword [sym.imp.KERNEL32.dll_lstrcpyA]
lea eax, [ebp - 8]
push eax
push 0x20019
push esi
push 0x1001318
push 0x80000002
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
cmp eax, esi
jne 0x10026e4
push ebx
mov ebx, dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
push edi
push 0x10
pop edi
lea eax, [ebp - 0xc]
push eax
lea eax, [ebp - 0x54]
push eax
lea eax, [ebp - 0x10]
push eax
push esi
push 0x1001304
push dword [ebp - 8]
mov dword [ebp - 0xc], edi
call ebx
cmp eax, esi
jne 0x10026e2
cmp dword [ebp - 0x10], 3
jne 0x10026e2
cmp dword [ebp - 0xc], edi
jne 0x10026e2
lea eax, [ebp - 0x44]
push eax
call dword [sym.imp.KERNEL32.dll_GetSystemTime]
lea eax, [ebp - 0x54]
push eax
call fcn.010022eb
mov edi, eax
lea eax, [ebp - 0x44]
push eax
mov dword [ebp - 0x14], edx
call fcn.010022eb
cmp edx, dword [ebp - 0x14]
jb 0x10026e2
ja 0x100256e
cmp eax, edi
jbe 0x10026e2
sub eax, edi
sbb edx, dword [ebp - 0x14]
push esi
push 0x989680
push edx
push eax
call fcn.01003080
cmp edx, esi
mov ecx, dword [ebp + 8]
ja 0x10026e2
jb 0x1002595
cmp eax, ecx
jae 0x10026e2
lea eax, [ebp - 0xc]
push eax
push esi
lea eax, [ebp - 0x10]
push eax
push esi
mov edi, 0x1001302
push edi
push dword [ebp - 8]
call ebx
test eax, eax
jne 0x10026e2
cmp dword [ebp - 0x10], 1
jne 0x10026e2
mov eax, dword [ebp - 0xc]
cmp eax, esi
jbe 0x10026e2
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 - 4], eax
je 0x10026e2
lea eax, [ebp - 0xc]
push eax
push dword [ebp - 4]
push esi
push esi
push edi
push dword [ebp - 8]
call ebx
test eax, eax
jne 0x1002601
push dword [ebp - 4]
call fcn.0100229a
test eax, eax
jne 0x1002615
push dword [ebp - 4]
push esi
call dword [sym.imp.KERNEL32.dll_GetProcessHeap]
push eax
call dword [sym.imp.KERNEL32.dll_HeapFree]
mov dword [ebp - 4], esi
cmp dword [ebp - 4], esi
je 0x10026e2
lea eax, [ebp - 0x24]
push eax
lea eax, [ebp - 0x18]
push eax
lea eax, [ebp - 0x158]
push eax
call fcn.01002433
test eax, eax
je 0x10026ce
lea eax, [ebp - 0xc]
push eax
lea eax, [ebp - 0x34]
push eax
lea eax, [ebp - 0x10]
push eax
push esi
push 0x10012f8
push dword [ebp - 8]
call ebx
test eax, eax
jne 0x10026ce
cmp dword [ebp - 0x10], 3
jne 0x10026ce
mov edx, dword [ebp - 0x18]
mov ecx, dword [ebp - 0x14]
mov edi, dword [ebp - 0x24]
xor esi, esi
or eax, edx
mov edx, dword [ebp - 0x20]
xor ebx, ebx
or ecx, esi
or esi, edi
or edx, ebx
cmp eax, dword [ebp - 0x34]
jne 0x10026cc
cmp ecx, dword [ebp - 0x30]
jne 0x10026cc
cmp esi, dword [ebp - 0x2c]
jne 0x10026cc
cmp edx, dword [ebp - 0x28]
jne 0x10026cc
lea eax, [ebp + 8]
push eax
lea eax, [ebp - 0x158]
push eax
call fcn.01002307
test eax, eax
je 0x10026cc
lea eax, [ebp - 0xc]
push eax
lea eax, [ebp - 0x1c]
push eax
lea eax, [ebp - 0x10]
push eax
xor esi, esi
push esi
push 0x10012ec
push dword [ebp - 8]
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
test eax, eax
jne 0x10026ce
cmp dword [ebp - 0x10], 4
jne 0x10026ce
mov eax, dword [ebp - 0x1c]
cmp eax, dword [ebp + 8]
je 0x10026e2
jmp 0x10026ce
xor esi, esi
push dword [ebp - 4]
push esi
call dword [sym.imp.KERNEL32.dll_GetProcessHeap]
push eax
call dword [sym.imp.KERNEL32.dll_HeapFree]
mov dword [ebp - 4], esi
pop edi
pop ebx
cmp dword [ebp - 8], esi
je 0x10026f2
push dword [ebp - 8]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, dword [ebp - 4]
pop esi
leave
ret 4