Function at 0x10040b60
Capabilities:
Query or enumerate registry key

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
push 0xffffffffffffffff
push 0x10077ec8
mov eax, dword fs:[0]
push eax
sub esp, 0x318
mov eax, dword [0x1009e034]
xor eax, esp
mov dword [esp + 0x310], eax
push ebx
push esi
push edi
mov eax, dword [0x1009e034]
xor eax, esp
push eax
lea eax, [esp + 0x328]
mov dword fs:[0], eax
mov dword [esp + 0x18], ecx
mov eax, dword [ebp + 8]
xor ebx, ebx
mov dword [esp + 0x44], ebx
push eax
lea ecx, [esp + 0x110]
mov dword [esp + 0x38], eax
mov dword [esp + 0x14], ebx
mov dword [esp + 0x110], ebx
call fcn.1005cd10
mov dword [esp + 0x330], ebx
mov edi, dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov esi, dword [sym.imp.MSVCR110.dll_void___cdecl_operator_delete_void__]
mov eax, dword [esp + 0x110]
mov ecx, dword [esp + 0x10c]
mov dword [esp + 0x14], 1
test ecx, ecx
je 0x10041497
test eax, eax
js 0x10041490
mov ecx, dword [esp + 0x34]
lea eax, [esp + 0x114]
push eax
lea eax, [esp + 0xc0]
push eax
mov dword [esp + 0xc4], 0
call fcn.1005c530
mov edx, dword [esp + 0xbc]
xor eax, eax
mov dword [esp + 0x38], 0
mov dword [esp + 0x3c], eax
test edx, edx
je 0x10040cd1
cmp byte [esp + 0xd8], al
mov eax, 0x100
mov ecx, 0x200
cmovne ecx, eax
or ecx, 0x20019
test eax, ecx
movzx eax, byte [esp + 0x40]
cmovne eax, dword [esp + 0x14]
mov byte [esp + 0x40], al
lea eax, [esp + 0xc0]
test cl, 0x26
je 0x10040ca9
cmp dword [esp + 0xd4], 8
lea ebx, [esp + 0xfc]
cmovae eax, dword [esp + 0xc0]
push ebx
lea ebx, [esp + 0x3c]
push ebx
push 0
push ecx
push 0
push 0
push 0
push eax
push edx
call dword [sym.imp.ADVAPI32.dll_RegCreateKeyExW]
jmp 0x10040cc9
cmp dword [esp + 0xd4], 8
lea ebx, [esp + 0x38]
cmovae eax, dword [esp + 0xc0]
push ebx
push ecx
push 0
push eax
push edx
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
mov ebx, dword [esp + 0x10]
mov eax, dword [esp + 0x3c]
mov byte [esp + 0x330], 2
cmp dword [esp + 0x38], 0
jne 0x10040d67
test eax, eax
je 0x10040d0a
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, dword [esp + 0x38]
mov dword [esp + 0x3c], 0
test eax, eax
je 0x10040d0a
push eax
call edi
mov dword [esp + 0x38], 0
mov byte [esp + 0x330], 0
cmp dword [esp + 0xf0], 8
jb 0x10040d28
push dword [esp + 0xdc]
call esi
add esp, 4
xor eax, eax
cmp dword [esp + 0xd4], 8
mov dword [esp + 0xf0], 7
mov dword [esp + 0xec], 0
mov word [esp + 0xdc], ax
jb 0x10041422
push dword [esp + 0xc0]
call esi
add esp, 4
jmp 0x10041422
push str.DefaultIcon
lea eax, [esp + 0x88]
push eax
lea ecx, [esp + 0xc4]
mov dword [esp + 0x8c], 0
call fcn.1005c530
mov edx, dword [esp + 0x84]
mov dword [esp + 0x48], 0
mov dword [esp + 0x4c], 0
test edx, edx
je 0x10040e35
cmp byte [esp + 0xa0], 0
mov eax, 0x100
mov ecx, 0x200
cmovne ecx, eax
or ecx, 0x20019
test eax, ecx
movzx eax, byte [esp + 0x50]
cmovne eax, dword [esp + 0x14]
mov byte [esp + 0x50], al
lea eax, [esp + 0x88]
test cl, 0x26
je 0x10040e11
cmp dword [esp + 0x9c], 8
lea ebx, [esp + 0xf8]
cmovae eax, dword [esp + 0x88]
push ebx
lea ebx, [esp + 0x4c]
push ebx
push 0
push ecx
push 0
push 0
push 0
push eax
push edx
call dword [sym.imp.ADVAPI32.dll_RegCreateKeyExW]
jmp 0x10040e31
cmp dword [esp + 0x9c], 8
lea ebx, [esp + 0x48]
cmovae eax, dword [esp + 0x88]
push ebx
push ecx
push 0
push eax
push edx
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
mov ebx, dword [esp + 0x10]
cmp dword [esp + 0x48], 0
je 0x10040eac
xor eax, eax
mov dword [esp + 0x80], 7
mov dword [esp + 0x7c], 0
mov word [esp + 0x6c], ax
lea eax, [esp + 0x6c]
push eax
push 0x1007d0cc
lea ecx, [esp + 0x50]
mov byte [esp + 0x338], 5
call fcn.1005cb10
cmp dword [esp + 0x7c], 0
je 0x10040e99
lea ecx, [esp + 0x6c]
call fcn.100488e0
test al, al
jne 0x10040e99
push 0
lea eax, [esp + 0x88]
push eax
push ecx
mov ecx, dword [esp + 0x24]
call fcn.1004bcb0
cmp dword [esp + 0x80], 8
jb 0x10040eac
push dword [esp + 0x6c]
call esi
add esp, 4
mov eax, dword [esp + 0x4c]
test eax, eax
je 0x10040ec3
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov dword [esp + 0x4c], 0
mov eax, dword [esp + 0x48]
test eax, eax
je 0x10040ed6
push eax
call edi
mov dword [esp + 0x48], 0
mov byte [esp + 0x330], 2
cmp dword [esp + 0xb8], 8
jb 0x10040ef4
push dword [esp + 0xa4]
call esi
add esp, 4
xor eax, eax
cmp dword [esp + 0x9c], 8
mov dword [esp + 0xb8], 7
mov dword [esp + 0xb4], 0
mov word [esp + 0xa4], ax
jb 0x10040f2a
push dword [esp + 0x88]
call esi
add esp, 4
push str.InprocServer
lea eax, [esp + 0x88]
push eax
lea ecx, [esp + 0xc4]
mov dword [esp + 0x8c], 0
call fcn.1005c530
mov edx, dword [esp + 0x84]
mov dword [esp + 0x54], 0
mov dword [esp + 0x58], 0
test edx, edx
je 0x10040ffe
cmp byte [esp + 0xa0], 0
mov eax, 0x100
mov ecx, 0x200
cmovne ecx, eax
or ecx, 0x20019
test eax, ecx
movzx eax, byte [esp + 0x5c]
cmovne eax, dword [esp + 0x14]
mov byte [esp + 0x5c], al
lea eax, [esp + 0x88]
test cl, 0x26
je 0x10040fda
cmp dword [esp + 0x9c], 8
lea edi, [esp + 0x100]
cmovae eax, dword [esp + 0x88]
push edi
lea edi, [esp + 0x58]
push edi
push 0
push ecx
push 0
push 0
push 0
push eax
push edx
call dword [sym.imp.ADVAPI32.dll_RegCreateKeyExW]
mov edi, dword [sym.imp.ADVAPI32.dll_RegCloseKey]
jmp 0x10040ffe
cmp dword [esp + 0x9c], 8
lea ebx, [esp + 0x54]
cmovae eax, dword [esp + 0x88]
push ebx
push ecx
push 0
push eax
push edx
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
mov ebx, dword [esp + 0x10]
cmp dword [esp + 0x54], 0
je 0x100410ee
xor eax, eax
mov dword [esp + 0x80], 7
mov dword [esp + 0x7c], 0
mov word [esp + 0x6c], ax
lea eax, [esp + 0x6c]
push eax
push 0x1007d0cc
lea ecx, [esp + 0x5c]
mov byte [esp + 0x338], 8
call fcn.1005cb10
cmp dword [esp + 0x7c], 0
je 0x10041093
xor eax, eax
push eax
push 0x1007d0cc
lea ecx, [esp + 0x24]
mov dword [esp + 0x38], 7
mov dword [esp + 0x34], 0
mov word [esp + 0x24], ax
call fcn.10003de0
mov byte [esp + 0x330], 9
or ebx, 1
lea edx, [esp + 0x1c]
lea ecx, [esp + 0x6c]
mov dword [esp + 0x10], ebx
mov dword [esp + 0x44], ebx
call fcn.10048b80
test al, al
jne 0x10041093
mov bl, 1
jmp 0x10041095
xor bl, bl
mov dword [esp + 0x330], 8
mov eax, dword [esp + 0x10]
test al, 1
je 0x100410bf
and eax, 0xfffffffe
cmp dword [esp + 0x30], 8
mov dword [esp + 0x10], eax
jb 0x100410bf
push dword [esp + 0x1c]
call esi
add esp, 4
test bl, bl
je 0x100410d7
push 0
lea eax, [esp + 0x88]
push eax
push ecx
mov ecx, dword [esp + 0x24]
call fcn.1004bcb0
cmp dword [esp + 0x80], 8
jb 0x100410ea
push dword [esp + 0x6c]
call esi
add esp, 4
mov ebx, dword [esp + 0x10]
mov eax, dword [esp + 0x58]
test eax, eax
je 0x10041105
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov dword [esp + 0x58], 0
mov eax, dword [esp + 0x54]
test eax, eax
je 0x10041118
push eax
call edi
mov dword [esp + 0x54], 0
mov byte [esp + 0x330], 2
cmp dword [esp + 0xb8], 8
jb 0x10041136
push dword [esp + 0xa4]
call esi
add esp, 4
xor eax, eax
cmp dword [esp + 0x9c], 8
mov dword [esp + 0xb8], 7
mov dword [esp + 0xb4], 0
mov word [esp + 0xa4], ax
jb 0x1004116c
push dword [esp + 0x88]
call esi
add esp, 4
push str.InprocServer32
lea eax, [esp + 0x88]
push eax
lea ecx, [esp + 0xc4]
mov dword [esp + 0x8c], 0
call fcn.1005c530
mov edx, dword [esp + 0x84]
mov dword [esp + 0x60], 0
mov dword [esp + 0x64], 0
test edx, edx
je 0x10041240
cmp byte [esp + 0xa0], 0
mov eax, 0x100
mov ecx, 0x200
cmovne ecx, eax
or ecx, 0x20019
test eax, ecx
movzx eax, byte [esp + 0x68]
cmovne eax, dword [esp + 0x14]
mov byte [esp + 0x68], al
lea eax, [esp + 0x88]
test cl, 0x26
je 0x1004121c
cmp dword [esp + 0x9c], 8
lea edi, [esp + 0xf4]
cmovae eax, dword [esp + 0x88]
push edi
lea edi, [esp + 0x64]
push edi
push 0
push ecx
push 0
push 0
push 0
push eax
push edx
call dword [sym.imp.ADVAPI32.dll_RegCreateKeyExW]
mov edi, dword [sym.imp.ADVAPI32.dll_RegCloseKey]
jmp 0x10041240
cmp dword [esp + 0x9c], 8
lea ebx, [esp + 0x60]
cmovae eax, dword [esp + 0x88]
push ebx
push ecx
push 0
push eax
push edx
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
mov ebx, dword [esp + 0x10]
cmp dword [esp + 0x60], 0
je 0x1004132c
xor eax, eax
mov dword [esp + 0x80], 7
mov dword [esp + 0x7c], 0
mov word [esp + 0x6c], ax
lea eax, [esp + 0x6c]
push eax
push 0x1007d0cc
lea ecx, [esp + 0x68]
mov byte [esp + 0x338], 0xc
call fcn.1005cb10
cmp dword [esp + 0x7c], 0
je 0x100412d5
xor eax, eax
push eax
push 0x1007d0cc
lea ecx, [esp + 0x24]
mov dword [esp + 0x38], 7
mov dword [esp + 0x34], 0
mov word [esp + 0x24], ax
call fcn.10003de0
mov byte [esp + 0x330], 0xd
or ebx, 2
lea edx, [esp + 0x1c]
lea ecx, [esp + 0x6c]
mov dword [esp + 0x10], ebx
mov dword [esp + 0x44], ebx
call fcn.10048b80
test al, al
jne 0x100412d5
mov bl, 1
jmp 0x100412d7
xor bl, bl
mov dword [esp + 0x330], 0xc
mov eax, dword [esp + 0x10]
test al, 2
je 0x10041301
and eax, 0xfffffffd
cmp dword [esp + 0x30], 8
mov dword [esp + 0x10], eax
jb 0x10041301
push dword [esp + 0x1c]
call esi
add esp, 4
test bl, bl
je 0x10041319
push 0
lea eax, [esp + 0x88]
push eax
push ecx
mov ecx, dword [esp + 0x24]
call fcn.1004bcb0
cmp dword [esp + 0x80], 8
jb 0x1004132c
push dword [esp + 0x6c]
call esi
add esp, 4
mov eax, dword [esp + 0x64]
mov ebx, dword [sym.imp.KERNEL32.dll_CloseHandle]
test eax, eax
je 0x10041345
push eax
call ebx
mov dword [esp + 0x64], 0
mov eax, dword [esp + 0x60]
test eax, eax
je 0x10041358
push eax
call edi
mov dword [esp + 0x60], 0
cmp dword [esp + 0xb8], 8
jb 0x1004136e
push dword [esp + 0xa4]
call esi
add esp, 4
xor eax, eax
cmp dword [esp + 0x9c], 8
mov dword [esp + 0xb8], 7
mov dword [esp + 0xb4], 0
mov word [esp + 0xa4], ax
jb 0x100413a4
push dword [esp + 0x88]
call esi
add esp, 4
mov eax, dword [esp + 0x3c]
test eax, eax
je 0x100413b7
push eax
call ebx
mov dword [esp + 0x3c], 0
mov eax, dword [esp + 0x38]
test eax, eax
je 0x100413ca
push eax
call edi
mov dword [esp + 0x38], 0
mov byte [esp + 0x330], 0
cmp dword [esp + 0xf0], 8
jb 0x100413e8
push dword [esp + 0xdc]
call esi
add esp, 4
xor eax, eax
cmp dword [esp + 0xd4], 8
mov dword [esp + 0xf0], 7
mov dword [esp + 0xec], 0
mov word [esp + 0xdc], ax
jb 0x1004141e
push dword [esp + 0xc0]
call esi
add esp, 4
mov ebx, dword [esp + 0x10]
mov eax, dword [esp + 0x110]
mov ecx, dword [esp + 0x10c]
dec eax
mov dword [esp + 0x110], eax
test ecx, ecx
je 0x10041481
test eax, eax
js 0x10041481
lea edx, [esp + 0x104]
push edx
push 0
push 0
push 0
lea edx, [esp + 0x54]
push edx
lea edx, [esp + 0x128]
push edx
push eax
push ecx
mov dword [esp + 0x64], 0x103
call dword [sym.imp.ADVAPI32.dll_RegEnumKeyExW]
mov ecx, dword [esp + 0x10c]
test eax, eax
mov eax, dword [esp + 0x110]
je 0x10040bf2
xor edx, edx
mov word [esp + 0x114], dx
jmp 0x10040bf2
test ecx, ecx
je 0x10041497
push ecx
call edi
mov ecx, dword [esp + 0x328]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [esp + 0x310]
xor ecx, esp
call fcn.1006e4e6
mov esp, ebp
pop ebp
ret 4