Function at 0x409301
Capabilities:
Query or enumerate registry key
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x44c081
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x2e8
mov dword [ebp - 0x294], ecx
lea ecx, [ebp - 0x128]
call fcn.004044f0
mov dword [ebp - 4], 0
mov dword [ebp - 0x134], 0
lea ecx, [ebp - 0x1c]
call fcn.004044f0
mov byte [ebp - 4], 1
mov dword [ebp - 0x14], 0
mov dword [ebp - 0x124], 0
mov dword [ebp - 0x148], 0xff
mov dword [ebp - 0x144], 0
mov dword [ebp - 0x13c], 0
mov dword [ebp - 0x20], 0
mov dword [ebp - 0x130], 0
mov dword [ebp - 0x138], 0
mov dword [ebp - 0x12c], 0
lea eax, [ebp - 0x250]
push eax
push 0xf003f
push 0
mov ecx, dword [ebp - 0x294]
add ecx, 0xec
call fcn.00404560
push eax
push reloc.OLEAUT32.dll_SysReAllocString
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
test eax, eax
je 0x4093f3
mov byte [ebp - 4], 0
lea ecx, [ebp - 0x1c]
call fcn.0043d7a3
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x128]
call fcn.0043d7a3
jmp 0x409a25
mov dword [ebp - 0x10], 0
mov dword [ebp - 0x18], 0
push 0
push 0
push 0
push 0
lea ecx, [ebp - 0x148]
push ecx
lea edx, [ebp - 0x120]
push edx
mov eax, dword [ebp - 0x124]
push eax
mov ecx, dword [ebp - 0x250]
push ecx
call dword [sym.imp.ADVAPI32.dll_RegEnumValueA]
mov dword [ebp - 0x14], eax
cmp dword [ebp - 0x14], 0x103
jne 0x409439
jmp 0x40948b
lea edx, [ebp - 0x120]
push edx
lea ecx, [ebp - 0x1c]
call fcn.0043d92c
push 0x45d7d0
lea ecx, [ebp - 0x1c]
call fcn.0043c441
test eax, eax
jl 0x409465
mov dword [ebp - 0x144], 1
jmp 0x40948b
mov dword [ebp - 0x148], 0xff
mov eax, dword [ebp - 0x124]
add eax, 1
mov dword [ebp - 0x124], eax
mov ecx, 1
test ecx, ecx
jne 0x409401
push 0
push 0
push 0
push 0
lea edx, [ebp - 0x18]
push edx
push 0
push 0
push 0
push 0
push 0
push 0
mov eax, dword [ebp - 0x250]
push eax
call dword [sym.imp.ADVAPI32.dll_RegQueryInfoKeyA]
cmp dword [ebp - 0x18], 2
jae 0x4094c0
mov dword [ebp - 0x134], 0
mov dword [ebp - 0x10], 0
cmp dword [ebp - 0x134], 0
jne 0x4099fa
cmp dword [ebp - 0x144], 0
jne 0x4099fa
push 0xff
lea ecx, [ebp - 0x24c]
push ecx
mov edx, dword [ebp - 0x10]
push edx
mov eax, dword [ebp - 0x250]
push eax
call dword [sym.imp.ADVAPI32.dll_RegEnumKeyA]
mov dword [ebp - 0x140], eax
cmp dword [ebp - 0x140], 0x103
je 0x409519
cmp dword [ebp - 0x140], 6
jne 0x40951e
jmp 0x409945
lea ecx, [ebp - 0x24c]
push ecx
mov edx, dword [ebp - 0x294]
mov eax, dword [edx + 0xec]
push eax
push 0x45d7e4
lea ecx, [ebp - 0x128]
push ecx
call fcn.0043c7c7
add esp, 0x10
lea edx, [ebp - 0x14c]
push edx
push 0xf003f
push 0
lea ecx, [ebp - 0x128]
call fcn.00404560
push eax
push reloc.OLEAUT32.dll_SysReAllocString
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
test eax, eax
je 0x409592
mov byte [ebp - 4], 0
lea ecx, [ebp - 0x1c]
call fcn.0043d7a3
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x128]
call fcn.0043d7a3
jmp 0x409a25
mov dword [ebp - 0x124], 0
mov dword [ebp - 0x144], 0
mov dword [ebp - 0x13c], 0
mov dword [ebp - 0x20], 0
mov dword [ebp - 0x130], 0
mov dword [ebp - 0x138], 0
mov dword [ebp - 0x12c], 0
push 0
push 0
push 0
push 0
lea eax, [ebp - 0x148]
push eax
lea ecx, [ebp - 0x120]
push ecx
mov edx, dword [ebp - 0x124]
push edx
mov eax, dword [ebp - 0x14c]
push eax
call dword [sym.imp.ADVAPI32.dll_RegEnumValueA]
mov dword [ebp - 0x14], eax
cmp dword [ebp - 0x14], 0x103
jne 0x409610
jmp 0x4096f1
lea ecx, [ebp - 0x120]
push ecx
lea ecx, [ebp - 0x1c]
call fcn.0043d92c
push 0x45d7ec
lea ecx, [ebp - 0x1c]
call fcn.0043c441
test eax, eax
jl 0x40963f
mov dword [ebp - 0x144], 1
jmp 0x4096cb
push 0x45d800
lea ecx, [ebp - 0x1c]
call fcn.0043c441
test eax, eax
jl 0x40965c
mov dword [ebp - 0x13c], 1
jmp 0x4096cb
push 0x45d814
lea ecx, [ebp - 0x1c]
call fcn.0043c441
test eax, eax
jl 0x409676
mov dword [ebp - 0x20], 1
jmp 0x4096cb
push 0x45d824
lea ecx, [ebp - 0x1c]
call fcn.0043c441
test eax, eax
jl 0x409693
mov dword [ebp - 0x130], 1
jmp 0x4096cb
push 0x45d830
lea ecx, [ebp - 0x1c]
call fcn.0043c441
test eax, eax
jl 0x4096b0
mov dword [ebp - 0x138], 1
jmp 0x4096cb
push 0x45d844
lea ecx, [ebp - 0x1c]
call fcn.0043c441
test eax, eax
jl 0x4096cb
mov dword [ebp - 0x12c], 1
mov dword [ebp - 0x148], 0xff
mov edx, dword [ebp - 0x124]
add edx, 1
mov dword [ebp - 0x124], edx
mov eax, 1
test eax, eax
jne 0x4095d5
mov ecx, dword [ebp - 0x14c]
push ecx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
cmp dword [ebp - 0x144], 0
je 0x40975c
push 1
push ecx
mov ecx, esp
mov dword [ebp - 0x254], esp
push 0x45d850
call fcn.0043d811
mov dword [ebp - 0x298], eax
mov edx, dword [ebp - 0x298]
mov dword [ebp - 0x29c], edx
mov byte [ebp - 4], 2
push ecx
mov ecx, esp
mov dword [ebp - 0x258], esp
lea eax, [ebp - 0x128]
push eax
call fcn.0043d518
mov dword [ebp - 0x2a0], eax
mov ecx, dword [ebp - 0x294]
mov byte [ebp - 4], 1
call fcn.00409a33
cmp dword [ebp - 0x130], 0
je 0x4097ba
push 1
push ecx
mov ecx, esp
mov dword [ebp - 0x25c], esp
push 0x45d864
call fcn.0043d811
mov dword [ebp - 0x2a4], eax
mov ecx, dword [ebp - 0x2a4]
mov dword [ebp - 0x2a8], ecx
mov byte [ebp - 4], 3
push ecx
mov ecx, esp
mov dword [ebp - 0x260], esp
lea edx, [ebp - 0x128]
push edx
call fcn.0043d518
mov dword [ebp - 0x2ac], eax
mov ecx, dword [ebp - 0x294]
mov byte [ebp - 4], 1
call fcn.00409a33
cmp dword [ebp - 0x20], 0
je 0x409815
push 1
push ecx
mov ecx, esp
mov dword [ebp - 0x264], esp
push 0x45d870
call fcn.0043d811
mov dword [ebp - 0x2b0], eax
mov eax, dword [ebp - 0x2b0]
mov dword [ebp - 0x2b4], eax
mov byte [ebp - 4], 4
push ecx
mov ecx, esp
mov dword [ebp - 0x268], esp
lea edx, [ebp - 0x128]
push edx
call fcn.0043d518
mov dword [ebp - 0x2b8], eax
mov ecx, dword [ebp - 0x294]
mov byte [ebp - 4], 1
call fcn.00409a33
cmp dword [ebp - 0x13c], 0
je 0x409873
push 1
push ecx
mov ecx, esp
mov dword [ebp - 0x26c], esp
push 0x45d880
call fcn.0043d811
mov dword [ebp - 0x2bc], eax
mov eax, dword [ebp - 0x2bc]
mov dword [ebp - 0x2c0], eax
mov byte [ebp - 4], 5
push ecx
mov ecx, esp
mov dword [ebp - 0x270], esp
lea edx, [ebp - 0x128]
push edx
call fcn.0043d518
mov dword [ebp - 0x2c4], eax
mov ecx, dword [ebp - 0x294]
mov byte [ebp - 4], 1
call fcn.00409a33
cmp dword [ebp - 0x12c], 0
je 0x4098d1
push 0
push ecx
mov ecx, esp
mov dword [ebp - 0x274], esp
push 0x45d894
call fcn.0043d811
mov dword [ebp - 0x2c8], eax
mov eax, dword [ebp - 0x2c8]
mov dword [ebp - 0x2cc], eax
mov byte [ebp - 4], 6
push ecx
mov ecx, esp
mov dword [ebp - 0x278], esp
lea edx, [ebp - 0x128]
push edx
call fcn.0043d518
mov dword [ebp - 0x2d0], eax
mov ecx, dword [ebp - 0x294]
mov byte [ebp - 4], 1
call fcn.00409a33
cmp dword [ebp - 0x138], 0
je 0x40992f
push 0
push ecx
mov ecx, esp
mov dword [ebp - 0x27c], esp
push 0x45d8a0
call fcn.0043d811
mov dword [ebp - 0x2d4], eax
mov eax, dword [ebp - 0x2d4]
mov dword [ebp - 0x2d8], eax
mov byte [ebp - 4], 7
push ecx
mov ecx, esp
mov dword [ebp - 0x280], esp
lea edx, [ebp - 0x128]
push edx
call fcn.0043d518
mov dword [ebp - 0x2dc], eax
mov ecx, dword [ebp - 0x294]
mov byte [ebp - 4], 1
call fcn.00409a33
mov eax, dword [ebp - 0x10]
add eax, 1
mov dword [ebp - 0x10], eax
mov ecx, 1
test ecx, ecx
jne 0x4094e1
push 1
push ecx
mov ecx, esp
mov dword [ebp - 0x284], esp
push 0x45d8b4
call fcn.0043d811
mov dword [ebp - 0x2e0], eax
mov edx, dword [ebp - 0x2e0]
mov dword [ebp - 0x2e4], edx
mov byte [ebp - 4], 8
mov eax, dword [ebp - 0x294]
add eax, 0xec
push ecx
mov ecx, esp
mov dword [ebp - 0x288], esp
push eax
call fcn.0043d518
mov dword [ebp - 0x2e8], eax
mov ecx, dword [ebp - 0x294]
mov byte [ebp - 4], 1
call fcn.00409a33
push 0
push ecx
mov ecx, esp
mov dword [ebp - 0x28c], esp
push 0x45d8c8
call fcn.0043d811
mov dword [ebp - 0x2ec], eax
mov ecx, dword [ebp - 0x2ec]
mov dword [ebp - 0x2f0], ecx
mov byte [ebp - 4], 9
mov edx, dword [ebp - 0x294]
add edx, 0xec
push ecx
mov ecx, esp
mov dword [ebp - 0x290], esp
push edx
call fcn.0043d518
mov dword [ebp - 0x2f4], eax
mov ecx, dword [ebp - 0x294]
mov byte [ebp - 4], 1
call fcn.00409a33
mov eax, dword [ebp - 0x250]
push eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov byte [ebp - 4], 0
lea ecx, [ebp - 0x1c]
call fcn.0043d7a3
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x128]
call fcn.0043d7a3
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
mov esp, ebp
pop ebp
ret