Function at 0x50a780
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x6554b8
mov eax, dword fs:[0]
push eax
sub esp, 0x48
mov eax, dword [0x755898]
xor eax, ebp
mov dword [ebp - 0x14], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov dword [ebp - 0x10], esp
mov edi, ecx
xor ebx, ebx
mov dword [ebp - 4], ebx
mov dword [ebp - 0x2c], ebx
mov dword [ebp - 0x24], ebx
xor eax, eax
mov word [ebp - 0x28], ax
mov byte [ebp - 4], 1
lea esi, [edi + 0x15c]
lea ecx, [ebp - 0x2c]
push ecx
mov ecx, esi
call fcn.00425ce0
push eax
mov ecx, esi
call fcn.00424680
xor esi, esi
mov dword [ebp - 0x54], esi
mov ecx, dword [edi + 0x88]
cmp esi, dword [ecx + 8]
jge 0x50a999
push esi
call fcn.0043bbe0
add eax, 4
cmp dword [eax], ebx
je 0x50a803
mov ecx, dword [eax]
jmp 0x50a806
lea ecx, [eax + 4]
mov eax, dword [ebp - 0x2c]
cmp eax, ebx
jne 0x50a810
lea eax, [ebp - 0x28]
mov dx, word [eax]
cmp dx, word [ecx]
jne 0x50a836
cmp dx, bx
je 0x50a832
mov dx, word [eax + 2]
cmp dx, word [ecx + 2]
jne 0x50a836
add eax, 4
add ecx, 4
cmp dx, bx
jne 0x50a810
xor eax, eax
jmp 0x50a83b
sbb eax, eax
sbb eax, 0xffffffff
cmp eax, ebx
jne 0x50a993
push esi
mov ecx, dword [edi + 0x88]
call fcn.0043bbe0
add eax, 0x20
mov eax, dword [eax]
push eax
lea ecx, [ebp - 0x20]
call fcn.00402180
mov bl, 2
mov byte [ebp - 4], bl
cmp dword [0x75abdc], 0
je 0x50a893
mov eax, dword [0x75ad64]
test eax, eax
mov ecx, eax
jne 0x50a87b
mov ecx, 0x75ad68
mov eax, dword [0x75accc]
test eax, eax
jne 0x50a889
mov eax, 0x75acd0
push ecx
push eax
lea ecx, [ebp - 0x20]
call fcn.0043bee0
cmp dword [0x75abe0], 0
je 0x50a8c4
mov eax, dword [0x75ad7c]
test eax, eax
mov ecx, eax
jne 0x50a8ac
mov ecx, 0x75ad80
mov eax, dword [0x75ad70]
test eax, eax
jne 0x50a8ba
mov eax, 0x75ad74
push ecx
push eax
lea ecx, [ebp - 0x20]
call fcn.0043bee0
push esi
mov ecx, dword [edi + 0x88]
call fcn.0043bbe0
add eax, 0x20
mov eax, dword [eax]
push eax
lea ecx, [edi + 0x8c]
call fcn.004017f0
mov eax, dword [ebp - 0x20]
cmp dword [0x74fd28], 0
je 0x50a906
test eax, eax
jne 0x50a8f4
lea eax, [ebp - 0x1c]
push eax
push 0x408
mov edx, dword [edi + 0x20]
push edx
call dword [sym.imp.USER32.dll_SetDlgItemTextW]
jmp 0x50a93e
test eax, eax
jne 0x50a90d
lea eax, [ebp - 0x1c]
push 0
push eax
lea eax, [ebp - 0x48]
push eax
call fcn.00402a70
add esp, 0xc
mov byte [ebp - 4], 3
mov ecx, dword [ebp - 0x48]
push ecx
push 0x408
mov edx, dword [edi + 0x20]
push edx
call dword [sym.imp.USER32.dll_SetDlgItemTextA]
mov byte [ebp - 4], bl
lea ecx, [ebp - 0x48]
call fcn.00402570
push esi
mov ecx, dword [edi + 0x88]
call fcn.0043bbe0
movzx eax, byte [eax + 0x24]
push eax
lea ecx, [edi + 0x14c]
call fcn.00405440
push esi
mov ecx, dword [edi + 0x88]
call fcn.0043bbe0
add eax, 0x1c
mov eax, dword [eax]
push eax
push 0x40e
mov ecx, edi
call fcn.005f2262
push 1
mov ecx, dword [edi + 0x100]
push ecx
call dword [sym.imp.USER32.dll_EnableWindow]
mov byte [ebp - 4], 1
lea ecx, [ebp - 0x20]
jmp 0x50ab3b
inc esi
jmp 0x50a7e0
xor al, al
jne 0x50ab42
mov dword [ebp - 0x44], ebx
mov dword [ebp - 0x3c], ebx
xor edx, edx
mov word [ebp - 0x40], dx
mov byte [ebp - 4], 4
lea eax, [ebp - 0x44]
push eax
call fcn.0044aef0
add esp, 4
mov dword [ebp - 0x20], ebx
mov dword [ebp - 0x18], ebx
xor ecx, ecx
mov word [ebp - 0x1c], cx
mov bl, 5
mov byte [ebp - 4], bl
mov edx, dword [ebp - 0x44]
push edx
lea ecx, [ebp - 0x20]
call fcn.004017f0
cmp dword [0x75abdc], 0
je 0x50aa0b
mov eax, dword [0x75ad64]
test eax, eax
mov ecx, eax
jne 0x50a9f3
mov ecx, 0x75ad68
mov eax, dword [0x75accc]
test eax, eax
jne 0x50aa01
mov eax, 0x75acd0
push ecx
push eax
lea ecx, [ebp - 0x20]
call fcn.0043bee0
cmp dword [0x75abe0], 0
je 0x50aa3c
mov eax, dword [0x75ad7c]
test eax, eax
mov ecx, eax
jne 0x50aa24
mov ecx, 0x75ad80
mov eax, dword [0x75ad70]
test eax, eax
jne 0x50aa32
mov eax, 0x75ad74
push ecx
push eax
lea ecx, [ebp - 0x20]
call fcn.0043bee0
mov eax, dword [ebp - 0x44]
push eax
lea ecx, [edi + 0x8c]
call fcn.004017f0
mov eax, dword [ebp - 0x20]
cmp dword [0x74fd28], 0
je 0x50aa70
test eax, eax
jne 0x50aa5e
lea eax, [ebp - 0x1c]
push eax
push 0x408
mov ecx, dword [edi + 0x20]
push ecx
call dword [sym.imp.USER32.dll_SetDlgItemTextW]
jmp 0x50aaa8
test eax, eax
jne 0x50aa77
lea eax, [ebp - 0x1c]
push 0
push eax
lea edx, [ebp - 0x48]
push edx
call fcn.00402a70
add esp, 0xc
mov byte [ebp - 4], 6
mov eax, dword [ebp - 0x48]
push eax
push 0x408
mov ecx, dword [edi + 0x20]
push ecx
call dword [sym.imp.USER32.dll_SetDlgItemTextA]
mov byte [ebp - 4], bl
lea ecx, [ebp - 0x48]
call fcn.00402570
mov dword [ebp - 0x4c], 0
mov dword [ebp - 0x50], 4
lea edx, [ebp - 0x50]
push edx
lea eax, [ebp - 0x4c]
push eax
push 0
push 0
push str.RememberLastSave
mov ecx, dword [0x75abd8]
push ecx
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
mov edx, dword [ebp - 0x4c]
push edx
lea ecx, [edi + 0x14c]
call fcn.00405440
mov eax, dword [0x75c28c]
push eax
push 0x40e
mov ecx, dword [edi + 0x20]
push ecx
call fcn.004245b0
add esp, 0xc
push 0
push 1
push 0xcf
push 0x40e
mov ecx, edi
call fcn.005f21e5
mov edx, dword [eax + 0x20]
push edx
call dword [sym.imp.USER32.dll_SendMessageA]
push 0
mov eax, dword [edi + 0x100]
push eax
call dword [sym.imp.USER32.dll_EnableWindow]
mov byte [ebp - 4], 4
lea ecx, [ebp - 0x20]
call fcn.00401210
mov byte [ebp - 4], 1
lea ecx, [ebp - 0x44]
call fcn.00401210
xor ebx, ebx
mov dword [ebp - 0x38], ebx
mov dword [ebp - 0x30], ebx
xor ecx, ecx
mov word [ebp - 0x34], cx
mov byte [ebp - 4], 7
mov eax, dword [ebp - 0x2c]
cmp eax, ebx
jne 0x50ab5c
lea eax, [ebp - 0x28]
mov edx, dword [0x75ad10]
push edx
push eax
mov eax, dword [0x75bd20]
push eax
lea ecx, [ebp - 0x38]
call fcn.004021b0
mov eax, dword [ebp - 0x38]
cmp eax, ebx
jne 0x50ab7c
lea eax, [ebp - 0x34]
push eax
lea ecx, [edi + 0x13c]
call fcn.004b6db0
mov eax, dword [ebp - 0x2c]
cmp eax, ebx
jne 0x50ab92
lea eax, [ebp - 0x28]
mov ecx, dword [0x75ad10]
push ecx
push eax
mov edx, dword [0x75bd24]
push edx
lea ecx, [ebp - 0x38]
call fcn.004021b0
mov eax, dword [ebp - 0x38]
cmp eax, ebx
jne 0x50abb3
lea eax, [ebp - 0x34]
push eax
lea ecx, [edi + 0x14c]
call fcn.004b6db0
mov eax, dword [ebp - 0x2c]
cmp eax, ebx
jne 0x50abc9
lea eax, [ebp - 0x28]
mov ecx, dword [0x75ad10]
push ecx
push eax
mov edx, dword [0x75c29c]
push edx
lea ecx, [ebp - 0x38]
call fcn.004021b0
mov eax, dword [ebp - 0x38]
cmp eax, ebx
jne 0x50abea
lea eax, [ebp - 0x34]
push eax
lea ecx, [edi + 0x11c]
call fcn.004b6db0
mov byte [ebp - 4], 1
lea ecx, [ebp - 0x38]
call fcn.00401210
mov byte [ebp - 4], 0
lea ecx, [ebp - 0x2c]
call fcn.00401210
mov dword [ebp - 4], 0xffffffff
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 0x14]
xor ecx, ebp
call fcn.0061d2ff
mov esp, ebp
pop ebp
ret