Function at 0x411320
Capabilities:
Query or enumerate registry value

Disassembly:
sub esp, 0x12c
push ebx
push ebp
push esi
push edi
xor ebx, ebx
push 0x7f02
mov dword [esp + 0x34], ecx
push ebx
mov dword [esp + 0x20], ebx
mov dword [esp + 0x18], ebx
mov dword [esp + 0x24], ebx
call dword [sym.imp.USER32.dll_LoadCursorA]
push eax
call dword [sym.imp.USER32.dll_SetCursor]
mov dword [esp + 0x34], eax
mov eax, dword [0x422ef0]
cmp eax, 0xffffffff
jne 0x411519
push 9
push 0x42255c
push 0x422554
push 0x4294d0
call fcn.00413140
add esp, 0x10
lea eax, [esp + 0x18]
push eax
push 0x20019
push ebx
push 0x4294d0
push 0x80000002
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
cmp eax, ebx
jne 0x411737
mov eax, dword [esp + 0x18]
mov esi, dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
lea ecx, [esp + 0x14]
lea edx, [esp + 0x24]
push ecx
push ebx
push edx
push ebx
push 0x422548
push eax
call esi
cmp eax, ebx
jne 0x411737
mov ecx, dword [esp + 0x14]
push ecx
call fcn.00413950
add esp, 4
cmp eax, ebx
mov dword [esp + 0x10], eax
je 0x411737
mov ecx, dword [esp + 0x14]
mov edx, dword [esp + 0x10]
mov ebp, ecx
xor eax, eax
mov edi, edx
shr ecx, 2
rep stosd dword es:[edi], eax
mov ecx, ebp
and ecx, 3
rep stosb byte es:[edi], al
lea eax, [esp + 0x14]
lea ecx, [esp + 0x24]
push eax
push edx
mov edx, dword [esp + 0x20]
push ecx
push ebx
push 0x422548
push edx
call esi
cmp eax, ebx
jne 0x411737
mov ebp, dword [esp + 0x10]
mov ebx, ebp
cmp byte [ebp], 0
je 0x411510
cmp ebx, ebp
jbe 0x411450
movsx eax, byte [ebx - 2]
lea esi, [ebx - 2]
push eax
call fcn.004130e0
add esp, 4
test eax, eax
je 0x411450
movsx ecx, byte [esi - 1]
dec esi
push ecx
call fcn.004130e0
add esp, 4
test eax, eax
jne 0x41143e
push 0x423488
push ebx
call fcn.00413600
add esp, 8
test eax, eax
jne 0x4114ad
movsx edx, byte [ebx - 2]
lea esi, [ebx - 2]
push edx
call fcn.004130e0
add esp, 4
test eax, eax
je 0x411488
movsx eax, byte [esi - 1]
dec esi
push eax
call fcn.004130e0
add esp, 4
test eax, eax
jne 0x411476
lea edi, [esi + 1]
or ecx, 0xffffffff
xor eax, eax
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
mov edx, ecx
mov esi, edi
mov edi, 0x4294d0
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, edx
and ecx, 3
rep movsb byte es:[edi], byte [esi]
jmp 0x4114f4
push 0x42347c
push ebx
call fcn.00413600
add esp, 8
test eax, eax
jne 0x4114f4
movsx eax, byte [ebx - 2]
lea esi, [ebx - 2]
push eax
call fcn.004130e0
add esp, 4
test eax, eax
je 0x4114e5
movsx ecx, byte [esi - 1]
dec esi
push ecx
call fcn.004130e0
add esp, 4
test eax, eax
jne 0x4114d3
inc esi
push esi
call fcn.00412f60
add esp, 4
mov dword [0x422ef0], eax
mov edi, ebx
or ecx, 0xffffffff
xor eax, eax
repne scasb al, byte es:[edi]
not ecx
dec ecx
mov al, byte [ebx + ecx + 1]
lea ebx, [ebx + ecx + 1]
test al, al
jne 0x411426
push ebp
call fcn.004138b0
add esp, 4
push 0x19000
mov dword [esp + 0x18], 0x19000
call fcn.00413950
add esp, 4
mov dword [esp + 0x10], eax
test eax, eax
je 0x411737
mov ecx, dword [esp + 0x14]
mov esi, dword [esp + 0x10]
mov edx, ecx
xor eax, eax
mov edi, esi
mov ebx, 3
shr ecx, 2
rep stosd dword es:[edi], eax
mov ecx, edx
mov ebp, 0x46
and ecx, ebx
rep stosb byte es:[edi], al
lea eax, [esp + 0x14]
lea ecx, [esp + 0x24]
push eax
push esi
push ecx
push 0
push 0x4294d0
push 0x80000004
mov dword [esp + 0x3c], ebx
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
mov ecx, dword [esp + 0x14]
test eax, eax
jne 0x4115a4
test ecx, ecx
jbe 0x4115a4
cmp word [esi], 0x50
jne 0x4115a4
cmp word [esi + 2], 0x45
jne 0x4115a4
cmp word [esi + 4], 0x52
jne 0x4115a4
cmp word [esi + 6], bp
je 0x4115e9
cmp eax, 0xea
jne 0x411737
mov edx, dword [esp + 0x10]
add ecx, 0xc800
push ecx
push edx
mov dword [esp + 0x1c], ecx
call fcn.00414420
mov ecx, dword [esp + 0x1c]
mov edi, eax
mov edx, ecx
xor eax, eax
shr ecx, 2
mov dword [esp + 0x18], edi
add esp, 8
mov esi, dword [esp + 0x10]
rep stosd dword es:[edi], eax
mov ecx, edx
and ecx, ebx
rep stosb byte es:[edi], al
jmp 0x41155d
mov eax, dword [esi + 0x18]
xor ecx, ecx
add eax, esi
mov edx, dword [eax + 8]
mov esi, dword [eax + 0x20]
add edx, eax
test esi, esi
jbe 0x411611
mov edi, dword [0x422ef0]
add edx, 4
cmp dword [edx], edi
je 0x411611
add edx, 0x28
inc ecx
cmp ecx, esi
jb 0x411605
mov esi, dword [eax + 0x28]
mov ebx, dword [eax + 4]
mov edi, esi
mov dword [esp + 0x20], esi
shl edi, 6
add edi, esi
add ebx, eax
shl edi, 2
push edi
call fcn.00413950
mov ebp, eax
add esp, 4
test ebp, ebp
mov dword [esp + 0x28], ebp
je 0x41173f
mov ecx, edi
xor eax, eax
mov edx, ecx
mov edi, ebp
shr ecx, 2
rep stosd dword es:[edi], eax
mov ecx, edx
and ecx, 3
test esi, esi
rep stosb byte es:[edi], al
jbe 0x41173f
mov dword [esp + 0x2c], esi
mov ecx, dword [ebx + 0x10]
push 0
push 0
lea eax, [esp + 0x40]
push 0x104
push eax
add ecx, ebx
push 0xffffffffffffffff
push ecx
push 0
push 0
call dword [sym.imp.KERNEL32.dll_WideCharToMultiByte]
test eax, eax
jne 0x4116a6
mov edi, 0x423474
or ecx, 0xffffffff
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
lea edx, [esp + 0x38]
mov eax, ecx
mov esi, edi
mov edi, edx
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, eax
and ecx, 3
rep movsb byte es:[edi], byte [esi]
mov edi, 0x42346c
or ecx, 0xffffffff
xor eax, eax
lea edx, [esp + 0x38]
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
mov esi, edi
mov edi, edx
mov edx, ecx
or ecx, 0xffffffff
repne scasb al, byte es:[edi]
mov ecx, edx
dec edi
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, edx
mov edx, dword [esp + 0x1c]
and ecx, 3
rep movsb byte es:[edi], byte [esi]
lea edi, [esp + 0x38]
or ecx, 0xffffffff
repne scasb al, byte es:[edi]
not ecx
dec ecx
lea esi, [esp + 0x38]
mov eax, ecx
mov edi, ebp
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, eax
xor eax, eax
and ecx, 3
rep movsb byte es:[edi], byte [esi]
lea edi, [esp + 0x38]
or ecx, 0xffffffff
repne scasb al, byte es:[edi]
not ecx
dec ecx
lea edi, [esp + 0x38]
lea eax, [edx + ecx + 1]
or ecx, 0xffffffff
mov dword [esp + 0x1c], eax
xor eax, eax
repne scasb al, byte es:[edi]
mov eax, dword [ebx]
add eax, ebx
not ecx
mov ebx, dword [eax]
dec ecx
add ebx, eax
mov eax, dword [esp + 0x2c]
dec eax
lea ebp, [ebp + ecx + 1]
mov dword [esp + 0x2c], eax
jne 0x41165e
mov esi, dword [esp + 0x20]
mov ebp, dword [esp + 0x28]
mov ecx, dword [esp + 0x1c]
add ecx, 2
push ecx
push ebp
call fcn.00414420
mov edx, dword [esp + 0x38]
add esp, 8
mov dword [edx + 0x7b0], eax
mov eax, dword [esp + 0x10]
test eax, eax
je 0x41176b
push eax
call fcn.004138b0
add esp, 4
mov eax, dword [esp + 0x18]
mov edi, dword [sym.imp.ADVAPI32.dll_RegCloseKey]
test eax, eax
je 0x41177c
push eax
call edi
push 0x80000004
call edi
mov eax, dword [esp + 0x34]
push eax
call dword [sym.imp.USER32.dll_SetCursor]
mov eax, esi
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x12c
ret