Function at 0x402320
Capabilities:
Query or enumerate registry value

Disassembly:
push 0xffffffffffffffff
push 0x4276d6
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x124
push ebx
push ebp
push esi
push edi
mov esi, ecx
xor edi, edi
mov dword [esp + 0x24], 0x80
xor ecx, ecx
mov edx, dword [esi + 0x8c]
lea eax, [edx*8]
sub eax, edx
lea eax, [eax + eax*4]
lea edx, [ecx + eax*2]
inc ecx
cmp ecx, 4
mov dword [edx*4 + 0x435de0], edi
jl 0x40234d
mov ecx, dword [esi + 0x8c]
mov ebp, dword [0x43690c]
and ebp, 0xffff
mov ebx, 1
lea eax, [ecx*8]
mov dx, bp
sub eax, ecx
lea eax, [eax + eax*4]
mov dword [eax*8 + 0x435dc0], edi
in al, dx
cmp al, 8
mov byte [esp + 0x10], al
jne 0x4023c3
mov ecx, dword [esi + 0x8c]
lea eax, [ecx*8]
sub eax, ecx
lea ecx, [eax + eax*4]
mov dword [ecx*8 + 0x435df0], ebx
jmp 0x40247c
cmp al, 0x16
jne 0x4023e9
mov ecx, dword [esi + 0x8c]
lea eax, [ecx*8]
sub eax, ecx
lea edx, [eax + eax*4]
mov dword [edx*8 + 0x435df0], 2
jmp 0x40247c
cmp al, 0x24
jne 0x40240c
mov ecx, dword [esi + 0x8c]
lea eax, [ecx*8]
sub eax, ecx
lea eax, [eax + eax*4]
mov dword [eax*8 + 0x435df0], 3
jmp 0x40247c
cmp al, 0x32
jne 0x40242f
mov ecx, dword [esi + 0x8c]
lea eax, [ecx*8]
sub eax, ecx
lea ecx, [eax + eax*4]
mov dword [ecx*8 + 0x435df0], 4
jmp 0x40247c
mov edx, dword [0x433f64]
mov dword [esp + 0x14], edx
mov eax, dword [esp + 0x10]
lea ecx, [esp + 0x14]
and eax, 0xff
mov dword [esp + 0x13c], edi
push eax
push str.Read_Fail_Port_count:_x
push ecx
call fcn.0041a90a
mov edx, dword [esp + 0x20]
add esp, 0xc
push edi
push edi
push edx
call fcn.0042212f
lea ecx, [esp + 0x14]
mov dword [esp + 0x13c], 0xffffffff
call fcn.0041c1c5
mov ecx, dword [esi + 0x8c]
lea eax, [ecx*8]
sub eax, ecx
lea eax, [eax + eax*4]
mov edx, dword [eax*8 + 0x435df0]
test edx, edx
jle 0x4025c2
lea edx, [edi + ebp + 8]
in al, dx
test al, al
mov byte [esp + 0x18], al
jne 0x4024c5
lea eax, [ecx*8]
sub eax, ecx
lea ecx, [eax + eax*4]
lea edx, [edi + ecx*2]
mov dword [edx*4 + 0x435de0], ebx
jmp 0x4025a2
cmp al, 0x10
jne 0x4024e8
lea eax, [ecx*8]
sub eax, ecx
lea eax, [eax + eax*4]
lea ecx, [edi + eax*2]
mov dword [ecx*4 + 0x435de0], 2
jmp 0x4025a2
cmp al, 0x11
jne 0x40250b
lea eax, [ecx*8]
sub eax, ecx
lea edx, [eax + eax*4]
lea eax, [edi + edx*2]
mov dword [eax*4 + 0x435de0], 3
jmp 0x4025a2
cmp al, 0x20
jne 0x40252b
lea eax, [ecx*8]
sub eax, ecx
lea ecx, [eax + eax*4]
lea edx, [edi + ecx*2]
mov dword [edx*4 + 0x435de0], 4
jmp 0x4025a2
cmp al, 0x21
jne 0x40254b
lea eax, [ecx*8]
sub eax, ecx
lea eax, [eax + eax*4]
lea ecx, [edi + eax*2]
mov dword [ecx*4 + 0x435de0], 5
jmp 0x4025a2
mov edx, dword [0x433f64]
mov dword [esp + 0x14], edx
lea eax, [edi + 1]
push ebp
inc ecx
push eax
push ecx
mov ecx, dword [esp + 0x24]
and ecx, 0xff
lea edx, [esp + 0x20]
push ecx
push str.Read_Fail_Interface_type:_x_Card:_d_Panel:_d_Base:_x
push edx
mov dword [esp + 0x154], ebx
call fcn.0041a90a
mov eax, dword [esp + 0x2c]
add esp, 0x18
push 0
push 0
push eax
call fcn.0042212f
lea ecx, [esp + 0x14]
mov dword [esp + 0x13c], 0xffffffff
call fcn.0041c1c5
mov ecx, dword [esi + 0x8c]
inc edi
lea eax, [ecx*8]
sub eax, ecx
lea edx, [eax + eax*4]
cmp edi, dword [edx*8 + 0x435df0]
jl 0x40249d
mov ecx, dword [esi + 0x8c]
lea eax, [ecx*8]
sub eax, ecx
lea eax, [eax + eax*4]
shl eax, 3
lea ecx, [eax + 0x435eb8]
lea edx, [eax + 0x435e78]
push ecx
push edx
lea eax, [esp + 0x3c]
push str.EnumMFCHILD0000PCI_s_s
push eax
call dword [sym.imp.USER32.dll_wsprintfA]
add esp, 0x10
lea ecx, [esp + 0x10]
lea edx, [esp + 0x34]
push ecx
push ebx
push 0
push edx
push reloc.OLEAUT32.dll_SysReAllocString
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
test eax, eax
jne 0x402665
lea eax, [esp + 0x24]
lea ecx, [esp + 0x1c]
push eax
mov eax, dword [esp + 0x14]
lea edx, [esp + 0x34]
push ecx
push edx
push 0
push str.PORTNAME
push eax
mov dword [esp + 0x3c], 0x80
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
lea ecx, [esp + 0x1f]
push ecx
call fcn.0040e5b9
mov edx, dword [esi + 0x8c]
add esp, 4
lea ecx, [edx*8]
sub ecx, edx
lea edx, [ecx + ecx*4]
mov dword [edx*8 + 0x435dc0], eax
jmp 0x4026df
xor edx, edx
xor ecx, ecx
mov dl, byte [0x436904]
xor eax, eax
mov edi, edx
test edi, edi
jle 0x4026aa
mov ebp, 0x435dc0
cmp eax, dword [esi + 0x8c]
je 0x40269f
lea edx, [eax + 1]
lea ebx, [edi - 1]
cmp edx, ebx
jg 0x4026aa
mov ecx, dword [ebp]
mov ebx, dword [ebp + 0x118]
cmp ecx, ebx
mov ecx, eax
ja 0x40269f
mov ecx, edx
inc eax
add ebp, 0x118
cmp eax, edi
jl 0x40267c
mov ebx, dword [ecx*4 + 0x4368dc]
lea eax, [ecx*8]
sub eax, ecx
mov ecx, dword [esi + 0x8c]
lea edx, [eax + eax*4]
lea eax, [ecx*8]
mov edx, dword [edx*8 + 0x435dc0]
add edx, ebx
sub eax, ecx
lea eax, [eax + eax*4]
mov dword [eax*8 + 0x435dc0], edx
mov ecx, dword [esp + 0x10]
push ecx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov ecx, dword [esi + 0x8c]
xor edi, edi
lea eax, [ecx*8]
sub eax, ecx
lea eax, [eax + eax*4]
shl eax, 3
mov ecx, dword [eax + 0x435df0]
test ecx, ecx
jle 0x4028d3
xor ebp, ebp
lea edx, [eax + 0x435eb8]
lea eax, [eax + 0x435e78]
push edx
push eax
push ebp
lea ecx, [esp + 0x40]
push str.EnumMFCHILD_04xPCI_s_s
push ecx
call dword [sym.imp.USER32.dll_wsprintfA]
add esp, 0x14
lea edx, [esp + 0x10]
lea eax, [esp + 0x34]
push edx
push eax
push reloc.OLEAUT32.dll_SysReAllocString
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyA]
test eax, eax
jne 0x4028a3
lea ecx, [esp + 0x18]
lea edx, [esp + 0x28]
push ecx
mov ecx, dword [esp + 0x14]
lea eax, [esp + 0x20]
push edx
xor ebx, ebx
push eax
push ebx
push str.SBMPID
push ecx
mov dword [esp + 0x34], 3
mov dword [esp + 0x30], 4
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
test eax, eax
jne 0x40286b
mov ecx, dword [esi + 0x8c]
mov edx, dword [esp + 0x2a]
mov ebx, edx
lea eax, [ecx*8]
and ebx, 0xff
sub eax, ecx
lea eax, [eax + eax*4]
lea ecx, [edi + eax*2]
mov dword [ecx*4 + 0x435dc8], ebx
mov ecx, dword [esi + 0x8c]
lea eax, [ecx*8]
sub eax, ecx
lea eax, [eax + eax*4]
lea eax, [edi + eax*2]
mov ecx, dword [eax*4 + 0x435de0]
dec ecx
cmp ecx, 4
ja case.default.0x4027d8
jmp dword [ecx*4 + 0x4028ec]
mov dword [eax*4 + 0x435de0], 1
jmp 0x4028a3
test dh, dh
jne 0x402803
mov dword [eax*4 + 0x435de0], 2
jmp 0x4028a3
cmp dh, 1
jne 0x402818
mov dword [eax*4 + 0x435de0], 3
jmp 0x4028a3
push 0
push 0
push str.422_interface_fail
call fcn.0042212f
jmp 0x4028a3
test dh, dh
jne 0x402839
mov dword [eax*4 + 0x435de0], 4
jmp 0x4028a3
cmp dh, 1
jne 0x40284b
mov dword [eax*4 + 0x435de0], 5
jmp 0x4028a3
push 0
push 0
push str.485_interface_fail
call fcn.0042212f
jmp 0x4028a3
push 0
push 0
push str.something_wrong_happened_to_read_interfacetype_
call fcn.0042212f
jmp 0x4028a3
mov ecx, dword [esi + 0x8c]
lea eax, [ecx*8]
sub eax, ecx
lea ecx, [eax + eax*4]
lea edx, [edi + ecx*2]
mov dword [edx*4 + 0x435dc8], ebx
mov ecx, dword [esi + 0x8c]
lea eax, [ecx*8]
sub eax, ecx
lea eax, [eax + eax*4]
lea ecx, [edi + eax*2]
mov dword [ecx*4 + 0x435de0], ebx
mov edx, dword [esp + 0x10]
push edx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov ecx, dword [esi + 0x8c]
inc edi
add ebp, 8
lea eax, [ecx*8]
sub eax, ecx
lea eax, [eax + eax*4]
shl eax, 3
cmp edi, dword [eax + 0x435df0]
jl 0x402711
mov ecx, dword [esp + 0x134]
pop edi
pop esi
pop ebp
pop ebx
mov dword fs:[0], ecx
add esp, 0x130
ret