Function at 0x405522
Capabilities:
Set registry value

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x2a4
lea eax, [ebp - 0x290]
push eax
mov ecx, dword [str.EnumRootMoxaAsync]
push ecx
push 0x80000002
call dword [sym.imp.ADVAPI32.dll_RegCreateKeyA]
mov edx, dword [ebp - 0x290]
push edx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, dword [ebp + 0x10]
push eax
mov ecx, dword [str.EnumRootMoxaAsync]
push ecx
push 0x40e668
lea edx, [ebp - 0x284]
push edx
call dword [sym.imp.USER32.dll_wsprintfA]
add esp, 0x10
lea eax, [ebp - 0x290]
push eax
lea ecx, [ebp - 0x284]
push ecx
push 0x80000002
call dword [sym.imp.ADVAPI32.dll_RegCreateKeyA]
mov dword [ebp - 0x2a4], 0
mov edx, dword [ebp + 8]
xor eax, eax
mov ax, word [edx + 0x22c]
test eax, eax
je 0x4055f4
mov dword [ebp - 0x294], 0
jmp 0x4055bf
mov ecx, dword [ebp - 0x294]
add ecx, 1
mov dword [ebp - 0x294], ecx
cmp dword [ebp - 0x294], 0x38
jae 0x4055f2
mov edx, dword [ebp - 0x2a4]
mov eax, dword [ebp - 0x294]
mov cl, byte [eax + 0x40df3c]
mov byte [ebp + edx - 0x180], cl
mov edx, dword [ebp - 0x2a4]
add edx, 1
mov dword [ebp - 0x2a4], edx
jmp 0x4055b0
jmp 0x405642
mov dword [ebp - 0x294], 0
jmp 0x40560f
mov eax, dword [ebp - 0x294]
add eax, 1
mov dword [ebp - 0x294], eax
cmp dword [ebp - 0x294], 0x18
jae 0x405642
mov ecx, dword [ebp - 0x2a4]
mov edx, dword [ebp - 0x294]
mov al, byte [edx + 0x40df74]
mov byte [ebp + ecx - 0x180], al
mov ecx, dword [ebp - 0x2a4]
add ecx, 1
mov dword [ebp - 0x2a4], ecx
jmp 0x405600
mov dword [ebp - 0x288], 0
jmp 0x40565d
mov edx, dword [ebp - 0x288]
add edx, 1
mov dword [ebp - 0x288], edx
mov eax, dword [ebp + 8]
mov ecx, dword [ebp - 0x288]
cmp ecx, dword [eax + 0x2b0]
jge 0x4056be
mov dword [ebp - 0x294], 0
jmp 0x405689
mov edx, dword [ebp - 0x294]
add edx, 1
mov dword [ebp - 0x294], edx
cmp dword [ebp - 0x294], 0x20
jae 0x4056bc
mov eax, dword [ebp - 0x2a4]
mov ecx, dword [ebp - 0x294]
mov dl, byte [ecx + 0x40df8c]
mov byte [ebp + eax - 0x180], dl
mov eax, dword [ebp - 0x2a4]
add eax, 1
mov dword [ebp - 0x2a4], eax
jmp 0x40567a
jmp 0x40564e
mov dword [ebp - 0x294], 0
jmp 0x4056d9
mov ecx, dword [ebp - 0x294]
add ecx, 1
mov dword [ebp - 0x294], ecx
cmp dword [ebp - 0x294], 4
jae 0x40570c
mov edx, dword [ebp - 0x2a4]
mov eax, dword [ebp - 0x294]
mov cl, byte [eax + 0x419e2c]
mov byte [ebp + edx - 0x180], cl
mov edx, dword [ebp - 0x2a4]
add edx, 1
mov dword [ebp - 0x2a4], edx
jmp 0x4056ca
mov eax, dword [ebp + 0xc]
imul eax, eax, 0x18
mov ecx, dword [eax + 0x40ee48]
mov dword [ebp - 0x28c], ecx
mov edx, dword [ebp - 0x2a4]
push edx
lea eax, [ebp - 0x180]
push eax
push 3
push 0
mov ecx, dword [str.ForcedConfig]
push ecx
mov edx, dword [ebp - 0x290]
push edx
call dword [sym.imp.ADVAPI32.dll_RegSetValueExA]
mov eax, dword [str.MoxaAsync]
push eax
call dword [sym.imp.KERNEL32.dll_lstrlenA]
add eax, 1
push eax
mov ecx, dword [str.MoxaAsync]
push ecx
push 1
push 0
mov edx, dword [str.Class]
push edx
mov eax, dword [ebp - 0x290]
push eax
call dword [sym.imp.ADVAPI32.dll_RegSetValueExA]
push 4
push 0x40dec4
push 3
push 0
mov ecx, dword [str.ConfigFlags]
push ecx
mov edx, dword [ebp - 0x290]
push edx
call dword [sym.imp.ADVAPI32.dll_RegSetValueExA]
mov eax, dword [ebp - 0x28c]
push eax
call dword [sym.imp.KERNEL32.dll_lstrlenA]
add eax, 1
push eax
mov ecx, dword [ebp - 0x28c]
push ecx
push 1
push 0
mov edx, dword [str.DeviceDesc]
push edx
mov eax, dword [ebp - 0x290]
push eax
call dword [sym.imp.ADVAPI32.dll_RegSetValueExA]
mov ecx, dword [ebp + 0x14]
push ecx
call dword [sym.imp.KERNEL32.dll_lstrlenA]
add eax, 1
push eax
mov edx, dword [ebp + 0x14]
push edx
push 1
push 0
mov eax, dword [str.Driver]
push eax
mov ecx, dword [ebp - 0x290]
push ecx
call dword [sym.imp.ADVAPI32.dll_RegSetValueExA]
mov edx, dword [ebp + 0xc]
imul edx, edx, 0x18
mov eax, dword [edx + 0x40ee38]
push eax
push str.MX10_02d
lea ecx, [ebp - 0x2a0]
push ecx
call dword [sym.imp.USER32.dll_wsprintfA]
add esp, 0xc
push 7
lea edx, [ebp - 0x2a0]
push edx
push 1
push 0
mov eax, dword [str.HardwareID]
push eax
mov ecx, dword [ebp - 0x290]
push ecx
call dword [sym.imp.ADVAPI32.dll_RegSetValueExA]
mov edx, dword [str.Moxa_Technologies]
push edx
call dword [sym.imp.KERNEL32.dll_lstrlenA]
add eax, 1
push eax
mov eax, dword [str.Moxa_Technologies]
push eax
push 1
push 0
mov ecx, dword [0x40de08]
push ecx
mov edx, dword [ebp - 0x290]
push edx
call dword [sym.imp.ADVAPI32.dll_RegSetValueExA]
mov eax, dword [ebp - 0x290]
push eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, 1
mov esp, ebp
pop ebp
ret