Function at 0x59d5e4
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
add esp, 0xffffffd0
push ebx
push esi
push edi
xor ebx, ebx
mov dword [ebp - 0x2c], ebx
mov dword [ebp - 0x30], ebx
mov dword [ebp - 0x28], ebx
mov dword [ebp - 0x24], ebx
mov dword [ebp - 0x20], ebx
mov dword [ebp - 0x1c], ebx
mov dword [ebp - 0x14], ecx
mov dword [ebp - 0xc], edx
mov dword [ebp - 8], eax
mov eax, dword [ebp - 0xc]
call fcn.00405168
mov eax, dword [ebp - 0x14]
call fcn.00405168
mov eax, dword [ebp + 8]
call fcn.00405168
xor eax, eax
push ebp
push 0x59d90d
push dword fs:[eax]
mov dword fs:[eax], esp
mov eax, dword [ebp + 0x14]
mov eax, dword [eax - 0x10]
mov edx, dword [ebp - 8]
call fcn.0042d58c
xor edx, edx
push ebp
push 0x59d8c4
push dword fs:[edx]
mov dword fs:[edx], esp
mov eax, dword [ebp + 0x14]
mov eax, dword [eax - 0x10]
xor ecx, ecx
mov edx, dword [ebp - 0xc]
call fcn.0042d6d0
test al, al
je 0x59d8ba
cmp byte [ebp + 0x10], 0
je 0x59d776
mov dl, 1
mov eax, dword [0x41ca64]
call fcn.00403e50
mov ebx, eax
mov eax, ebx
mov edx, dword [eax]
call dword [edx + 0x44]
mov eax, dword [ebp + 0x14]
mov eax, dword [eax - 0x10]
mov edx, ebx
call fcn.0042dabc
mov eax, ebx
mov edx, dword [eax]
call dword [edx + 0x14]
dec eax
test eax, eax
jl 0x59d76a
inc eax
mov dword [ebp - 0x18], eax
xor esi, esi
xor eax, eax
mov dword [ebp - 0x10], eax
lea eax, [ebp - 0x10]
push eax
push 0x6b4e28
lea eax, [ebp - 4]
push eax
push 0
lea ecx, [ebp - 0x1c]
mov edx, esi
mov eax, ebx
mov edi, dword [eax]
call dword [edi + 0xc]
mov eax, dword [ebp - 0x1c]
call fcn.00405178
push eax
mov eax, dword [ebp + 0x14]
mov eax, dword [eax - 0x10]
mov eax, dword [eax + 4]
push eax
call sub.advapi32.dll_RegQueryValueExA_1
mov eax, 0x6b4e28
xor ecx, ecx
mov edx, 0x10000
call fcn.0040359c
movzx eax, word [ebp - 0x10]
mov edx, 0x103
call fcn.0043db94
mov dword [ebp - 0x10], eax
lea eax, [ebp - 0x10]
push eax
push 0x6b4e28
lea eax, [ebp - 4]
push eax
push 0
lea ecx, [ebp - 0x20]
mov edx, esi
mov eax, ebx
mov edi, dword [eax]
call dword [edi + 0xc]
mov eax, dword [ebp - 0x20]
call fcn.00405178
push eax
mov eax, dword [ebp + 0x14]
mov eax, dword [eax - 0x10]
mov eax, dword [eax + 4]
push eax
call sub.advapi32.dll_RegQueryValueExA_1
test eax, eax
je 0x59d73e
cmp eax, 0xea
jne 0x59d760
mov eax, dword [ebp - 0x10]
call fcn.0059c3ac
test al, al
jne 0x59d760
push ebp
lea ecx, [ebp - 0x24]
mov edx, esi
mov eax, ebx
mov edi, dword [eax]
call dword [edi + 0xc]
mov eax, dword [ebp - 0x24]
call fcn.0059d248
pop ecx
inc esi
dec dword [ebp - 0x18]
jne 0x59d6a6
mov eax, ebx
call fcn.00403e80
jmp 0x59d80b
xor eax, eax
mov dword [ebp - 4], eax
xor eax, eax
mov dword [ebp - 0x10], eax
lea eax, [ebp - 0x10]
push eax
push 0x6b4e28
lea eax, [ebp - 4]
push eax
push 0
mov eax, dword [ebp - 0x14]
call fcn.00405178
mov ebx, eax
push ebx
mov eax, dword [ebp + 0x14]
mov eax, dword [eax - 0x10]
mov eax, dword [eax + 4]
push eax
call sub.advapi32.dll_RegQueryValueExA_1
mov eax, 0x6b4e28
xor ecx, ecx
mov edx, 0x10000
call fcn.0040359c
movzx eax, word [ebp - 0x10]
mov edx, 0x103
call fcn.0043db94
mov dword [ebp - 0x10], eax
lea eax, [ebp - 0x10]
push eax
push 0x6b4e28
lea eax, [ebp - 4]
push eax
push 0
push ebx
mov eax, dword [ebp + 0x14]
mov eax, dword [eax - 0x10]
mov eax, dword [eax + 4]
push eax
call sub.advapi32.dll_RegQueryValueExA_1
test eax, eax
je 0x59d7f5
cmp eax, 0xea
jne 0x59d80b
mov eax, dword [ebp - 0x10]
call fcn.0059c3ac
test al, al
jne 0x59d80b
push ebp
mov eax, dword [ebp - 0x14]
call fcn.0059d248
pop ecx
cmp byte [ebp + 0xc], 0
je 0x59d8af
mov dl, 1
mov eax, dword [0x41ca64]
call fcn.00403e50
mov ebx, eax
mov eax, dword [ebp + 0x14]
mov eax, dword [eax - 0x10]
mov edx, ebx
call fcn.0042d9f4
mov eax, dword [ebp + 0x14]
mov eax, dword [eax - 0x10]
call fcn.0042d55c
mov eax, ebx
mov edx, dword [eax]
call dword [edx + 0x14]
dec eax
test eax, eax
jl 0x59d8a8
inc eax
mov dword [ebp - 0x18], eax
xor esi, esi
lea ecx, [ebp - 0x28]
mov edx, esi
mov eax, ebx
mov edi, dword [eax]
call dword [edi + 0xc]
cmp dword [ebp - 0x28], 0
je 0x59d8a2
mov eax, dword [ebp + 0x14]
push eax
mov al, byte [ebp + 0x10]
push eax
mov al, byte [ebp + 0xc]
push eax
mov eax, dword [ebp + 8]
push eax
lea edx, [ebp - 0x2c]
mov eax, dword [ebp - 0xc]
call fcn.0040f8f8
lea eax, [ebp - 0x2c]
push eax
lea ecx, [ebp - 0x30]
mov edx, esi
mov eax, ebx
mov edi, dword [eax]
call dword [edi + 0xc]
mov edx, dword [ebp - 0x30]
pop eax
call fcn.00404f88
mov edx, dword [ebp - 0x2c]
mov ecx, dword [ebp - 0x14]
mov eax, dword [ebp - 8]
call fcn.0059d5e4
pop ecx
inc esi
dec dword [ebp - 0x18]
jne 0x59d84d
mov eax, ebx
call fcn.00403e80
mov eax, dword [ebp + 0x14]
mov eax, dword [eax - 0x10]
call fcn.0042d55c
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
jmp 0x59d8da
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x59d914
lea eax, [ebp - 0x30]
mov edx, 6
call fcn.00404cd0
lea eax, [ebp - 0x14]
call fcn.00404cac
lea eax, [ebp - 0xc]
call fcn.00404cac
lea eax, [ebp + 8]
call fcn.00404cac
ret