Function at 0x5120b0
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x64a358
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x54
push ebx
push esi
push edi
mov edi, ecx
xor esi, esi
mov dword [ebp - 0x10], esp
mov dword [ebp - 0x1c], edi
mov dword [ebp - 4], esi
mov dword [ebp - 0x54], esi
mov dword [ebp - 0x4c], esi
mov word [ebp - 0x50], si
mov eax, dword [edi + 0x14c]
push esi
push esi
push 0x147
push eax
mov byte [ebp - 4], 1
call dword [sym.imp.USER32.dll_SendMessageW]
lea ecx, [ebp - 0x54]
push ecx
push eax
lea ecx, [edi + 0x148]
call fcn.00426990
xor ebx, ebx
mov byte [ebp - 0x11], 0
mov dword [ebp - 0x30], ebx
mov eax, dword [edi + 0x8c]
cmp ebx, dword [eax + 8]
jge 0x512621
mov eax, dword [eax + 4]
lea edx, [ebx + ebx*4]
lea esi, [ebx + edx*2]
shl esi, 2
mov ecx, dword [eax + esi + 4]
lea eax, [eax + esi + 4]
test ecx, ecx
jne 0x512140
lea ecx, [eax + 4]
mov edx, dword [ebp - 0x54]
test edx, edx
jne 0x51214a
lea edx, [ebp - 0x50]
push ecx
push edx
call fcn.0060a1a4
add esp, 8
test eax, eax
jne 0x512616
mov ecx, dword [edi + 0x8c]
xor edi, edi
mov byte [ebp - 0x11], 1
mov edx, dword [ecx + 4]
lea ecx, [ebp - 0x3c]
mov esi, dword [edx + esi + 0x20]
mov dword [ebp - 0x3c], edi
push esi
mov dword [ebp - 0x34], edi
mov word [ebp - 0x38], di
call fcn.00401f20
mov eax, dword [0x6fcb00]
mov byte [ebp - 4], 2
cmp eax, edi
je 0x512362
mov eax, dword [0x6fc968]
cmp eax, edi
je 0x5121a1
mov dword [ebp - 0x18], eax
jmp 0x5121ab
mov dword [ebp - 0x18], 0x6fc96c
mov eax, dword [ebp - 0x18]
mov esi, dword [0x6fc978]
cmp esi, edi
jne 0x5121ba
mov esi, 0x6fc97c
mov ecx, dword [ebp - 0x3c]
mov dword [ebp - 0x2c], esi
cmp ecx, edi
je 0x512362
cmp esi, edi
je 0x512362
cmp eax, edi
je 0x512362
push eax
push esi
call fcn.0060a1a4
add esp, 8
test eax, eax
je 0x512362
mov eax, dword [ebp - 0x3c]
push esi
push eax
call fcn.0060a3e0
add esp, 8
mov ebx, eax
mov dword [ebp - 0x28], edi
test ebx, ebx
je 0x51221b
inc edi
push esi
mov dword [ebp - 0x28], edi
call fcn.00609a4e
lea eax, [ebx + eax*2]
push esi
push eax
call fcn.0060a3e0
add esp, 0xc
mov ebx, eax
jmp 0x5121fc
test edi, edi
je 0x512362
mov ecx, dword [ebp - 0x3c]
push ecx
lea ecx, [ebp - 0x60]
call fcn.00401ee0
mov edi, dword [ebp - 0x18]
mov byte [ebp - 4], 3
push edi
call fcn.00609a4e
push esi
mov ebx, eax
call fcn.00609a4e
add esp, 8
cmp ebx, eax
jbe 0x512294
lea ecx, [ebp - 0x3c]
call fcn.00401070
lea ecx, [ebp - 0x60]
call fcn.00401f10
push eax
call fcn.00609a4e
push edi
mov ebx, eax
call fcn.00609a4e
push esi
mov edi, eax
call fcn.00609a4e
sub edi, eax
imul edi, dword [ebp - 0x28]
add ebx, edi
lea edx, [ebx + ebx + 2]
push edx
call fcn.00622acb
mov ebx, eax
add esp, 0x10
test ebx, ebx
mov dword [ebp - 0x3c], ebx
jne 0x512297
jmp 0x512356
mov ebx, dword [ebp - 0x3c]
lea ecx, [ebp - 0x60]
call fcn.00401f10
push esi
push eax
mov dword [ebp - 0x24], eax
call fcn.0060a3e0
add esp, 8
test eax, eax
mov dword [ebp - 0x20], eax
je 0x512319
mov esi, dword [ebp - 0x24]
mov edi, ebx
sub eax, esi
sar eax, 1
shl eax, 1
mov ecx, eax
add ebx, eax
mov edx, ecx
mov eax, dword [ebp - 0x18]
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, edx
push eax
and ecx, 3
rep movsb byte es:[edi], byte [esi]
call fcn.00609a4e
mov ecx, eax
mov eax, dword [ebp - 0x18]
shl ecx, 1
mov edx, ecx
mov esi, eax
mov edi, ebx
push eax
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, edx
and ecx, 3
rep movsb byte es:[edi], byte [esi]
call fcn.00609a4e
mov esi, dword [ebp - 0x2c]
lea ebx, [ebx + eax*2]
push esi
call fcn.00609a4e
mov ecx, dword [ebp - 0x20]
push esi
lea eax, [ecx + eax*2]
push eax
mov dword [ebp - 0x24], eax
call fcn.0060a3e0
add esp, 0x14
jmp 0x5122ac
mov esi, dword [ebp - 0x24]
push esi
call fcn.00609a4e
mov ecx, eax
mov edi, ebx
shl ecx, 1
mov edx, ecx
mov eax, dword [ebp - 0x24]
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, edx
push eax
and ecx, 3
rep movsb byte es:[edi], byte [esi]
call fcn.00609a4e
lea ebx, [ebx + eax*2]
mov word [ebx], 0
mov ecx, dword [ebp - 0x3c]
push ecx
call fcn.00609a4e
add esp, 0xc
mov dword [ebp - 0x34], eax
lea ecx, [ebp - 0x60]
mov byte [ebp - 4], 2
call fcn.00401070
mov eax, dword [0x6fcb04]
test eax, eax
je 0x512538
mov eax, dword [0x6fc948]
test eax, eax
jne 0x51237d
mov eax, 0x6fc94c
mov esi, dword [0x6fc958]
mov dword [ebp - 0x18], eax
test esi, esi
jne 0x51238f
mov esi, 0x6fc95c
mov ecx, dword [ebp - 0x3c]
mov dword [ebp - 0x28], esi
test ecx, ecx
je 0x512538
test esi, esi
je 0x512538
test eax, eax
je 0x512538
push eax
push esi
call fcn.0060a1a4
add esp, 8
test eax, eax
je 0x512538
mov edx, dword [ebp - 0x3c]
push esi
push edx
call fcn.0060a3e0
add esp, 8
mov edi, eax
xor ebx, ebx
test edi, edi
je 0x5123ec
push esi
inc ebx
call fcn.00609a4e
lea eax, [edi + eax*2]
push esi
push eax
call fcn.0060a3e0
add esp, 0xc
mov edi, eax
jmp 0x5123d0
test ebx, ebx
je 0x512538
mov eax, dword [ebp - 0x3c]
lea ecx, [ebp - 0x60]
push eax
call fcn.00401ee0
push esi
mov byte [ebp - 4], 4
call fcn.00609a4e
mov ecx, dword [ebp - 0x18]
mov edi, eax
push ecx
call fcn.00609a4e
add esp, 8
cmp eax, edi
jbe 0x512467
lea ecx, [ebp - 0x3c]
call fcn.00401070
lea ecx, [ebp - 0x60]
call fcn.00401f10
push eax
call fcn.00609a4e
push esi
mov edi, eax
call fcn.00609a4e
mov edx, dword [ebp - 0x18]
mov esi, eax
push edx
call fcn.00609a4e
sub eax, esi
imul eax, ebx
add edi, eax
lea eax, [edi + edi + 2]
push eax
call fcn.00622acb
mov ebx, eax
add esp, 0x10
test ebx, ebx
mov dword [ebp - 0x3c], ebx
jne 0x51246a
jmp 0x51252c
mov ebx, dword [ebp - 0x3c]
lea ecx, [ebp - 0x60]
call fcn.00401f10
mov ecx, dword [ebp - 0x28]
mov dword [ebp - 0x20], eax
push ecx
push eax
call fcn.0060a3e0
add esp, 8
test eax, eax
mov dword [ebp - 0x24], eax
je 0x5124ef
mov esi, dword [ebp - 0x20]
mov edi, ebx
sub eax, esi
sar eax, 1
shl eax, 1
mov ecx, eax
add ebx, eax
mov edx, ecx
mov eax, dword [ebp - 0x18]
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, edx
push eax
and ecx, 3
rep movsb byte es:[edi], byte [esi]
call fcn.00609a4e
mov ecx, eax
mov eax, dword [ebp - 0x18]
shl ecx, 1
mov edx, ecx
mov esi, eax
mov edi, ebx
push eax
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, edx
and ecx, 3
rep movsb byte es:[edi], byte [esi]
call fcn.00609a4e
mov esi, dword [ebp - 0x28]
lea ebx, [ebx + eax*2]
push esi
call fcn.00609a4e
mov ecx, dword [ebp - 0x24]
push esi
lea eax, [ecx + eax*2]
push eax
mov dword [ebp - 0x20], eax
call fcn.0060a3e0
add esp, 0x14
jmp 0x512482
mov esi, dword [ebp - 0x20]
push esi
call fcn.00609a4e
mov ecx, eax
mov edi, ebx
shl ecx, 1
mov edx, ecx
mov eax, dword [ebp - 0x20]
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, edx
push eax
and ecx, 3
rep movsb byte es:[edi], byte [esi]
call fcn.00609a4e
lea ebx, [ebx + eax*2]
mov word [ebx], 0
mov ecx, dword [ebp - 0x3c]
push ecx
call fcn.00609a4e
add esp, 0xc
mov dword [ebp - 0x34], eax
lea ecx, [ebp - 0x60]
mov byte [ebp - 4], 2
call fcn.00401070
mov edi, dword [ebp - 0x30]
mov esi, dword [ebp - 0x1c]
mov eax, dword [esi + 0x8c]
lea edx, [edi + edi*4]
mov ecx, dword [eax + 4]
lea edi, [edi + edx*2]
shl edi, 2
mov eax, dword [ecx + edi + 0x20]
lea ecx, [esi + 0x90]
push eax
call fcn.00401f20
mov eax, dword [0x6cdafc]
test eax, eax
mov eax, dword [ebp - 0x3c]
je 0x512585
test eax, eax
jne 0x512573
lea eax, [ebp - 0x38]
mov edx, dword [esi + 0x1c]
push eax
push 0x408
push edx
call dword [sym.imp.USER32.dll_SetDlgItemTextW]
jmp 0x5125b4
test eax, eax
jne 0x51258c
lea eax, [ebp - 0x38]
push eax
lea eax, [ebp - 0x2c]
push eax
call fcn.00402850
mov ecx, dword [ebp - 0x2c]
mov edx, dword [esi + 0x1c]
add esp, 8
push ecx
push 0x408
push edx
call dword [sym.imp.USER32.dll_SetDlgItemTextA]
lea ecx, [ebp - 0x2c]
call fcn.00622d8a
mov eax, dword [esi + 0x8c]
mov edx, dword [esi + 0x13c]
mov ebx, dword [sym.imp.USER32.dll_SendMessageA]
push 0
mov ecx, dword [eax + 4]
xor eax, eax
mov al, byte [ecx + edi + 0x24]
push eax
push 0xf1
push edx
call ebx
mov eax, dword [esi + 0x8c]
mov ecx, dword [eax + 4]
mov edi, dword [ecx + edi + 0x1c]
mov ecx, esi
push edi
push 0x40e
call fcn.006232e6
mov edx, dword [esi + 0xec]
push 1
push edx
call dword [sym.imp.USER32.dll_EnableWindow]
lea ecx, [ebp - 0x3c]
mov byte [ebp - 4], 1
call fcn.00401070
mov edi, dword [ebp - 0x1c]
xor esi, esi
jmp 0x512627
inc ebx
xor esi, esi
mov dword [ebp - 0x30], ebx
jmp 0x512116
mov ebx, dword [sym.imp.USER32.dll_SendMessageA]
mov al, byte [ebp - 0x11]
test al, al
jne 0x5127b8
mov dword [ebp - 0x60], esi
mov dword [ebp - 0x58], esi
mov word [ebp - 0x5c], si
lea eax, [ebp - 0x60]
mov byte [ebp - 4], 5
push eax
call fcn.0044d070
add esp, 4
mov dword [ebp - 0x3c], esi
mov dword [ebp - 0x34], esi
mov word [ebp - 0x38], si
mov ecx, dword [ebp - 0x60]
mov byte [ebp - 4], 6
push ecx
lea ecx, [ebp - 0x3c]
call fcn.00401f20
cmp dword [0x6fcb00], esi
je 0x512696
mov eax, dword [0x6fc968]
cmp eax, esi
mov ecx, eax
jne 0x51267e
mov ecx, 0x6fc96c
mov eax, dword [0x6fc978]
cmp eax, esi
jne 0x51268c
mov eax, 0x6fc97c
push ecx
push eax
lea ecx, [ebp - 0x3c]
call fcn.004434d0
cmp dword [0x6fcb04], esi
je 0x5126c6
mov eax, dword [0x6fc948]
cmp eax, esi
mov ecx, eax
jne 0x5126ae
mov ecx, 0x6fc94c
mov eax, dword [0x6fc958]
cmp eax, esi
jne 0x5126bc
mov eax, 0x6fc95c
push ecx
push eax
lea ecx, [ebp - 0x3c]
call fcn.004434d0
mov edx, dword [ebp - 0x60]
lea ecx, [edi + 0x90]
push edx
call fcn.00401f20
mov eax, dword [0x6cdafc]
cmp eax, esi
mov eax, dword [ebp - 0x3c]
je 0x5126fa
cmp eax, esi
jne 0x5126e8
lea eax, [ebp - 0x38]
push eax
mov eax, dword [edi + 0x1c]
push 0x408
push eax
call dword [sym.imp.USER32.dll_SetDlgItemTextW]
jmp 0x512729
cmp eax, esi
jne 0x512701
lea eax, [ebp - 0x38]
lea ecx, [ebp - 0x30]
push eax
push ecx
call fcn.00402850
mov edx, dword [ebp - 0x30]
mov eax, dword [edi + 0x1c]
add esp, 8
push edx
push 0x408
push eax
call dword [sym.imp.USER32.dll_SetDlgItemTextA]
lea ecx, [ebp - 0x30]
call fcn.00622d8a
mov eax, dword [0x6fcafc]
lea ecx, [ebp - 0x28]
lea edx, [ebp - 0x2c]
push ecx
push edx
push esi
push esi
push str.RememberLastSave
push eax
mov dword [ebp - 0x2c], esi
mov dword [ebp - 0x28], 4
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
mov ecx, dword [ebp - 0x2c]
mov edx, dword [edi + 0x13c]
push esi
push ecx
push 0xf1
push edx
call ebx
mov eax, dword [0x6fd66c]
mov ecx, dword [edi + 0x1c]
push eax
push 0x40e
push ecx
call fcn.00426880
add esp, 0xc
mov ecx, edi
push 0x40e
call fcn.0062325c
mov edx, dword [eax + 0x1c]
push esi
push 1
push 0xcf
push edx
call ebx
mov eax, dword [edi + 0xec]
push esi
push eax
call dword [sym.imp.USER32.dll_EnableWindow]
lea ecx, [ebp - 0x3c]
mov byte [ebp - 4], 5
call fcn.00401070
lea ecx, [ebp - 0x60]
mov byte [ebp - 4], 1
call fcn.00401070
mov dword [ebp - 0x48], esi
mov dword [ebp - 0x40], esi
mov word [ebp - 0x44], si
mov eax, dword [ebp - 0x54]
mov byte [ebp - 4], 7
cmp eax, esi
jne 0x5127d0
lea eax, [ebp - 0x50]
mov ecx, dword [0x6fca90]
mov edx, dword [0x6fdbd8]
push ecx
push eax
push edx
lea ecx, [ebp - 0x48]
call fcn.0041da80
mov eax, dword [ebp - 0x48]
cmp eax, esi
jne 0x5127f1
lea eax, [ebp - 0x44]
push eax
lea ecx, [edi + 0x128]
call fcn.005128a0
mov eax, dword [0x6fca90]
mov esi, dword [0x6fdbd4]
push eax
lea ecx, [ebp - 0x54]
call fcn.00401f10
push eax
push esi
lea ecx, [ebp - 0x48]
call fcn.0041da80
lea ecx, [ebp - 0x48]
call fcn.00401f10
push eax
lea ecx, [edi + 0x138]
call fcn.005128a0
mov ecx, dword [0x6fca90]
mov esi, dword [0x6fd65c]
push ecx
lea ecx, [ebp - 0x54]
call fcn.00401f10
push eax
push esi
lea ecx, [ebp - 0x48]
call fcn.0041da80
lea ecx, [ebp - 0x48]
call fcn.00401f10
push eax
lea ecx, [edi + 0x108]
call fcn.005128a0
lea ecx, [ebp - 0x48]
mov byte [ebp - 4], 1
call fcn.00401070
lea ecx, [ebp - 0x54]
mov byte [ebp - 4], 0
call fcn.00401070
mov ecx, dword [ebp - 0xc]
pop edi
pop esi
mov dword fs:[0], ecx
pop ebx
mov esp, ebp
pop ebp
ret