Function at 0x100287f
Capabilities:
Link many functions at runtime
Query or enumerate registry key
Query or enumerate registry value

Disassembly:
push ebp
mov eax, 0x1a9c
lea ebp, [esp - 0x1a1c]
call fcn.01003b20
mov eax, dword [0x1009040]
or dword [ebp - 0x40], 0xffffffff
push ebx
xor ebx, ebx
cmp dword [0x100a084], 5
push esi
mov dword [ebp + 0x1a18], eax
push edi
mov dword [ebp - 0x14], 0x104
mov dword [ebp - 0x5c], ebx
mov dword [ebp - 0x2c], ebx
mov dword [ebp - 0x24], ebx
mov dword [ebp - 0x18], ebx
mov dword [ebp - 0x6c], ebx
mov dword [ebp - 0x4c], ebx
mov dword [ebp - 0x44], ebx
mov dword [ebp - 0x30], ebx
mov dword [ebp - 0x48], ebx
mov dword [ebp - 0x60], ebx
mov dword [ebp - 0x28], ebx
jne 0x1002937
mov eax, dword [0x100a088]
cmp eax, ebx
jne 0x10028f2
push 0xa
pop ecx
mov esi, 0x1001430
lea edi, [ebp + 0x1810]
rep movsd dword es:[edi], dword [esi]
movsb byte es:[edi], byte [esi]
jmp 0x1002947
cmp eax, 1
jne 0x100290b
push 9
pop ecx
mov esi, 0x1001408
lea edi, [ebp + 0x1810]
rep movsd dword es:[edi], dword [esi]
movsw word es:[edi], word [esi]
jmp 0x10028ef
cmp eax, 2
jne 0x1002937
cmp byte [0x100a11a], 1
jne 0x1002928
push 0xd
mov esi, 0x10013d4
lea edi, [ebp + 0x1810]
jmp 0x1002944
push 0xc
mov esi, 0x10013a4
lea edi, [ebp + 0x1810]
jmp 0x1002944
push 9
mov esi, 0x1001380
lea edi, [ebp + 0x1810]
pop ecx
rep movsd dword es:[edi], dword [esi]
lea eax, [ebp - 0x5c]
push eax
push 0x20019
push ebx
lea eax, [ebp + 0x1810]
push eax
push 0x80000002
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
test eax, eax
mov esi, dword [sym.imp.KERNEL32.dll_GetProcAddress]
jne 0x1003095
push 0x1001370
call dword [sym.imp.KERNEL32.dll_LoadLibraryA]
cmp eax, ebx
mov dword [ebp - 0x48], eax
je 0x1003095
push 0x1001364
call dword [sym.imp.KERNEL32.dll_LoadLibraryA]
mov edi, eax
cmp edi, ebx
mov dword [ebp - 0x60], edi
je 0x1003095
push 0x1001354
call dword [sym.imp.KERNEL32.dll_LoadLibraryA]
cmp eax, ebx
mov dword [ebp - 0x28], eax
je 0x1003095
push 0x1001344
push dword [ebp - 0x48]
call esi
push 0x1001328
push edi
mov dword [0x1009f48], eax
call esi
push 0x100130c
push edi
mov dword [0x1009f50], eax
call esi
push 0x10012e8
push edi
mov dword [0x1009c08], eax
call esi
push 0x10012c4
push edi
mov dword [0x1009e28], eax
call esi
push 0x10012a4
push edi
mov dword [0x1009f4c], eax
call esi
push 0x1001280
push edi
mov dword [0x1009e30], eax
call esi
push 0x100126c
push dword [ebp - 0x28]
mov dword [0x1009f44], eax
call esi
cmp eax, ebx
mov dword [0x1009e2c], eax
jne 0x1002a3c
push 0x1001250
push dword [ebp - 0x28]
call esi
cmp eax, ebx
mov dword [0x1009e2c], eax
je 0x1003095
push ebx
push 0x1009030
lea eax, [ebp - 0x4c]
push eax
call dword [0x1009f50]
push 0x1001248
call dword [sym.imp.KERNEL32.dll_LoadLibraryA]
mov edi, eax
cmp edi, ebx
mov dword [ebp - 0x30], edi
je 0x1003095
push 3
push edi
call esi
cmp eax, ebx
je 0x1003095
push ebx
call eax
cmp eax, ebx
mov dword [ebp - 0x44], eax
je 0x1003095
push 0x1001234
push edi
call esi
cmp eax, ebx
mov dword [ebp - 0x70], eax
je 0x1003095
lea eax, [ebp - 0x58]
push eax
push ebx
push ebx
push ebx
lea eax, [ebp - 0x14]
push eax
lea eax, [ebp + 0x10f4]
push eax
mov dword [ebp - 0x40], ebx
mov dword [ebp - 0x50], ebx
push ebx
jmp 0x1003084
xor eax, eax
mov cl, byte [ebp + eax + 0x1810]
mov byte [ebp + eax + 0x1400], cl
inc eax
cmp cl, bl
jne 0x1002ab2
lea eax, [ebp + 0x10f4]
mov edx, eax
mov cl, byte [eax]
inc eax
cmp cl, bl
jne 0x1002acd
lea edi, [ebp + 0x1400]
sub eax, edx
dec edi
mov cl, byte [edi + 1]
inc edi
cmp cl, bl
jne 0x1002add
mov ecx, eax
shr ecx, 2
mov esi, edx
rep movsd dword es:[edi], dword [esi]
mov ecx, eax
and ecx, 3
rep movsb byte es:[edi], byte [esi]
lea edi, [ebp + 0x1400]
dec edi
mov al, byte [edi + 1]
inc edi
cmp al, bl
jne 0x1002afc
lea eax, [ebp - 0x2c]
push eax
push 0x20019
push ebx
lea eax, [ebp + 0x1400]
push eax
mov esi, 0x10011c4
push 0x80000002
movsw word es:[edi], word [esi]
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
test eax, eax
jne 0x1003095
lea eax, [ebp - 0x58]
push eax
push ebx
push ebx
push ebx
lea eax, [ebp - 0x14]
push eax
lea eax, [ebp + 0x11f8]
push eax
push ebx
push dword [ebp - 0x2c]
mov dword [ebp - 0x68], ebx
mov dword [ebp - 0x14], 0x104
call dword [sym.imp.ADVAPI32.dll_RegEnumKeyExA]
test eax, eax
jne 0x1003065
mov dword [ebp - 0x6c], 1
xor eax, eax
mov cl, byte [ebp + eax + 0x1400]
mov byte [ebp + eax + 0x170c], cl
inc eax
cmp cl, bl
jne 0x1002b66
lea eax, [ebp + 0x11f8]
mov edx, eax
mov cl, byte [eax]
inc eax
cmp cl, bl
jne 0x1002b81
lea edi, [ebp + 0x170c]
sub eax, edx
dec edi
mov cl, byte [edi + 1]
inc edi
cmp cl, bl
jne 0x1002b91
mov ecx, eax
shr ecx, 2
mov esi, edx
rep movsd dword es:[edi], dword [esi]
mov ecx, eax
and ecx, 3
rep movsb byte es:[edi], byte [esi]
lea edi, [ebp + 0x170c]
dec edi
mov al, byte [edi + 1]
inc edi
cmp al, bl
jne 0x1002bb0
mov esi, 0x1001228
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
movsw word es:[edi], word [esi]
movsb byte es:[edi], byte [esi]
xor eax, eax
mov cl, byte [ebp + eax + 0x11f8]
mov byte [ebp + eax - 0x10], cl
inc eax
cmp cl, bl
jne 0x1002bc4
lea edi, [ebp - 0x10]
dec edi
mov al, byte [edi + 1]
inc edi
cmp al, bl
jne 0x1002bd8
push 0x1001224
mov esi, 0x1001220
push ebx
movsd dword es:[edi], dword [esi]
call fcn.0100263a
lea eax, [ebp - 0x10]
push eax
push ebx
call fcn.0100263a
lea eax, [ebp - 0x24]
push eax
push 0x20019
push ebx
lea eax, [ebp + 0x170c]
push eax
push 0x80000002
mov dword [ebp - 0x34], ebx
mov dword [ebp - 0x3c], ebx
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
test eax, eax
jne 0x100301b
lea eax, [ebp - 0x58]
push eax
push ebx
push ebx
push ebx
lea eax, [ebp - 0x14]
push eax
lea eax, [ebp + 0x1504]
push eax
mov dword [ebp - 0x20], ebx
mov dword [ebp - 0x14], 0x104
push ebx
jmp 0x1002e08
xor eax, eax
mov cl, byte [ebp + eax + 0x170c]
mov byte [ebp + eax + 0x1608], cl
inc eax
cmp cl, bl
jne 0x1002c49
lea eax, [ebp + 0x1504]
mov esi, eax
mov cl, byte [eax]
inc eax
cmp cl, bl
jne 0x1002c64
lea edi, [ebp + 0x1608]
sub eax, esi
dec edi
mov cl, byte [edi + 1]
inc edi
cmp cl, bl
jne 0x1002c74
mov ecx, eax
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, eax
lea eax, [ebp - 0x18]
push eax
push 0x20019
push ebx
lea eax, [ebp + 0x1608]
push eax
and ecx, 3
push 0x80000002
rep movsb byte es:[edi], byte [esi]
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
test eax, eax
jne 0x1002de9
lea eax, [ebp - 0x1c]
push eax
lea eax, [ebp + 0x12fc]
push eax
lea eax, [ebp - 0x38]
push eax
push ebx
push 0x1001214
push dword [ebp - 0x18]
mov dword [ebp - 0x1c], 0x104
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
test eax, eax
jne 0x1003095
lea eax, [ebp - 0x1c]
push eax
lea eax, [ebp + 0x1914]
push eax
lea eax, [ebp - 0x38]
push eax
push ebx
push 0x1001208
push dword [ebp - 0x18]
mov dword [ebp - 0x1c], 0x104
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
test eax, eax
jne 0x1003095
lea eax, [ebp - 0x1c]
push eax
lea eax, [ebp + 0xff0]
push eax
lea eax, [ebp - 0x38]
push eax
push ebx
push 0x1001200
push dword [ebp - 0x18]
mov dword [ebp - 0x1c], 0x104
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
test eax, eax
jne 0x1002df3
lea eax, [ebp - 0x80]
push eax
lea eax, [ebp + 0xff0]
push eax
call fcn.01002209
test eax, eax
je 0x1002de9
lea eax, [ebp + 0x1914]
push eax
lea eax, [ebp + 0x12fc]
push eax
lea eax, [ebp + 0x1914]
push eax
call fcn.01001fb1
lea eax, [ebp - 0x78]
push eax
lea eax, [ebp + 0x1914]
push eax
call fcn.01002191
test eax, eax
je 0x1002de9
mov eax, dword [ebp - 0x74]
cmp eax, dword [ebp - 0x7c]
ja 0x1002de9
jb 0x1002d8d
mov eax, dword [ebp - 0x78]
cmp eax, dword [ebp - 0x80]
jae 0x1002de9
cmp dword [ebp - 0x34], ebx
jne 0x1002db0
push ebx
push 0xff0d
call fcn.0100263a
cmp dword [0x10096c8], ebx
je 0x1002de2
push ebx
push 0xff04
call fcn.0100263a
cmp dword [0x10096c8], ebx
je 0x1002de2
push 0x10011fc
push ebx
call fcn.0100263a
lea eax, [ebp + 0x1914]
push eax
call fcn.01003bb5
pop ecx
push eax
push ebx
call fcn.0100263a
push 0x1001224
push ebx
call fcn.0100263a
mov dword [ebp - 0x34], 1
inc dword [ebp - 0x20]
mov dword [ebp - 0x14], 0x104
lea eax, [ebp - 0x58]
push eax
push ebx
push ebx
push ebx
lea eax, [ebp - 0x14]
push eax
lea eax, [ebp + 0x1504]
push eax
push dword [ebp - 0x20]
push dword [ebp - 0x24]
call dword [sym.imp.ADVAPI32.dll_RegEnumKeyExA]
test eax, eax
je 0x1002c47
lea eax, [ebp - 0x58]
push eax
push ebx
push ebx
push ebx
lea eax, [ebp - 0x14]
push eax
lea eax, [ebp + 0x1504]
push eax
mov dword [ebp - 0x20], ebx
mov dword [ebp - 0x14], 0x104
push ebx
jmp 0x100300a
xor eax, eax
mov cl, byte [ebp + eax + 0x170c]
mov byte [ebp + eax + 0x1608], cl
inc eax
cmp cl, bl
jne 0x1002e3d
lea eax, [ebp + 0x1504]
mov esi, eax
mov cl, byte [eax]
inc eax
cmp cl, bl
jne 0x1002e58
lea edi, [ebp + 0x1608]
sub eax, esi
dec edi
mov cl, byte [edi + 1]
inc edi
cmp cl, bl
jne 0x1002e68
mov ecx, eax
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, eax
lea eax, [ebp - 0x18]
push eax
push 0x20019
push ebx
lea eax, [ebp + 0x1608]
push eax
and ecx, 3
push 0x80000002
rep movsb byte es:[edi], byte [esi]
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
test eax, eax
jne 0x1002feb
lea eax, [ebp - 0x1c]
push eax
lea eax, [ebp + 0x12fc]
push eax
lea eax, [ebp - 0x38]
push eax
push ebx
push 0x1001214
push dword [ebp - 0x18]
mov dword [ebp - 0x1c], 0x104
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
test eax, eax
jne 0x1003095
lea eax, [ebp - 0x1c]
push eax
lea eax, [ebp + 0x1914]
push eax
lea eax, [ebp - 0x38]
push eax
push ebx
push 0x1001208
push dword [ebp - 0x18]
mov dword [ebp - 0x1c], 0x104
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
test eax, eax
jne 0x1003095
lea eax, [ebp + 0x1914]
push eax
lea eax, [ebp + 0x12fc]
push eax
lea eax, [ebp + 0x1914]
push eax
call fcn.01001fb1
push ebx
lea eax, [ebp + 0x12fc]
push eax
call dword [0x1009e2c]
mov edi, eax
push ebx
lea eax, [ebp + 0x1914]
push eax
call dword [0x1009e2c]
push ebx
push ebx
push 3
push ebx
push 1
mov esi, eax
push 0x80000000
lea eax, [ebp + 0x1914]
push eax
call dword [sym.imp.KERNEL32.dll_CreateFileA]
cmp eax, 0xffffffff
mov dword [ebp - 0x64], eax
je 0x1002ff5
push esi
push dword [ebp - 0x44]
call dword [ebp - 0x70]
test eax, eax
je 0x1002fdd
push esi
push edi
push dword [ebp - 0x64]
push dword [ebp - 0x4c]
call fcn.01002367
test eax, eax
jne 0x1002fdd
cmp dword [ebp - 0x34], ebx
jne 0x1002f8c
cmp dword [ebp - 0x3c], ebx
jne 0x1002f8c
push ebx
push 0xff0d
call fcn.0100263a
cmp dword [0x10096c8], ebx
je 0x1002fd6
cmp dword [ebp - 0x3c], ebx
jne 0x1002fa4
push ebx
push 0xff0c
call fcn.0100263a
cmp dword [0x10096c8], ebx
je 0x1002fd6
push 0x10011fc
push ebx
call fcn.0100263a
lea eax, [ebp + 0x1914]
push eax
call fcn.01003bb5
pop ecx
push eax
push ebx
call fcn.0100263a
push 0x1001224
push ebx
call fcn.0100263a
mov dword [ebp - 0x3c], 1
cmp dword [ebp - 0x64], ebx
je 0x1002feb
push dword [ebp - 0x64]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
inc dword [ebp - 0x20]
mov dword [ebp - 0x14], 0x104
lea eax, [ebp - 0x58]
push eax
push ebx
push ebx
push ebx
lea eax, [ebp - 0x14]
push eax
lea eax, [ebp + 0x1504]
push eax
push dword [ebp - 0x20]
push dword [ebp - 0x24]
call dword [sym.imp.ADVAPI32.dll_RegEnumKeyExA]
test eax, eax
je 0x1002e3b
inc dword [ebp - 0x68]
cmp dword [ebp - 0x34], ebx
mov dword [ebp - 0x14], 0x104
jne 0x100303c
cmp dword [ebp - 0x3c], ebx
jne 0x100303c
push ebx
push 0xff05
call fcn.0100263a
jmp 0x100303f
inc dword [ebp - 0x40]
lea eax, [ebp - 0x58]
push eax
push ebx
push ebx
push ebx
lea eax, [ebp - 0x14]
push eax
lea eax, [ebp + 0x11f8]
push eax
push dword [ebp - 0x68]
push dword [ebp - 0x2c]
call dword [sym.imp.ADVAPI32.dll_RegEnumKeyExA]
test eax, eax
je 0x1002b64
inc dword [ebp - 0x50]
lea eax, [ebp - 0x58]
push eax
push ebx
push ebx
push ebx
lea eax, [ebp - 0x14]
push eax
lea eax, [ebp + 0x10f4]
push eax
push dword [ebp - 0x50]
mov dword [ebp - 0x14], 0x104
push dword [ebp - 0x5c]
call dword [sym.imp.ADVAPI32.dll_RegEnumKeyExA]
test eax, eax
je 0x1002ab0
cmp dword [ebp - 0x2c], ebx
je 0x10030a3
push dword [ebp - 0x2c]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
cmp dword [ebp - 0x24], ebx
je 0x10030b1
push dword [ebp - 0x24]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
cmp dword [ebp - 0x18], ebx
je 0x10030bf
push dword [ebp - 0x18]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
cmp dword [ebp - 0x44], ebx
je 0x10030d8
push 4
push dword [ebp - 0x30]
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
cmp eax, ebx
je 0x10030d8
push dword [ebp - 0x44]
call eax
cmp dword [ebp - 0x4c], ebx
je 0x10030e7
push ebx
push dword [ebp - 0x4c]
call dword [0x1009c08]
cmp dword [ebp - 0x30], ebx
mov esi, dword [sym.imp.KERNEL32.dll_FreeLibrary]
je 0x10030f7
push dword [ebp - 0x30]
call esi
cmp dword [ebp - 0x48], ebx
je 0x1003101
push dword [ebp - 0x48]
call esi
cmp dword [ebp - 0x60], ebx
je 0x100310b
push dword [ebp - 0x60]
call esi
cmp dword [ebp - 0x28], ebx
je 0x1003115
push dword [ebp - 0x28]
call esi
cmp dword [ebp - 0x6c], ebx
pop edi
pop esi
pop ebx
jne 0x1003122
push 0xfffffffffffffffe
pop eax
jmp 0x1003125
mov eax, dword [ebp - 0x40]
mov ecx, dword [ebp + 0x1a18]
call fcn.010033d8
add ebp, 0x1a1c
leave
ret