Function at 0x50739c
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffef4
push ebx
push esi
push edi
xor ecx, ecx
mov dword [ebp - 0xf4], ecx
mov dword [ebp - 0xc8], ecx
mov dword [ebp - 0xc0], ecx
mov dword [ebp - 0xc4], ecx
mov dword [ebp - 0xb8], ecx
mov dword [ebp - 0xbc], ecx
mov dword [ebp - 0xc], ecx
mov dword [ebp - 0x14], ecx
mov dword [ebp - 4], edx
xor eax, eax
push ebp
push 0x507894
push dword fs:[eax]
mov dword fs:[eax], esp
lea eax, [ebp - 0xc]
mov edx, 0x5078ac
call fcn.00403d64
push 0x5078c4
call sub.kernel32.dll_LoadLibraryA
mov dword [ebp - 8], eax
cmp dword [ebp - 8], 0
jbe 0x507850
xor edx, edx
push ebp
push 0x507849
push dword fs:[edx]
mov dword fs:[edx], esp
push 0x5078d4
mov eax, dword [ebp - 8]
push eax
call sub.kernel32.dll_GetProcAddress_1
mov esi, eax
mov edi, esi
test esi, esi
je 0x507832
lea eax, [ebp - 0xb4]
xor ecx, ecx
mov edx, 0x9c
call fcn.00402c7c
mov dword [ebp - 0xb4], 0x9c
lea eax, [ebp - 0xb4]
push eax
call edi
neg eax
sbb ebx, ebx
neg ebx
test bl, bl
jne 0x50748e
lea eax, [ebp - 0xb4]
xor ecx, ecx
mov edx, 0x94
call fcn.00402c7c
mov dword [ebp - 0xb4], 0x94
lea eax, [ebp - 0xb4]
push eax
call edi
test eax, eax
jne 0x50748e
call fcn.0040d644
mov eax, dword [ebp - 0xa4]
sub eax, 1
jb 0x507825
je 0x507796
dec eax
jne 0x507832
cmp dword [ebp - 0xb0], 4
ja 0x5074c2
lea eax, [ebp - 0xc]
mov edx, 0x5078ec
call fcn.00403d64
jmp 0x507523
cmp dword [ebp - 0xb0], 5
jne 0x5074e3
cmp dword [ebp - 0xac], 0
jne 0x5074e3
lea eax, [ebp - 0xc]
mov edx, 0x50790c
call fcn.00403d64
jmp 0x507523
cmp dword [ebp - 0xb0], 5
jne 0x507504
cmp dword [ebp - 0xac], 1
jne 0x507504
lea eax, [ebp - 0xc]
mov edx, 0x50792c
call fcn.00403d64
jmp 0x507523
cmp dword [ebp - 0xb0], 5
jne 0x507523
cmp dword [ebp - 0xac], 2
jne 0x507523
lea eax, [ebp - 0xc]
mov edx, 0x50794c
call fcn.00403d64
test bl, bl
je 0x5075be
mov al, byte [ebp - 0x1a]
cmp al, 1
jne 0x507564
mov ax, word [ebp - 0x1c]
and ax, 0x200
cmp ax, 0x200
jne 0x507552
lea eax, [ebp - 0xc]
mov edx, 0x50796c
call fcn.00403f54
jmp 0x507693
lea eax, [ebp - 0xc]
mov edx, 0x507980
call fcn.00403f54
jmp 0x507693
cmp al, 3
jne 0x507693
mov ax, word [ebp - 0x1c]
mov edx, eax
and dx, 0x80
cmp dx, 0x80
jne 0x507590
lea eax, [ebp - 0xc]
mov edx, 0x507998
call fcn.00403f54
jmp 0x507693
and ax, 2
cmp ax, 2
jne 0x5075ac
lea eax, [ebp - 0xc]
mov edx, 0x5079b4
call fcn.00403f54
jmp 0x507693
lea eax, [ebp - 0xc]
mov edx, 0x5079d0
call fcn.00403f54
jmp 0x507693
lea eax, [ebp - 0x10]
push eax
push 1
push 0
push 0x5079d8
push 0x80000002
call sub.advapi32.dll_RegOpenKeyExA_1
mov dword [ebp - 0x18], 0x14
lea eax, [ebp - 0x14]
mov edx, dword [ebp - 0x18]
call fcn.00404280
lea eax, [ebp - 0x18]
push eax
mov eax, dword [ebp - 0x14]
push eax
push 0
push 0
push 0x507a08
mov eax, dword [ebp - 0x10]
push eax
call sub.advapi32.dll_RegQueryValueExA_1
mov eax, dword [ebp - 0x10]
push eax
call sub.advapi32.dll_RegCloseKey_1
lea eax, [ebp - 0x14]
mov edx, dword [ebp - 0x18]
call fcn.00404280
lea edx, [ebp - 0xbc]
mov eax, dword [ebp - 0x14]
call fcn.00409274
mov eax, dword [ebp - 0xbc]
lea edx, [ebp - 0xb8]
call fcn.0040909c
mov eax, dword [ebp - 0xb8]
mov edx, 0x507a1c
call fcn.0040405c
jne 0x507655
lea eax, [ebp - 0xc]
mov edx, 0x507a2c
call fcn.00403f54
jmp 0x507693
lea edx, [ebp - 0xc4]
mov eax, dword [ebp - 0x14]
call fcn.00409274
mov eax, dword [ebp - 0xc4]
lea edx, [ebp - 0xc0]
call fcn.0040909c
mov eax, dword [ebp - 0xc0]
mov edx, 0x507a44
call fcn.0040405c
jne 0x507693
lea eax, [ebp - 0xc]
mov edx, 0x5079d0
call fcn.00403f54
mov ebx, dword [ebp - 0xb0]
cmp ebx, 4
ja 0x50772c
lea eax, [ebp - 0xc8]
push eax
mov eax, dword [ebp - 0xc]
mov dword [ebp - 0xf0], eax
mov byte [ebp - 0xec], 0xb
mov dword [ebp - 0xe8], ebx
mov byte [ebp - 0xe4], 0
mov eax, dword [ebp - 0xac]
mov dword [ebp - 0xe0], eax
mov byte [ebp - 0xdc], 0
lea eax, [ebp - 0xa0]
mov dword [ebp - 0xd8], eax
mov byte [ebp - 0xd4], 6
mov eax, dword [ebp - 0xa8]
and eax, 0xffff
mov dword [ebp - 0xd0], eax
mov byte [ebp - 0xcc], 0
lea edx, [ebp - 0xf0]
mov ecx, 4
mov eax, 0x507a58
call fcn.0040a170
mov edx, dword [ebp - 0xc8]
lea eax, [ebp - 0xc]
call fcn.00403d64
jmp 0x507832
lea eax, [ebp - 0xf4]
push eax
mov eax, dword [ebp - 0xc]
mov dword [ebp - 0x10c], eax
mov byte [ebp - 0x108], 0xb
lea eax, [ebp - 0xa0]
mov dword [ebp - 0x104], eax
mov byte [ebp - 0x100], 6
mov eax, dword [ebp - 0xa8]
and eax, 0xffff
mov dword [ebp - 0xfc], eax
mov byte [ebp - 0xf8], 0
lea edx, [ebp - 0x10c]
mov ecx, 2
mov eax, 0x507a80
call fcn.0040a170
mov edx, dword [ebp - 0xf4]
lea eax, [ebp - 0xc]
call fcn.00403d64
jmp 0x507832
cmp dword [ebp - 0xb0], 4
jne 0x5077cd
cmp dword [ebp - 0xac], 0
jne 0x5077cd
lea eax, [ebp - 0xc]
mov edx, 0x507a98
call fcn.00403d64
cmp byte [ebp - 0x9f], 0x43
jne 0x507832
lea eax, [ebp - 0xc]
mov edx, 0x507ab8
call fcn.00403f54
jmp 0x507832
cmp dword [ebp - 0xb0], 4
jne 0x507804
cmp dword [ebp - 0xac], 0xa
jne 0x507804
lea eax, [ebp - 0xc]
mov edx, 0x507ac8
call fcn.00403d64
cmp byte [ebp - 0x9f], 0x41
jne 0x507832
lea eax, [ebp - 0xc]
mov edx, 0x507ae8
call fcn.00403f54
jmp 0x507832
cmp dword [ebp - 0xb0], 4
jne 0x507832
cmp dword [ebp - 0xac], 0x5a
jne 0x507832
lea eax, [ebp - 0xc]
mov edx, 0x507af4
call fcn.00403d64
jmp 0x507832
lea eax, [ebp - 0xc]
mov edx, 0x507b14
call fcn.00403d64
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x507850
mov eax, dword [ebp - 8]
push eax
call sub.kernel32.dll_FreeLibrary_1
ret
mov eax, dword [ebp - 4]
mov edx, dword [ebp - 0xc]
call fcn.00403d20
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x50789b
lea eax, [ebp - 0xf4]
call fcn.00403ccc
lea eax, [ebp - 0xc8]
mov edx, 5
call fcn.00403cf0
lea eax, [ebp - 0x14]
call fcn.00403ccc
lea eax, [ebp - 0xc]
call fcn.00403ccc
ret