Function at 0x457254
Capabilities:
Query or enumerate registry value

Disassembly:
push ebx
push esi
push edi
push ebp
add esp, 0xffffffe8
mov ebx, 0x49693c
mov esi, 0x496938
cmp byte [0x496960], 0
je 0x45743b
mov eax, dword [esi]
mov dword [esp], eax
jmp 0x457290
add dword [esi], 0x1000
mov eax, dword [esi]
mov dword [esp], eax
mov eax, 0x496934
mov edx, dword [esi]
call fcn.00402ed4
push esp
mov eax, dword [0x496934]
push eax
push 0
push 0
push 0x45751c
push 0x80000004
call sub.advapi32.dll_RegQueryValueExA_1
cmp eax, 0xea
je 0x457279
mov eax, dword [0x496934]
mov eax, dword [eax + 0x18]
add eax, dword [0x496934]
mov dword [ebx], eax
mov eax, dword [0x496934]
mov eax, dword [eax + 0x1c]
test eax, eax
jle 0x4572e3
mov ecx, dword [ebx]
cmp dword [ecx + 0xc], 0xee
je 0x4572e3
mov edx, dword [ebx]
mov edx, dword [edx]
add edx, dword [ebx]
mov dword [ebx], edx
dec eax
jne 0x4572cd
mov eax, dword [ebx]
cmp dword [eax + 0xc], 0xee
je 0x457304
mov ecx, 0x457528
mov dl, 1
mov eax, dword [0x408400]
call fcn.0040cebc
call fcn.00404c08
cmp dword [0x496944], 0
jge 0x457341
mov eax, dword [ebx]
mov eax, dword [eax + 0x28]
mov dword [0x496944], eax
mov eax, dword [0x496944]
add eax, eax
add eax, eax
add eax, eax
call fcn.00402ea0
mov dword [0x496948], eax
mov eax, dword [0x496944]
add eax, eax
add eax, eax
add eax, eax
call fcn.00402ea0
mov dword [0x49694c], eax
mov eax, dword [ebx]
mov eax, dword [eax + 8]
add eax, dword [ebx]
mov dword [0x496940], eax
mov eax, dword [ebx]
mov eax, dword [eax + 0x20]
test eax, eax
jle 0x457379
mov ecx, dword [0x496940]
cmp dword [ecx + 4], 6
je 0x457379
mov edx, dword [0x496940]
mov edx, dword [edx]
add edx, dword [0x496940]
mov dword [0x496940], edx
dec eax
jne 0x457356
mov eax, dword [0x496940]
cmp dword [eax + 4], 6
je 0x45739a
mov ecx, 0x457564
mov dl, 1
mov eax, dword [0x408400]
call fcn.0040cebc
call fcn.00404c08
mov eax, dword [ebx]
mov ecx, dword [eax + 4]
add ecx, dword [ebx]
mov eax, dword [0x496944]
dec eax
test eax, eax
jl 0x4573f7
inc eax
xor edx, edx
mov ebx, dword [ecx]
add ebx, ecx
mov ecx, ebx
mov ebx, dword [0x49694c]
mov esi, dword [0x496948]
mov edi, dword [esi + edx*8]
mov dword [ebx + edx*8], edi
mov edi, dword [esi + edx*8 + 4]
mov dword [ebx + edx*8 + 4], edi
mov esi, dword [0x496948]
mov edi, dword [0x496940]
mov edi, dword [edi + 0x24]
mov ebx, ecx
add edi, ebx
mov ebp, dword [edi]
mov dword [esi + edx*8], ebp
mov ebp, dword [edi + 4]
mov dword [esi + edx*8 + 4], ebp
mov esi, dword [ecx]
add esi, ebx
mov ecx, esi
inc edx
dec eax
jne 0x4573ae
mov eax, dword [0x496950]
mov dword [0x496958], eax
mov eax, dword [0x496954]
mov dword [0x49695c], eax
lea eax, [esp + 4]
push eax
mov eax, dword [0x496934]
add eax, 0x24
push eax
call sub.kernel32.dll_SystemTimeToFileTime
mov eax, dword [esp + 4]
mov dword [0x496950], eax
mov eax, dword [esp + 8]
mov dword [0x496954], eax
jmp 0x457514
cmp byte [0x496961], 0
jne 0x4574eb
lea eax, [esp + 0xc]
push eax
push 0xf003f
push 0
push 0x4575a0
push 0x80000006
call sub.advapi32.dll_RegOpenKeyExA_1
test eax, eax
je 0x45747d
mov ecx, 0x4575bc
mov dl, 1
mov eax, dword [0x408400]
call fcn.0040cebc
call fcn.00404c08
mov dword [esp + 0x10], 4
lea eax, [esp + 0x10]
push eax
push 0x496964
lea eax, [esp + 0x1c]
push eax
push 0
push 0x4575e4
mov eax, dword [esp + 0x20]
push eax
call sub.advapi32.dll_RegQueryValueExA_1
mov eax, dword [esp + 0xc]
push eax
call sub.advapi32.dll_RegCloseKey_1
push 0x496968
push 0x20019
push 0
push 0x4575f4
push 0x80000006
call sub.advapi32.dll_RegOpenKeyExA_1
test eax, eax
je 0x4574e4
mov ecx, 0x457610
mov dl, 1
mov eax, dword [0x408400]
call fcn.0040cebc
call fcn.00404c08
mov byte [0x496961], 1
mov dword [esp + 0x10], 4
lea eax, [esp + 0x10]
push eax
push 0x496964
lea eax, [esp + 0x1c]
push eax
push 0
push 0x4575e4
mov eax, dword [0x496968]
push eax
call sub.advapi32.dll_RegQueryValueExA_1
add esp, 0x18
pop ebp
pop edi
pop esi
pop ebx
ret