Function at 0x40632a
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x124
push 0x40e740
push 0x4118f8
call dword [sym.imp.KERNEL32.dll_lstrcmpA]
test eax, eax
jne 0x4063a2
mov dword [ebp - 0x114], 0
jmp 0x406362
mov eax, dword [ebp - 0x114]
add eax, 1
mov dword [ebp - 0x114], eax
mov ecx, dword [ebp + 0xc]
mov edx, dword [ebp - 0x114]
cmp edx, dword [ecx + 0x2b0]
jge 0x40639d
mov eax, dword [ebp - 0x114]
mov ecx, dword [ebp + 0xc]
mov dword [ecx + eax*4 + 0x3b4], 0x78
mov edx, dword [ebp - 0x114]
mov eax, dword [ebp + 0xc]
mov dword [eax + edx*4 + 0x3d4], 0x80
jmp 0x406353
jmp 0x406464
push 0x40e74c
push 0x4118f8
call dword [sym.imp.KERNEL32.dll_lstrcmpA]
test eax, eax
jne 0x40640e
mov dword [ebp - 0x114], 0
jmp 0x4063d1
mov ecx, dword [ebp - 0x114]
add ecx, 1
mov dword [ebp - 0x114], ecx
mov edx, dword [ebp + 0xc]
mov eax, dword [ebp - 0x114]
cmp eax, dword [edx + 0x2b0]
jge 0x40640c
mov ecx, dword [ebp - 0x114]
mov edx, dword [ebp + 0xc]
mov dword [edx + ecx*4 + 0x3b4], 0x38
mov eax, dword [ebp - 0x114]
mov ecx, dword [ebp + 0xc]
mov dword [ecx + eax*4 + 0x3d4], 0x40
jmp 0x4063c2
jmp 0x406464
mov dword [ebp - 0x114], 0
jmp 0x406429
mov edx, dword [ebp - 0x114]
add edx, 1
mov dword [ebp - 0x114], edx
mov eax, dword [ebp + 0xc]
mov ecx, dword [ebp - 0x114]
cmp ecx, dword [eax + 0x2b0]
jge 0x406464
mov edx, dword [ebp - 0x114]
mov eax, dword [ebp + 0xc]
mov dword [eax + edx*4 + 0x3b4], 0xe
mov ecx, dword [ebp - 0x114]
mov edx, dword [ebp + 0xc]
mov dword [edx + ecx*4 + 0x3d4], 0x10
jmp 0x40641a
mov dword [ebp - 0x114], 0
jmp 0x40647f
mov eax, dword [ebp - 0x114]
add eax, 1
mov dword [ebp - 0x114], eax
mov ecx, dword [ebp + 0xc]
mov edx, dword [ebp - 0x114]
cmp edx, dword [ecx + 0x2b0]
jge 0x4067df
mov eax, dword [ebp + 8]
push eax
mov ecx, dword [ebp - 0x114]
push ecx
mov edx, dword [str.EnumMF_]
push edx
push 0x40e758
lea eax, [ebp - 0x110]
push eax
call dword [sym.imp.USER32.dll_wsprintfA]
add esp, 0x14
lea ecx, [ebp - 0x120]
push ecx
lea edx, [ebp - 0x110]
push edx
push 0x80000002
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyA]
test eax, eax
je 0x4064df
xor eax, eax
jmp 0x4067e4
mov dword [ebp - 0xc], 4
lea eax, [ebp - 0xc]
push eax
lea ecx, [ebp - 8]
push ecx
push 0
push 0
mov edx, dword [str.Settings]
push edx
mov eax, dword [ebp - 0x120]
push eax
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
test eax, eax
jne 0x406745
cmp dword [ebp - 0xc], 4
je 0x406578
push 0x40e76c
push 0x4118f8
call dword [sym.imp.KERNEL32.dll_lstrcmpA]
test eax, eax
jne 0x40653b
mov dword [ebp - 4], 0x78
mov dword [ebp - 0x118], 0x80
jmp 0x406573
push 0x40e778
push 0x4118f8
call dword [sym.imp.KERNEL32.dll_lstrcmpA]
test eax, eax
jne 0x406562
mov dword [ebp - 4], 0x38
mov dword [ebp - 0x118], 0x40
jmp 0x406573
mov dword [ebp - 4], 0xe
mov dword [ebp - 0x118], 0x10
jmp 0x406743
mov dword [ebp - 0x124], 0
jmp 0x406593
mov ecx, dword [ebp - 0x124]
add ecx, 1
mov dword [ebp - 0x124], ecx
cmp dword [ebp - 0x124], 3
jge 0x40665a
mov edx, dword [ebp - 0x124]
shl edx, 4
mov eax, dword [edx + 0x40d618]
push eax
push 0x4118f8
call dword [sym.imp.KERNEL32.dll_lstrcmpA]
test eax, eax
jne 0x406655
mov dword [ebp - 0x11c], 0
jmp 0x4065de
mov ecx, dword [ebp - 0x11c]
add ecx, 1
mov dword [ebp - 0x11c], ecx
mov edx, dword [ebp - 0x124]
shl edx, 4
mov eax, dword [ebp - 0x11c]
cmp eax, dword [edx + 0x40d61c]
jge 0x40662a
mov ecx, dword [ebp - 5]
and ecx, 0xff
mov edx, dword [ebp - 0x124]
shl edx, 4
mov eax, dword [ebp - 0x11c]
imul eax, eax, 0xc
mov edx, dword [edx + 0x40d620]
cmp ecx, dword [edx + eax]
jne 0x406628
mov eax, dword [ebp - 5]
and eax, 0xff
mov dword [ebp - 4], eax
jmp 0x40662a
jmp 0x4065cf
mov ecx, dword [ebp - 0x124]
shl ecx, 4
mov edx, dword [ebp - 0x11c]
cmp edx, dword [ecx + 0x40d61c]
jne 0x406653
mov eax, dword [ebp - 0x124]
shl eax, 4
mov ecx, dword [eax + 0x40d624]
mov dword [ebp - 4], ecx
jmp 0x40665a
jmp 0x406584
mov dword [ebp - 0x124], 0
jmp 0x406675
mov edx, dword [ebp - 0x124]
add edx, 1
mov dword [ebp - 0x124], edx
cmp dword [ebp - 0x124], 3
jge 0x406743
mov eax, dword [ebp - 0x124]
shl eax, 4
mov ecx, dword [eax + 0x40d5e8]
push ecx
push 0x4118f8
call dword [sym.imp.KERNEL32.dll_lstrcmpA]
test eax, eax
jne 0x40673e
mov dword [ebp - 0x11c], 0
jmp 0x4066c0
mov edx, dword [ebp - 0x11c]
add edx, 1
mov dword [ebp - 0x11c], edx
mov eax, dword [ebp - 0x124]
shl eax, 4
mov ecx, dword [ebp - 0x11c]
cmp ecx, dword [eax + 0x40d5ec]
jge 0x406710
mov edx, dword [ebp - 7]
and edx, 0xff
mov eax, dword [ebp - 0x124]
shl eax, 4
mov ecx, dword [ebp - 0x11c]
imul ecx, ecx, 0xc
mov eax, dword [eax + 0x40d5f0]
cmp edx, dword [eax + ecx]
jne 0x40670e
mov ecx, dword [ebp - 7]
and ecx, 0xff
mov dword [ebp - 0x118], ecx
jmp 0x406710
jmp 0x4066b1
mov edx, dword [ebp - 0x124]
shl edx, 4
mov eax, dword [ebp - 0x11c]
cmp eax, dword [edx + 0x40d5ec]
jne 0x40673c
mov ecx, dword [ebp - 0x124]
shl ecx, 4
mov edx, dword [ecx + 0x40d5f4]
mov dword [ebp - 0x118], edx
jmp 0x406743
jmp 0x406666
jmp 0x4067a4
push str.MOXA_MU860
push 0x4118f8
call dword [sym.imp.KERNEL32.dll_lstrcmpA]
test eax, eax
jne 0x40676c
mov dword [ebp - 4], 0x78
mov dword [ebp - 0x118], 0x80
jmp 0x4067a4
push str.MOXA_MU150
push 0x4118f8
call dword [sym.imp.KERNEL32.dll_lstrcmpA]
test eax, eax
jne 0x406793
mov dword [ebp - 4], 0x38
mov dword [ebp - 0x118], 0x40
jmp 0x4067a4
mov dword [ebp - 4], 0xe
mov dword [ebp - 0x118], 0x10
mov eax, dword [ebp - 0x120]
push eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov ecx, dword [ebp - 0x114]
mov edx, dword [ebp + 0xc]
mov eax, dword [ebp - 4]
mov dword [edx + ecx*4 + 0x3b4], eax
mov ecx, dword [ebp - 0x114]
mov edx, dword [ebp + 0xc]
mov eax, dword [ebp - 0x118]
mov dword [edx + ecx*4 + 0x3d4], eax
jmp 0x406470
mov eax, 1
mov esp, ebp
pop ebp
ret