Function at 0x4315d0
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x5b2a78
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x65c
push ebx
push esi
push edi
xor esi, esi
mov dword [ebp - 0x10], esp
mov ebx, ecx
mov dword [ebp - 4], esi
mov dword [ebp - 0x20], esi
mov dword [ebp - 0x18], esi
mov word [ebp - 0x1c], si
mov byte [ebp - 4], 1
xor edi, edi
mov eax, dword [ebx + 0x5c]
cmp edi, dword [eax + 8]
jge 0x431684
mov eax, dword [eax + 4]
mov ecx, dword [ebp + 8]
lea esi, [edi + edi*2]
mov ecx, dword [ecx]
shl esi, 3
mov eax, dword [eax + esi + 4]
push eax
push ecx
call fcn.005831c4
add esp, 8
test eax, eax
jne 0x43167f
mov edx, dword [ebx + 0x5c]
mov ecx, dword [ebx + 0x70]
mov eax, dword [edx + 4]
mov edx, dword [eax + esi]
mov dword [ecx + 0x2c4], edx
mov eax, dword [ebx + 0x5c]
mov ecx, dword [eax + 4]
mov eax, dword [ecx + esi + 0x10]
lea ecx, [ebp - 0x20]
push eax
call fcn.00401fc0
mov edx, dword [ebx + 0x5c]
xor ecx, ecx
push 0
mov eax, dword [edx + 4]
mov edx, dword [ebx + 0x17c]
mov cl, byte [eax + esi + 0x14]
mov eax, ecx
push eax
push 0xf1
push edx
call dword [sym.imp.USER32.dll_SendMessageA]
xor esi, esi
jmp 0x4316dc
inc edi
xor esi, esi
jmp 0x43160b
xor al, al
test al, al
jne 0x4316dc
mov eax, dword [ebx + 0x70]
lea ecx, [ebp - 0x20]
push ecx
mov dword [eax + 0x2c4], esi
call fcn.00436230
mov ecx, dword [0x67e58c]
add esp, 4
lea edx, [ebp - 0x38]
lea eax, [ebp - 0x24]
push edx
push eax
push esi
push esi
push str.RememberLastSave
push ecx
mov dword [ebp - 0x24], esi
mov dword [ebp - 0x38], 4
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
mov edx, dword [ebp - 0x24]
mov eax, dword [ebx + 0x17c]
push esi
push edx
push 0xf1
push eax
call dword [sym.imp.USER32.dll_SendMessageA]
mov al, byte [ebp + 0xc]
test al, al
je 0x431907
mov eax, dword [ebx + 0x90]
cmp eax, esi
jne 0x4316f7
lea eax, [ebx + 0x94]
lea ecx, [ebp - 0x468]
lea edx, [ebp - 0x268]
push ecx
push edx
lea ecx, [ebp - 0x668]
lea edx, [ebp - 0x38]
push ecx
push edx
push eax
call fcn.005828aa
mov eax, dword [ebp - 0x20]
add esp, 0x14
cmp eax, esi
jne 0x431723
lea eax, [ebp - 0x1c]
push eax
call fcn.00581b1a
mov ecx, dword [ebp - 0x20]
add esp, 4
cmp ecx, esi
mov edx, ecx
jne 0x431738
lea edx, [ebp - 0x1c]
cmp word [edx + eax*2 - 2], 0x5c
mov edi, 0x67df5c
je 0x43174a
mov edi, 0x653058
cmp ecx, esi
jne 0x431751
lea ecx, [ebp - 0x1c]
mov eax, str._s_s_s_s
test eax, eax
je 0x4318fe
cmp ecx, esi
je 0x4318fe
cmp edi, esi
je 0x4318fe
lea edx, [ebp - 0x268]
test edx, edx
je 0x4318fe
lea eax, [ebp - 0x468]
test eax, eax
je 0x4318fe
push ecx
lea ecx, [ebp - 0x30]
mov dword [ebp - 0x30], esi
mov dword [ebp - 0x28], esi
mov word [ebp - 0x2c], si
call fcn.00401fc0
push edi
lea ecx, [ebp - 0x50]
mov byte [ebp - 4], 2
call fcn.00403bb0
lea ecx, [ebp - 0x268]
mov byte [ebp - 4], 3
push ecx
lea ecx, [ebp - 0x5c]
call fcn.00403bb0
lea edx, [ebp - 0x468]
lea ecx, [ebp - 0x68]
push edx
mov byte [ebp - 4], 4
call fcn.00403bb0
lea ecx, [ebx + 0x90]
mov byte [ebp - 4], 5
call fcn.00401070
push str._s_s_s_s
lea ecx, [ebp - 0x44]
call fcn.00401f30
mov esi, dword [ebp - 0x3c]
lea ecx, [ebp - 0x68]
mov byte [ebp - 4], 6
call fcn.00401fb0
push eax
call fcn.00581b1a
add esp, 4
lea ecx, [ebp - 0x5c]
mov edi, eax
call fcn.00401fb0
push eax
call fcn.00581b1a
add esp, 4
lea ecx, [ebp - 0x50]
add edi, eax
call fcn.00401fb0
push eax
call fcn.00581b1a
mov dword [ebp + 0xc], edi
mov edi, eax
add esp, 4
lea ecx, [ebp - 0x30]
add edi, esi
call fcn.00401fb0
push eax
call fcn.00581b1a
mov ecx, dword [ebp + 0xc]
add edi, ecx
lea esi, [eax + edi + 5]
lea eax, [esi + esi]
push eax
call fcn.0059a2da
mov edi, eax
add esp, 8
test edi, edi
mov dword [ebx + 0x90], edi
je 0x4318c2
lea ecx, [esi + esi]
xor eax, eax
mov edx, ecx
shr ecx, 2
rep stosd dword es:[edi], eax
mov ecx, edx
and ecx, 3
rep stosb byte es:[edi], al
lea ecx, [ebp - 0x68]
call fcn.00401fb0
push eax
lea ecx, [ebp - 0x5c]
call fcn.00401fb0
push eax
lea ecx, [ebp - 0x50]
call fcn.00401fb0
push eax
lea ecx, [ebp - 0x30]
call fcn.00401fb0
push eax
lea ecx, [ebp - 0x44]
call fcn.00401fb0
push eax
mov eax, dword [ebx + 0x90]
push esi
push eax
call fcn.00581aaa
mov ecx, dword [ebx + 0x90]
push ecx
call fcn.00581b1a
add esp, 0x20
mov dword [ebx + 0x98], eax
lea ecx, [ebp - 0x44]
mov byte [ebp - 4], 5
call fcn.00401070
lea ecx, [ebp - 0x68]
mov byte [ebp - 4], 4
call fcn.00401070
lea ecx, [ebp - 0x5c]
mov byte [ebp - 4], 3
call fcn.00401070
lea ecx, [ebp - 0x50]
mov byte [ebp - 4], 2
call fcn.00401070
lea ecx, [ebp - 0x30]
mov byte [ebp - 4], 1
call fcn.00401070
push 1
mov ecx, ebx
call fcn.004304b0
mov edx, dword [0x679a04]
mov dword [ebp - 0x14], edx
mov eax, dword [ebp + 8]
mov edx, dword [0x67ed7c]
mov byte [ebp - 4], 7
mov ecx, dword [eax]
lea eax, [ebp - 0x14]
push ecx
push edx
push eax
call fcn.00596d08
mov ecx, dword [ebp - 0x14]
add esp, 0xc
push ecx
lea ecx, [ebx + 0x160]
call fcn.0059d52d
lea ecx, [ebp - 0x14]
mov byte [ebp - 4], 1
call fcn.0059df40
lea ecx, [ebp - 0x20]
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 8