Function at 0x1000ca80
Capabilities:
Query or enumerate registry key
Query or enumerate registry value

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0x4f4
mov eax, dword [0x100a20a4]
xor eax, esp
mov dword [esp + 0x4f0], eax
push ebx
mov ebx, ecx
push esi
push edi
mov dword [esp + 0x24], ebx
mov dword [ebx + 0x1c], 0
mov dword [ebx + 0x24], 0
call dword [sym.imp.KERNEL32.dll_GetCurrentThreadId]
mov dword [ebx + 0x20], eax
mov eax, dword [ebp + 8]
mov dword [ebx + 0x3570], eax
lea eax, [ebx + 4]
mov dword [ebx], 0x1000100c
mov dword [ebx + 0x28], 1
mov dword [ebx + 0x2c], 0
mov dword [ebx + 0x3458], 0
mov dword [ebx + 0x24], ebx
push eax
mov dword [eax + 0x18], 1
call dword [sym.imp.KERNEL32.dll_InitializeCriticalSection]
lea eax, [ebx + 0x3420]
mov ecx, 0xc
mov dword [eax - 0x18f0], 0
lea eax, [eax + 4]
mov dword [eax - 4], 0
sub ecx, 1
jne 0x1000cb02
push 0x1b00
push ecx
lea eax, [ebx + 0x30]
push eax
call sub.msvcrt.dll_memset
add esp, 0xc
lea eax, [esp + 0x4c]
push 0x1a4
push 0
push eax
call sub.msvcrt.dll_memset
add esp, 8
mov dword [esp + 0x4c], 0x1a8
lea eax, [esp + 0x4c]
xor edx, edx
xor edi, edi
push eax
call fcn.1001e8d0
add esp, 8
test eax, eax
je 0x1000cc5a
jmp 0x1000cb70
mov eax, dword [esp + 0xec]
test al, 8
jne 0x1000cc41
test al, 1
je 0x1000cc41
test al, 4
je 0x1000cc41
mov eax, dword [ebx + 0x2c]
lea esi, [esp + 0x4c]
mov edx, 0x104
lea ecx, [eax + eax*8]
mov eax, dword [0x10004190]
shl ecx, 6
add ecx, ebx
mov dword [ecx + 0x30], eax
mov eax, dword [0x10004194]
mov dword [ecx + 0x34], eax
mov eax, dword [0x10004198]
mov dword [ecx + 0x38], eax
mov eax, dword [0x1000419c]
mov dword [ecx + 0x3c], eax
lea ecx, [ebx + 0x40]
mov eax, dword [ebx + 0x2c]
lea eax, [eax + eax*8]
shl eax, 6
add dword [eax + ebx + 0x30], edi
mov eax, dword [ebx + 0x2c]
lea eax, [eax + eax*8]
shl eax, 6
add ecx, eax
sub esi, ecx
lea eax, [edx - 0xe5]
test eax, eax
je 0x1000cbfb
mov al, byte [esi + ecx]
test al, al
je 0x1000cbfb
mov byte [ecx], al
inc ecx
sub edx, 1
jne 0x1000cbe0
jmp 0x1000cbff
test edx, edx
jne 0x1000cc00
dec ecx
mov byte [ecx], 0
mov eax, dword [ebx + 0x2c]
lea ecx, [eax + eax*8]
mov eax, dword [esp + 0xec]
shl ecx, 6
mov dword [ecx + ebx + 0x144], eax
mov ecx, dword [ebx + 0x2c]
lea eax, [ecx + ecx*8]
shl eax, 6
mov dword [eax + ebx + 0x268], ecx
mov eax, dword [ebx + 0x2c]
lea eax, [eax + eax*8]
shl eax, 6
mov dword [eax + ebx + 0x148], 1
inc dword [ebx + 0x2c]
push ecx
lea eax, [esp + 0x4c]
inc edi
push eax
mov edx, edi
call fcn.1001e8d0
add esp, 8
test eax, eax
jne 0x1000cb70
push ecx
lea eax, [esp + 0x4c]
xor edx, edx
push eax
xor edi, edi
call fcn.1001e8d0
add esp, 8
test eax, eax
je 0x1000cd7a
jmp 0x1000cc80
mov eax, dword [esp + 0xec]
test al, 8
jne 0x1000cd61
test al, 1
je 0x1000cd61
test al, 4
jne 0x1000cd61
mov eax, dword [ebx + 0x2c]
cmp eax, 0xc
jae 0x1000cd61
lea ecx, [eax + eax*8]
mov edx, 0x104
mov eax, dword [0x10004190]
lea esi, [esp + 0x4c]
shl ecx, 6
add ecx, ebx
mov dword [ecx + 0x30], eax
mov eax, dword [0x10004194]
mov dword [ecx + 0x34], eax
mov eax, dword [0x10004198]
mov dword [ecx + 0x38], eax
mov eax, dword [0x1000419c]
mov dword [ecx + 0x3c], eax
lea ecx, [ebx + 0x40]
mov eax, dword [ebx + 0x2c]
lea eax, [eax + eax*8]
shl eax, 6
add dword [eax + ebx + 0x30], edi
mov eax, dword [ebx + 0x2c]
lea eax, [eax + eax*8]
shl eax, 6
add ecx, eax
sub esi, ecx
lea esp, [esp]
lea eax, [edx - 0xe5]
test eax, eax
je 0x1000cd1b
mov al, byte [esi + ecx]
test al, al
je 0x1000cd1b
mov byte [ecx], al
inc ecx
sub edx, 1
jne 0x1000cd00
jmp 0x1000cd1f
test edx, edx
jne 0x1000cd20
dec ecx
mov byte [ecx], 0
mov eax, dword [ebx + 0x2c]
lea ecx, [eax + eax*8]
mov eax, dword [esp + 0xec]
shl ecx, 6
mov dword [ecx + ebx + 0x144], eax
mov ecx, dword [ebx + 0x2c]
lea eax, [ecx + ecx*8]
shl eax, 6
mov dword [eax + ebx + 0x268], ecx
mov eax, dword [ebx + 0x2c]
lea eax, [eax + eax*8]
shl eax, 6
mov dword [eax + ebx + 0x148], 1
inc dword [ebx + 0x2c]
push ecx
lea eax, [esp + 0x4c]
inc edi
push eax
mov edx, edi
call fcn.1001e8d0
add esp, 8
test eax, eax
jne 0x1000cc80
lea eax, [esp + 0x20]
push eax
push 0x100040dc
push 0x80000002
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyA]
test eax, eax
jne 0x1000d0bc
push 0x100
mov dword [esp + 0x10], eax
lea eax, [esp + 0x2fc]
push eax
push 0
push dword [esp + 0x2c]
call dword [sym.imp.ADVAPI32.dll_RegEnumKeyA]
test eax, eax
jne 0x1000d0b2
lea esp, [esp]
xor edx, edx
mov dword [esp + 0x30], 0
lea ecx, [esp + 0x2f8]
mov dword [esp + 0x18], edx
mov dword [esp + 0x10], edx
lea esp, [esp]
mov al, byte [ecx]
mov ebx, ecx
mov dword [esp + 0x1c], ebx
cmp al, 0x2d
je 0x1000cdfc
lea esp, [esp]
test al, al
je 0x1000ce00
mov al, byte [ecx + 1]
inc ecx
cmp al, 0x2d
jne 0x1000cdf0
test al, al
jne 0x1000ce0a
mov dword [esp + 0x10], 1
jmp 0x1000ce11
lea edi, [ecx + 1]
mov dword [esp + 0x30], edi
dec ecx
xor eax, eax
mov esi, 1
cmp ecx, ebx
jb 0x1000ce68
lea ecx, [ecx]
mov dl, byte [ecx]
mov ebx, eax
mov edi, esi
lea eax, [edx - 0x41]
cmp al, 5
ja 0x1000ce35
movzx eax, dl
sub eax, 0x37
jmp 0x1000ce55
lea eax, [edx - 0x61]
cmp al, 5
ja 0x1000ce44
movzx eax, dl
sub eax, 0x57
jmp 0x1000ce55
lea eax, [edx - 0x30]
cmp al, 9
ja 0x1000d085
movzx eax, dl
sub eax, 0x30
imul eax, edi
dec ecx
shl esi, 4
add eax, ebx
cmp ecx, dword [esp + 0x1c]
jae 0x1000ce20
mov edx, dword [esp + 0x18]
mov ecx, edx
sub ecx, 0
je 0x1000ce8d
sub ecx, 1
je 0x1000ce86
sub ecx, 1
je 0x1000ce7f
mov byte [esp + edx + 0x3d], al
jmp 0x1000ce91
mov word [esp + 0x3e], ax
jmp 0x1000ce91
mov word [esp + 0x3c], ax
jmp 0x1000ce91
mov dword [esp + 0x38], eax
inc edx
mov dword [esp + 0x18], edx
cmp edx, 0xb
je 0x1000ceaf
cmp dword [esp + 0x10], 0
mov ecx, dword [esp + 0x30]
je 0x1000cde0
jmp 0x1000d085
cmp dword [esp + 0x10], 0
je 0x1000d085
lea eax, [esp + 0x2c]
push eax
lea eax, [esp + 0x2fc]
push eax
push dword [esp + 0x28]
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyA]
test eax, eax
jne 0x1000d085
lea eax, [esp + 0x14]
mov dword [esp + 0x14], 0xff
push eax
lea eax, [esp + 0x3fc]
push eax
lea eax, [esp + 0x30]
push eax
push 0
push 0x100040f8
push dword [esp + 0x40]
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
test eax, eax
jne 0x1000d07b
cmp dword [esp + 0x28], 1
jne 0x1000d07b
mov eax, dword [esp + 0x14]
cmp eax, 0x100
jae 0x1000d498
mov byte [esp + eax + 0x3f8], 0
lea eax, [esp + 0x14]
push eax
lea eax, [esp + 0x1f4]
mov dword [esp + 0x18], 0x103
push eax
lea eax, [esp + 0x30]
push eax
push 0
push 0x10004104
push dword [esp + 0x40]
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
test eax, eax
jne 0x1000d07b
mov esi, dword [esp + 0x14]
cmp esi, 0x104
jae 0x1000d498
lea ecx, [esp + 0x38]
mov byte [esp + esi + 0x1f0], al
call fcn.100204a0
test eax, eax
je 0x1000cf99
lea ecx, [esp + 0x1f0]
call fcn.1001eaf0
mov esi, dword [esp + 0x14]
mov edi, eax
jmp 0x1000cf9b
xor edi, edi
cmp dword [esp + 0x28], 1
jne 0x1000d070
test edi, edi
je 0x1000d07b
mov ebx, dword [esp + 0x24]
mov eax, dword [ebx + 0x2c]
cmp eax, 0xc
jae 0x1000d070
cmp esi, 0x104
jae 0x1000d498
lea ecx, [eax + eax*8]
mov byte [esp + esi + 0x1f0], 0
mov eax, dword [esp + 0x38]
lea esi, [esp + 0x1f0]
shl ecx, 6
mov edx, 0x104
add ecx, ebx
mov dword [ecx + 0x30], eax
mov eax, dword [esp + 0x3c]
mov dword [ecx + 0x34], eax
mov eax, dword [esp + 0x40]
mov dword [ecx + 0x38], eax
mov eax, dword [esp + 0x44]
mov dword [ecx + 0x3c], eax
lea ecx, [ebx + 0x40]
mov eax, dword [ebx + 0x2c]
lea eax, [eax + eax*8]
shl eax, 6
add ecx, eax
sub esi, ecx
lea eax, [edx - 1]
test eax, eax
je 0x1000d02a
mov al, byte [esi + ecx]
test al, al
je 0x1000d02a
mov byte [ecx], al
inc ecx
sub edx, 1
jne 0x1000d012
jmp 0x1000d02e
test edx, edx
jne 0x1000d02f
dec ecx
mov byte [ecx], 0
mov eax, dword [ebx + 0x2c]
lea ecx, [eax + eax*8]
mov eax, dword [esp + 0xec]
shl ecx, 6
mov dword [ecx + ebx + 0x144], eax
mov ecx, dword [ebx + 0x2c]
lea eax, [ecx + ecx*8]
shl eax, 6
mov dword [eax + ebx + 0x268], ecx
mov eax, dword [ebx + 0x2c]
lea eax, [eax + eax*8]
shl eax, 6
mov dword [eax + ebx + 0x148], 0
inc dword [ebx + 0x2c]
test edi, edi
je 0x1000d07b
push edi
call dword [sym.imp.GDI32.dll_DeleteDC]
push dword [esp + 0x2c]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov esi, dword [esp + 0xc]
lea eax, [esp + 0x2f8]
push 0x100
push eax
inc esi
push esi
push dword [esp + 0x2c]
mov dword [esp + 0x1c], esi
call dword [sym.imp.ADVAPI32.dll_RegEnumKeyA]
test eax, eax
je 0x1000cdc0
mov ebx, dword [esp + 0x24]
push dword [esp + 0x20]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
cmp dword [ebx + 0x2c], 0
mov dword [esp + 0xc], 0
jbe 0x1000d393
lea esi, [ebx + 0x40]
cmp byte [esi], 0x5c
jne 0x1000d0eb
cmp byte [esi + 1], 0x5c
jne 0x1000d0eb
cmp byte [esi + 2], 0x2e
jne 0x1000d0eb
push 0
push 0
push esi
push 0
jmp 0x1000d0f2
push 0
push 0
push 0
push esi
call dword [sym.imp.GDI32.dll_CreateDCA]
mov edi, eax
lea edx, [esi + 0x22c]
lea eax, [esp + 0x1c]
mov ecx, edi
push eax
lea eax, [esp + 0x34]
push eax
call fcn.1000f0f0
add esp, 8
push edi
call dword [sym.imp.GDI32.dll_DeleteDC]
push 0
push 0
push 0
push 0
push 1
lea edx, [esi - 0x10]
lea ecx, [esp + 0x2c]
lea ebx, [esi + 0x118]
call fcn.1001f7e0
add esp, 0x14
test eax, eax
jns 0x1000d15b
push 0x108
push 0
push ebx
call sub.msvcrt.dll_memset
add esp, 0xc
lea ecx, [esi - 0x10]
call fcn.1000c890
jmp 0x1000d377
mov edx, dword [esp + 0x18]
lea edi, [esi - 0x10]
push ecx
mov ecx, ebx
mov dword [esi + 0x114], 0
call fcn.1000c370
add esp, 4
test eax, eax
js 0x1000d1b4
mov edi, dword [esi + 0x214]
test edi, edi
je 0x1000d1b1
mov ecx, dword [esi + 0x218]
add ecx, 0x50
mov edi, edi
test dword [ecx + 8], 0x400
je 0x1000d1a9
mov edx, dword [ecx]
lea eax, [edx - 0x17]
cmp eax, 1
ja 0x1000d1a9
mov dword [esi + 0x114], edx
add ecx, 0x6c
sub edi, 1
jne 0x1000d190
lea edi, [esi - 0x10]
cmp dword [esi + 0x114], 0
jne 0x1000d1ed
push 0
push ecx
lea eax, [esp + 0x40]
mov edx, esi
push eax
call fcn.1001be50
test eax, eax
js 0x1000d1e3
cmp dword [esp + 0x44], 0x18
jne 0x1000d1e3
mov dword [esi + 0x114], 0x18
jmp 0x1000d1ed
mov dword [esi + 0x114], 0x17
mov eax, dword [esp + 0x18]
cmp dword [eax + 0x1c8], 0
jne 0x1000d216
push 0x108
push 0
push ebx
call sub.msvcrt.dll_memset
add esp, 0xc
mov ecx, edi
call fcn.1000c890
jmp 0x1000d377
mov edx, dword [esi + 0x214]
xor eax, eax
xor ebx, ebx
mov dword [esp + 0x10], eax
test edx, edx
je 0x1000d265
mov ecx, dword [esi + 0x218]
add ecx, 0x50
test dword [ecx + 8], 0x400
je 0x1000d259
mov eax, dword [ecx]
cmp eax, 0x16
je 0x1000d254
add eax, 0xffffffe9
cmp eax, 1
ja 0x1000d259
mov eax, 1
mov dword [esp + 0x10], eax
jmp 0x1000d25d
mov ebx, 1
mov eax, dword [esp + 0x10]
add ecx, 0x6c
sub edx, 1
jne 0x1000d231
push ebx
push eax
push ecx
push dword [esi + 0x114]
lea edi, [esi + 0x10c]
xor edx, edx
push edi
mov ecx, esi
call fcn.1001dea0
mov eax, dword [edi]
test eax, eax
je 0x1000d2fb
shl eax, 4
push eax
push 0x40
call dword [sym.imp.KERNEL32.dll_LocalAlloc]
mov dword [esi + 0x110], eax
test eax, eax
je 0x1000d2ef
push ebx
push dword [esp + 0x14]
mov edx, eax
push ecx
push dword [esi + 0x114]
mov ecx, esi
push edi
call fcn.1001dea0
mov eax, dword [edi]
test eax, eax
jne 0x1000d2fb
mov eax, dword [esi + 0x110]
test eax, eax
je 0x1000d2c7
push eax
call dword [sym.imp.KERNEL32.dll_LocalFree]
push ebx
push dword [esp + 0x14]
mov dword [esi + 0x110], 0
xor edx, edx
push ecx
push dword [esi + 0x114]
mov ecx, esi
push edi
call fcn.1001dea0
mov eax, dword [edi]
test eax, eax
jne 0x1000d284
jmp 0x1000d2f9
mov dword [esi + 0x10c], 0
xor eax, eax
test ebx, ebx
je 0x1000d36e
cmp dword [esi + 0x134], 0
jne 0x1000d36e
cmp dword [esi + 0x1f4], 0x16
je 0x1000d36e
xor edx, edx
test eax, eax
je 0x1000d335
mov ecx, dword [esi + 0x110]
add ecx, 0xc
cmp dword [ecx], 0x16
je 0x1000d331
mov eax, dword [edi]
inc edx
add ecx, 0x10
cmp edx, eax
jb 0x1000d320
jmp 0x1000d335
cmp edx, eax
jb 0x1000d36e
xor edx, edx
cmp dword [esi + 0x214], edx
jbe 0x1000d36e
xor edi, edi
mov ecx, dword [esi + 0x218]
mov eax, dword [ecx + edi + 0x58]
test eax, 0x400
je 0x1000d362
cmp dword [ecx + edi + 0x50], 0x16
jne 0x1000d362
and eax, 0xfffffbff
mov dword [ecx + edi + 0x58], eax
inc edx
add edi, 0x6c
cmp edx, dword [esi + 0x214]
jb 0x1000d341
mov ecx, dword [esp + 0x18]
call fcn.1001f990
mov eax, dword [esp + 0xc]
add esi, 0x240
mov ebx, dword [esp + 0x24]
inc eax
mov dword [esp + 0xc], eax
cmp eax, dword [ebx + 0x2c]
jb 0x1000d0d1
lea eax, [esp + 0xc]
mov dword [ebx + 0x345c], 0
push eax
push 0x10004110
push 0x80000002
mov dword [ebx + 0x3460], 0
mov dword [ebx + 0x3464], 0
mov dword [ebx + 0x3468], 0
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyA]
test eax, eax
jne 0x1000d421
lea eax, [esp + 0x1c]
mov dword [esp + 0x1c], 0x104
push eax
lea esi, [ebx + 0x346c]
push esi
lea eax, [esp + 0x38]
push eax
push 0
push 0x10004140
push dword [esp + 0x20]
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
test eax, eax
jne 0x1000d417
cmp dword [esp + 0x30], 1
jne 0x1000d417
cmp byte [esi], al
je 0x1000d417
mov dword [ebx + 0x3468], 1
push dword [esp + 0xc]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
lea eax, [esp + 0xc]
push eax
push 0x10004148
push 0x80000002
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyA]
test eax, eax
jne 0x1000d47f
lea eax, [esp + 0x1c]
mov dword [esp + 0x1c], 4
push eax
lea eax, [esp + 0x34]
push eax
lea eax, [esp + 0x2c]
push eax
push 0
push 0x1000416c
push dword [esp + 0x20]
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
test eax, eax
jne 0x1000d475
xor ecx, ecx
cmp dword [esp + 0x30], ecx
setne cl
mov dword [ebx + 0x3454], ecx
push dword [esp + 0xc]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov ecx, dword [esp + 0x4fc]
mov eax, ebx
pop edi
pop esi
pop ebx
xor ecx, esp
call fcn.1009b610
mov esp, ebp
pop ebp
ret 4
call fcn.1009b758
int3