Function at 0x10058bd
Capabilities:
Query or enumerate registry key

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0xa78
mov eax, dword [0x1019214]
mov dword [ebp - 4], eax
mov eax, dword [ebp + 0xc]
mov eax, dword [eax]
push ebx
push edi
mov edi, dword [ebp + 8]
xor ebx, ebx
push 0x14
mov dword [ebp - 0xa24], edi
mov dword [ebp - 0xa08], 0x200
mov dword [ebp - 0xa1c], ebx
mov dword [ebp - 0xa20], ebx
mov dword [ebp - 0xa10], eax
call fcn.01009c30
cmp eax, ebx
pop ecx
mov dword [0x10190a4], eax
je 0x1005986
push 0x1b
call fcn.01009c30
cmp eax, ebx
pop ecx
mov dword [0x10190a8], eax
je 0x1005986
push 0x16
call fcn.01009c30
cmp eax, ebx
pop ecx
mov dword [0x10190ac], eax
je 0x1005986
push 0x19
call fcn.01009c30
cmp eax, ebx
pop ecx
mov dword [0x10190b0], eax
je 0x1005986
push 0x1a
call fcn.01009c30
cmp eax, ebx
pop ecx
mov dword [0x10190b4], eax
je 0x1005986
push 0x15
call fcn.01009c30
cmp eax, ebx
pop ecx
mov dword [0x10190b8], eax
je 0x1005986
push 0x17
call fcn.01009c30
cmp eax, ebx
pop ecx
mov dword [0x10190bc], eax
je 0x1005986
push 0x18
call fcn.01009c30
cmp eax, ebx
pop ecx
mov dword [0x10190c0], eax
jne 0x100598d
xor eax, eax
jmp 0x1005dba
lea eax, [ebp - 0xa1c]
push eax
call dword [sym.imp.USER32.dll_GetProcessDefaultLayout]
test eax, eax
je 0x10059b1
test byte [ebp - 0xa1c], 1
je 0x10059b1
mov dword [ebp - 0xa08], 0x2200
push esi
push ebx
push dword [0x1019530]
mov esi, dword [sym.imp.USER32.dll_CreateWindowExW]
push 1
push edi
push ebx
push ebx
push ebx
push ebx
push 0x5001001f
push ebx
push 0x1001840
push dword [ebp - 0xa08]
call esi
cmp eax, ebx
mov dword [0x1019080], eax
jne 0x10059e9
xor eax, eax
jmp 0x1005db9
push ebx
push dword [0x1019530]
push 2
push edi
push ebx
push ebx
push ebx
push ebx
push 0x52018a41
push ebx
push 0x1001824
push dword [ebp - 0xa08]
call esi
cmp eax, ebx
mov dword [0x1019084], eax
je 0x10059e2
mov esi, dword [sym.imp.USER32.dll_SendMessageW]
mov ecx, 0x4000
push ecx
push ecx
push 0x1036
push eax
call esi
push 3
push edi
push ebx
push 0x40000110
call dword [sym.imp.COMCTL32.dll_CreateStatusWindowW]
cmp eax, ebx
mov dword [0x1019088], eax
je 0x10059e2
mov ecx, dword [ebp - 0xa10]
mov ecx, dword [ecx + 0x3c]
and cl, 1
neg cl
sbb ecx, ecx
and ecx, 5
push ecx
push eax
mov dword [0x10190a0], ecx
call dword [sym.imp.USER32.dll_ShowWindow]
push edi
call fcn.0100540e
test eax, eax
je 0x10059e2
call fcn.010054f6
push 0x13
mov dword [ebp - 0xa78], 0xffff0000
mov dword [ebp - 0xa74], 0xffff0002
mov dword [ebp - 0xa70], 0x67
mov dword [ebp - 0xa58], ebx
mov dword [ebp - 0xa54], ebx
mov dword [ebp - 0xa50], 1
mov dword [ebp - 0xa4c], ebx
call fcn.01009c30
pop ecx
mov dword [ebp - 0xa60], eax
lea eax, [ebp - 0xa78]
push eax
push ebx
push 0x1132
push dword [0x1019080]
call esi
push dword [ebp - 0xa60]
mov edi, dword [sym.imp.KERNEL32.dll_LocalFree]
mov dword [ebp - 0xa78], eax
call edi
xor eax, eax
mov dword [ebp - 0xa58], 2
mov dword [ebp - 0xa54], 3
mov dword [ebp - 0xa08], eax
cmp eax, 0x3c
je 0x1005b58
mov ecx, dword [eax + 0x10019d0]
mov eax, dword [eax + 0x10019d4]
push 0x100
mov dword [ebp - 0xa60], ecx
lea ecx, [ebp - 0x204]
push ecx
push ebx
push eax
mov dword [ebp - 0xa4c], eax
call dword [sym.imp.ADVAPI32.dll_RegEnumKeyW]
neg eax
sbb eax, eax
inc eax
mov dword [ebp - 0xa50], eax
lea eax, [ebp - 0xa78]
push eax
push ebx
push 0x1132
push dword [0x1019080]
call esi
mov eax, dword [ebp - 0xa08]
add eax, 0xc
cmp eax, 0x48
mov dword [ebp - 0xa08], eax
jb 0x1005b01
push dword [ebp - 0xa78]
push 2
push 0x1102
push dword [0x1019080]
call esi
push dword [ebp - 0xa78]
push 9
push 0x110b
push dword [0x1019080]
call esi
mov eax, dword [0x1019080]
mov dword [0x101908c], eax
mov eax, dword [ebp - 0xa10]
mov dword [0x101909c], ebx
mov ecx, dword [eax + 0x2c]
mov dword [0x1019090], ecx
mov dword [ebp - 0xa44], 6
mov eax, dword [eax + 0x30]
push 0x11
mov dword [ebp - 0xa3c], eax
call fcn.01009c30
pop ecx
mov dword [ebp - 0xa38], eax
lea eax, [ebp - 0xa44]
push eax
push ebx
push 0x1061
push dword [0x1019084]
call esi
push dword [ebp - 0xa38]
call edi
mov eax, dword [ebp - 0xa10]
mov eax, dword [eax + 0x34]
push 0x1f
mov dword [ebp - 0xa3c], eax
call fcn.01009c30
pop ecx
mov dword [ebp - 0xa38], eax
lea eax, [ebp - 0xa44]
push eax
push 1
push 0x1061
push dword [0x1019084]
call esi
push dword [ebp - 0xa38]
call edi
mov eax, dword [ebp - 0xa10]
mov eax, dword [eax + 0x38]
push 0x12
mov dword [ebp - 0xa3c], eax
call fcn.01009c30
pop ecx
mov dword [ebp - 0xa38], eax
lea eax, [ebp - 0xa44]
push eax
push 2
push 0x1061
push dword [0x1019084]
call esi
push dword [ebp - 0xa38]
call edi
push 0x15
pop ecx
push dword [ebp - 0xa24]
xor eax, eax
mov edi, 0x1019620
rep stosd dword es:[edi], eax
call dword [sym.imp.USER32.dll_GetMenu]
push 0x3f
mov dword [0x10190c8], eax
call dword [sym.imp.USER32.dll_GetSystemMetrics]
and eax, 1
mov dword [0x10190d0], eax
jne 0x1005cd0
push ebx
push dword [0x10190c8]
call dword [sym.imp.USER32.dll_GetSubMenu]
mov edi, dword [sym.imp.USER32.dll_DeleteMenu]
push ebx
push 0x291
push eax
mov dword [ebp - 0xa08], eax
call edi
push ebx
push 0x300
push dword [ebp - 0xa08]
call edi
push ebx
push 0x2a1
push dword [ebp - 0xa08]
call edi
push ebx
push 9
push 0x110a
push dword [0x1019080]
call esi
mov dword [0x10190d8], eax
lea eax, [ebp - 0xa18]
push eax
push 0x1001678
push 0x80000001
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyW]
test eax, eax
jne 0x1005db6
lea eax, [ebp - 0xa0c]
push eax
lea eax, [ebp - 0xa04]
push eax
lea eax, [ebp - 0xa14]
push eax
push ebx
push 0x1001798
push dword [ebp - 0xa18]
mov dword [ebp - 0xa0c], 0x400
call fcn.0100a001
test eax, eax
jne 0x1005d55
cmp dword [ebp - 0xa14], 1
jne 0x1005d55
cmp dword [ebp - 0xa0c], ebx
jbe 0x1005d55
lea eax, [ebp - 0xa04]
push eax
call fcn.01004527
push 4
pop esi
lea eax, [ebp - 0xa0c]
push eax
lea eax, [ebp - 0xa20]
push eax
lea eax, [ebp - 0xa14]
push eax
push ebx
push 0x10017a8
push dword [ebp - 0xa18]
mov dword [ebp - 0xa0c], esi
call fcn.0100a001
test eax, eax
jne 0x1005daa
cmp dword [ebp - 0xa14], esi
jne 0x1005daa
cmp dword [ebp - 0xa0c], ebx
jbe 0x1005daa
cmp dword [ebp - 0xa20], ebx
je 0x1005daa
mov dword [0x1019244], 1
push dword [ebp - 0xa18]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
xor eax, eax
inc eax
pop esi
mov ecx, dword [ebp - 4]
pop edi
pop ebx
call fcn.010167d4
leave
ret 8