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

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x44c771
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.00404590
mov dword [ebp - 4], 0
mov dword [ebp - 0x134], 0
lea ecx, [ebp - 0x1c]
call fcn.00404590
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.00404600
push eax
push reloc.OLEAUT32.dll_SysReAllocString
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
test eax, eax
je 0x4094bf
mov byte [ebp - 4], 0
lea ecx, [ebp - 0x1c]
call fcn.0043de93
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x128]
call fcn.0043de93
jmp 0x409af1
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 0x409505
jmp 0x409557
lea edx, [ebp - 0x120]
push edx
lea ecx, [ebp - 0x1c]
call fcn.0043e01c
push 0x45d804
lea ecx, [ebp - 0x1c]
call fcn.0043cb31
test eax, eax
jl 0x409531
mov dword [ebp - 0x144], 1
jmp 0x409557
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 0x4094cd
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 0x40958c
mov dword [ebp - 0x134], 0
mov dword [ebp - 0x10], 0
cmp dword [ebp - 0x134], 0
jne 0x409ac6
cmp dword [ebp - 0x144], 0
jne 0x409ac6
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 0x4095e5
cmp dword [ebp - 0x140], 6
jne 0x4095ea
jmp 0x409a11
lea ecx, [ebp - 0x24c]
push ecx
mov edx, dword [ebp - 0x294]
mov eax, dword [edx + 0xec]
push eax
push 0x45d818
lea ecx, [ebp - 0x128]
push ecx
call fcn.0043ceb7
add esp, 0x10
lea edx, [ebp - 0x14c]
push edx
push 0xf003f
push 0
lea ecx, [ebp - 0x128]
call fcn.00404600
push eax
push reloc.OLEAUT32.dll_SysReAllocString
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
test eax, eax
je 0x40965e
mov byte [ebp - 4], 0
lea ecx, [ebp - 0x1c]
call fcn.0043de93
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x128]
call fcn.0043de93
jmp 0x409af1
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 0x4096dc
jmp 0x4097bd
lea ecx, [ebp - 0x120]
push ecx
lea ecx, [ebp - 0x1c]
call fcn.0043e01c
push 0x45d820
lea ecx, [ebp - 0x1c]
call fcn.0043cb31
test eax, eax
jl 0x40970b
mov dword [ebp - 0x144], 1
jmp 0x409797
push 0x45d834
lea ecx, [ebp - 0x1c]
call fcn.0043cb31
test eax, eax
jl 0x409728
mov dword [ebp - 0x13c], 1
jmp 0x409797
push 0x45d848
lea ecx, [ebp - 0x1c]
call fcn.0043cb31
test eax, eax
jl 0x409742
mov dword [ebp - 0x20], 1
jmp 0x409797
push 0x45d858
lea ecx, [ebp - 0x1c]
call fcn.0043cb31
test eax, eax
jl 0x40975f
mov dword [ebp - 0x130], 1
jmp 0x409797
push 0x45d864
lea ecx, [ebp - 0x1c]
call fcn.0043cb31
test eax, eax
jl 0x40977c
mov dword [ebp - 0x138], 1
jmp 0x409797
push 0x45d878
lea ecx, [ebp - 0x1c]
call fcn.0043cb31
test eax, eax
jl 0x409797
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 0x4096a1
mov ecx, dword [ebp - 0x14c]
push ecx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
cmp dword [ebp - 0x144], 0
je 0x409828
push 1
push ecx
mov ecx, esp
mov dword [ebp - 0x254], esp
push 0x45d884
call fcn.0043df01
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.0043dc08
mov dword [ebp - 0x2a0], eax
mov ecx, dword [ebp - 0x294]
mov byte [ebp - 4], 1
call fcn.00409aff
cmp dword [ebp - 0x130], 0
je 0x409886
push 1
push ecx
mov ecx, esp
mov dword [ebp - 0x25c], esp
push 0x45d898
call fcn.0043df01
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.0043dc08
mov dword [ebp - 0x2ac], eax
mov ecx, dword [ebp - 0x294]
mov byte [ebp - 4], 1
call fcn.00409aff
cmp dword [ebp - 0x20], 0
je 0x4098e1
push 1
push ecx
mov ecx, esp
mov dword [ebp - 0x264], esp
push 0x45d8a4
call fcn.0043df01
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.0043dc08
mov dword [ebp - 0x2b8], eax
mov ecx, dword [ebp - 0x294]
mov byte [ebp - 4], 1
call fcn.00409aff
cmp dword [ebp - 0x13c], 0
je 0x40993f
push 1
push ecx
mov ecx, esp
mov dword [ebp - 0x26c], esp
push 0x45d8b4
call fcn.0043df01
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.0043dc08
mov dword [ebp - 0x2c4], eax
mov ecx, dword [ebp - 0x294]
mov byte [ebp - 4], 1
call fcn.00409aff
cmp dword [ebp - 0x12c], 0
je 0x40999d
push 0
push ecx
mov ecx, esp
mov dword [ebp - 0x274], esp
push 0x45d8c8
call fcn.0043df01
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.0043dc08
mov dword [ebp - 0x2d0], eax
mov ecx, dword [ebp - 0x294]
mov byte [ebp - 4], 1
call fcn.00409aff
cmp dword [ebp - 0x138], 0
je 0x4099fb
push 0
push ecx
mov ecx, esp
mov dword [ebp - 0x27c], esp
push 0x45d8d4
call fcn.0043df01
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.0043dc08
mov dword [ebp - 0x2dc], eax
mov ecx, dword [ebp - 0x294]
mov byte [ebp - 4], 1
call fcn.00409aff
mov eax, dword [ebp - 0x10]
add eax, 1
mov dword [ebp - 0x10], eax
mov ecx, 1
test ecx, ecx
jne 0x4095ad
push 1
push ecx
mov ecx, esp
mov dword [ebp - 0x284], esp
push 0x45d8e8
call fcn.0043df01
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.0043dc08
mov dword [ebp - 0x2e8], eax
mov ecx, dword [ebp - 0x294]
mov byte [ebp - 4], 1
call fcn.00409aff
push 0
push ecx
mov ecx, esp
mov dword [ebp - 0x28c], esp
push 0x45d8fc
call fcn.0043df01
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.0043dc08
mov dword [ebp - 0x2f4], eax
mov ecx, dword [ebp - 0x294]
mov byte [ebp - 4], 1
call fcn.00409aff
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.0043de93
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x128]
call fcn.0043de93
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
mov esp, ebp
pop ebp
ret