Function at 0x10040db0
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff0
sub esp, 0xee8
mov eax, dword [0x100abec0]
xor eax, esp
mov dword [esp + 0xee4], eax
mov eax, dword [ebp + 8]
push esi
push edi
mov dword [esp + 0x20], eax
xor edi, edi
mov eax, dword [ebp + 0xc]
push 0x800
mov dword [esp + 0x40], eax
lea eax, [esp + 0x4e4]
push edi
push eax
mov dword [esp + 0x24], edi
call fcn.100750b0
add esp, 0xc
lea eax, [esp + 0x2c]
xorps xmm0, xmm0
movaps xmmword [esp + 0x60], xmm0
movaps xmmword [esp + 0x70], xmm0
push eax
push 0x20019
push edi
push str.HARDWAREDEVICEMAPSERIALCOMM
push connect
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
jne 0x1004158e
xor esi, esi
mov dword [esp + 0x30], 1
lea eax, [esp + 0x24]
mov dword [esp + 0x28], 0x104
push eax
lea eax, [esp + 0xbc]
mov dword [esp + 0x28], 0x14
push eax
lea eax, [esp + 0x38]
push eax
push 0
lea eax, [esp + 0x38]
push eax
lea eax, [esp + 0xcf4]
push eax
push esi
push dword [esp + 0x48]
call dword [sym.imp.ADVAPI32.dll_RegEnumValueW]
inc esi
mov dword [esp + 0x1c], eax
lea ecx, [esp + 0xb8]
mov dword [esp + 0x14], esi
call fcn.100415b0
mov esi, eax
mov byte [esp + 0x60], 0
mov ecx, esi
lea edx, [ecx + 1]
nop dword [eax]
mov al, byte [ecx]
inc ecx
test al, al
jne 0x10040e90
sub ecx, edx
cmp ecx, 0x20
jae 0x10040eb3
lea edx, [esp + 0x60]
mov ecx, esi
sub edx, esi
mov al, byte [ecx]
lea ecx, [ecx + 1]
mov byte [edx + ecx - 1], al
test al, al
jne 0x10040ea6
push 1
push esi
call fcn.10071685
push 0x400
lea eax, [esp + 0xec]
push 0
push eax
call fcn.100750b0
add esp, 0x14
mov dword [esp + 0x50], 0
xorps xmm0, xmm0
lea ecx, [esp + 0x40]
movaps xmmword [esp + 0x40], xmm0
call fcn.10040670
mov esi, dword [sym.imp.KERNEL32.dll_GetCurrentThreadId]
lea eax, [esp + 0x60]
push eax
push 0x70
push str.SerialHelper::GetComDevices
call esi
push eax
call dword [sym.imp.KERNEL32.dll_GetCurrentProcessId]
push eax
lea eax, [esp + 0x54]
push eax
lea eax, [esp + 0xf8]
push str._s_t__d__d___INFO____s:_d__find_a_COM__s_n
push eax
call fcn.10008b40
lea ecx, [esp + 0x100]
add esp, 0x20
lea edx, [ecx + 1]
nop dword [eax + eax]
mov al, byte [ecx]
inc ecx
test al, al
jne 0x10040f30
sub ecx, edx
lea eax, [esp + 0xe0]
push ecx
push eax
call fcn.100407c0
push 0x400
lea eax, [esp + 0xec]
push 0
push eax
call fcn.100750b0
add esp, 0x14
mov dword [esp + 0x50], 0
xorps xmm0, xmm0
lea ecx, [esp + 0x40]
movaps xmmword [esp + 0x40], xmm0
call fcn.10040670
push dword [esp + 0x14]
push dword [esp + 0x2c]
push dword [esp + 0x2c]
push 0x71
push str.SerialHelper::GetComDevices
call esi
push eax
call dword [sym.imp.KERNEL32.dll_GetCurrentProcessId]
push eax
lea eax, [esp + 0x5c]
push eax
lea eax, [esp + 0x100]
push str._s_t__d__d___INFO____s:_d__dwVCount_is__lu__dwCount_is__lu__dwIndex_is__lu______n
push eax
call fcn.10008b40
lea ecx, [esp + 0x108]
add esp, 0x28
lea edx, [ecx + 1]
mov al, byte [ecx]
inc ecx
test al, al
jne 0x10040fb8
sub ecx, edx
lea eax, [esp + 0xe0]
push ecx
push eax
call fcn.100407c0
add esp, 8
cmp dword [esp + 0x1c], 0
jne 0x1004158e
cmp dword [esp + 0x24], 0
mov esi, dword [esp + 0x14]
jbe 0x10040e30
cmp dword [esp + 0x28], 0
jbe 0x10040e30
sub esp, 0xc
lea ecx, [esp + 0x6c]
call fcn.10041630
add esp, 0xc
mov esi, eax
lea eax, [esp + 0xe0]
mov dword [esp + 0x1c], esi
push 0x400
push 0
push eax
call fcn.100750b0
add esp, 0xc
mov dword [esp + 0x50], 0
xorps xmm0, xmm0
lea ecx, [esp + 0x40]
movaps xmmword [esp + 0x40], xmm0
call fcn.10040670
mov eax, dword [sym.imp.KERNEL32.dll_GetCurrentThreadId]
test esi, esi
jne 0x100410a3
push 0x78
push str.SerialHelper::GetComDevices
call eax
push eax
call dword [sym.imp.KERNEL32.dll_GetCurrentProcessId]
push eax
lea eax, [esp + 0x50]
push eax
lea eax, [esp + 0xf4]
push str._s_t__d__d___INFO____s:_d__InitSerialPort_fail_n
push eax
call fcn.10008b40
lea ecx, [esp + 0xfc]
add esp, 0x1c
lea edx, [ecx + 1]
nop word [eax + eax]
mov al, byte [ecx]
inc ecx
test al, al
jne 0x10041080
sub ecx, edx
lea eax, [esp + 0xe0]
push ecx
push eax
call fcn.100407c0
mov esi, dword [esp + 0x1c]
add esp, 8
jmp 0x10040e30
push 0x7b
push str.SerialHelper::GetComDevices
call eax
push eax
call dword [sym.imp.KERNEL32.dll_GetCurrentProcessId]
push eax
lea eax, [esp + 0x50]
push eax
lea eax, [esp + 0xf4]
push str._s_t__d__d___INFO____s:_d__InitSerialPort_OK_n
push eax
call fcn.10008b40
lea ecx, [esp + 0xfc]
add esp, 0x1c
lea edx, [ecx + 1]
mov al, byte [ecx]
inc ecx
test al, al
jne 0x100410d8
sub ecx, edx
lea eax, [esp + 0xe0]
push ecx
push eax
call fcn.100407c0
add esp, 8
lea edx, [esp + 0xa4]
mov ecx, esi
call fcn.10040940
test al, al
jne 0x10041114
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov esi, dword [esp + 0x14]
jmp 0x10040e30
push 0x400
lea eax, [esp + 0xe4]
push 0
push eax
call fcn.100750b0
add esp, 0xc
mov dword [esp + 0x50], 0
xorps xmm0, xmm0
lea ecx, [esp + 0x40]
movaps xmmword [esp + 0x40], xmm0
call fcn.10040670
push 0x84
push str.SerialHelper::GetComDevices
call dword [sym.imp.KERNEL32.dll_GetCurrentThreadId]
push eax
call dword [sym.imp.KERNEL32.dll_GetCurrentProcessId]
push eax
lea eax, [esp + 0x50]
push eax
lea eax, [esp + 0xf4]
push str._s_t__d__d___INFO____s:_d__ComCheckDSJDevice_Ok_n
push eax
call fcn.10008b40
lea ecx, [esp + 0xfc]
add esp, 0x1c
lea edx, [ecx + 1]
mov al, byte [ecx]
inc ecx
test al, al
jne 0x10041180
sub ecx, edx
lea eax, [esp + 0xe0]
push ecx
push eax
call fcn.100407c0
push 0x800
lea edx, [esp + 0x4ec]
mov ecx, esi
call fcn.10040be0
add esp, 0xc
test al, al
je 0x1004157e
lea eax, [esp + 0x4e0]
push 0x100a00bc
push eax
call fcn.10074190
add esp, 8
test eax, eax
jne 0x10041301
lea eax, [esp + 0x4e0]
push str.510R00
push eax
call fcn.10074190
add esp, 8
test eax, eax
jne 0x10041301
push 0x20
call fcn.10048c9a
mov ecx, eax
lea edx, [esp + 0x64]
mov eax, dword [esp + 0x24]
add esp, 4
lea esi, [eax + edi*4]
mov dword [esi], ecx
mov dword [esp + 0x38], esi
nop dword [eax]
mov al, byte [edx]
lea edx, [edx + 1]
mov byte [ecx], al
lea ecx, [ecx + 1]
test al, al
jne 0x10041210
mov edi, dword [esi]
dec edi
mov al, byte [edi + 1]
lea edi, [edi + 1]
test al, al
jne 0x10041221
mov ax, word [0x10098090]
lea edx, [esp + 0x4e0]
mov ecx, edx
mov word [edi], ax
mov dword [esp + 0x34], ecx
mov al, byte [edx]
inc edx
test al, al
jne 0x10041241
mov edi, dword [esi]
sub edx, ecx
dec edi
nop dword [eax]
mov al, byte [edi + 1]
inc edi
test al, al
jne 0x10041250
mov esi, dword [esp + 0x34]
lea eax, [esp + 0xe0]
mov ecx, edx
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, edx
push 0x400
and ecx, 3
push 0
rep movsb byte es:[edi], byte [esi]
push eax
call fcn.100750b0
add esp, 0xc
mov dword [esp + 0x50], 0
xorps xmm0, xmm0
lea ecx, [esp + 0x40]
movaps xmmword [esp + 0x40], xmm0
call fcn.10040670
mov eax, dword [esp + 0x38]
mov edi, dword [esp + 0x18]
push dword [eax]
push edi
push 0x97
push str.SerialHelper::GetComDevices
call dword [sym.imp.KERNEL32.dll_GetCurrentThreadId]
push eax
call dword [sym.imp.KERNEL32.dll_GetCurrentProcessId]
push eax
lea eax, [esp + 0x58]
push eax
lea eax, [esp + 0xfc]
push str._s_t__d__d___INFO____s:_d__find_aqulia_device_sn__d_____s__n
push eax
call fcn.10008b40
lea ecx, [esp + 0x104]
add esp, 0x24
lea edx, [ecx + 1]
mov al, byte [ecx]
inc ecx
test al, al
jne 0x100412e1
sub ecx, edx
lea eax, [esp + 0xe0]
push ecx
push eax
call fcn.100407c0
add esp, 8
inc edi
jmp 0x10041576
xor esi, esi
test edi, edi
jle 0x10041334
nop word [eax + eax]
lea eax, [esp + 0x4e0]
push eax
mov eax, dword [esp + 0x24]
push dword [eax + esi*4]
call fcn.10074190
add esp, 8
test eax, eax
jne 0x100413d6
inc esi
cmp esi, edi
jl 0x10041310
lea eax, [esp + 0x4e0]
mov dword [esp + 0x98], 0
push eax
lea eax, [esp + 0x64]
mov word [esp + 0xa0], 0
push eax
push str._s__s
xorps xmm0, xmm0
lea eax, [esp + 0x8c]
push 0x1e
push eax
movaps xmmword [esp + 0x94], xmm0
movq qword [esp + 0xa4], xmm0
call fcn.10031520
lea esi, [esp + 0x94]
add esp, 0x14
lea ecx, [esi + 1]
nop dword [eax + eax]
mov al, byte [esi]
inc esi
test al, al
jne 0x10041390
sub esi, ecx
lea eax, [esi + 1]
push eax
call fcn.10048c9a
add esp, 4
mov edi, eax
lea eax, [esi + 1]
push eax
push 0
push edi
call fcn.100750b0
add esp, 0xc
test esi, esi
je 0x100414a8
test edi, edi
jne 0x10041471
call fcn.10044f7f
mov dword [eax], 0x16
jmp 0x100414a3
push 0x400
lea eax, [esp + 0xe4]
push 0
push eax
call fcn.100750b0
add esp, 0xc
mov dword [esp + 0x50], 0
xorps xmm0, xmm0
lea ecx, [esp + 0x40]
movaps xmmword [esp + 0x40], xmm0
call fcn.10040670
lea eax, [esp + 0x4e0]
push eax
mov eax, dword [esp + 0x24]
push dword [eax + esi*4]
push esi
push 0x43
push str.AddNewDevice
call dword [sym.imp.KERNEL32.dll_GetCurrentThreadId]
push eax
call dword [sym.imp.KERNEL32.dll_GetCurrentProcessId]
push eax
lea eax, [esp + 0x5c]
push eax
lea eax, [esp + 0x100]
push str._s_t__d__d___INFO____s:_d__devicesList__d___s___newDevice___s___same_dev_no_need_add_to_list__n
push eax
call fcn.10008b40
lea ecx, [esp + 0x108]
add esp, 0x28
lea edx, [ecx + 1]
nop
mov al, byte [ecx]
inc ecx
test al, al
jne 0x10041450
sub ecx, edx
lea eax, [esp + 0xe0]
push ecx
push eax
call fcn.100407c0
add esp, 8
mov edi, 0x10095452
jmp 0x100414ac
lea eax, [esi + 1]
cmp eax, esi
jb 0x1004148c
push esi
lea eax, [esp + 0x84]
push eax
push edi
call fcn.10074b30
add esp, 0xc
jmp 0x100414a8
push eax
push 0
push edi
call fcn.100750b0
add esp, 0xc
call fcn.10044f7f
mov dword [eax], 0x22
call fcn.10048f2a
mov byte [edi + esi], 0
mov ecx, edi
lea edx, [ecx + 1]
mov al, byte [ecx]
inc ecx
test al, al
jne 0x100414b1
sub ecx, edx
cmp ecx, 0xa
jae 0x100414d6
push dword [esp + 0x1c]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov edi, dword [esp + 0x18]
mov esi, dword [esp + 0x14]
jmp 0x10040e30
mov eax, dword [esp + 0x18]
mov esi, dword [esp + 0x20]
push 0x400
push 0
mov dword [esi + eax*4], edi
lea eax, [esp + 0xe8]
push eax
call fcn.100750b0
add esp, 0xc
mov dword [esp + 0x50], 0
xorps xmm0, xmm0
lea ecx, [esp + 0x40]
movaps xmmword [esp + 0x40], xmm0
call fcn.10040670
mov edi, dword [esp + 0x18]
push dword [esi + edi*4]
push edi
push 0x8e
push str.SerialHelper::GetComDevices
call dword [sym.imp.KERNEL32.dll_GetCurrentThreadId]
push eax
call dword [sym.imp.KERNEL32.dll_GetCurrentProcessId]
push eax
lea eax, [esp + 0x58]
push eax
lea eax, [esp + 0xfc]
push str._s_t__d__d___INFO____s:_d__find_falcon_device_sn__d_____s__n
push eax
call fcn.10008b40
lea ecx, [esp + 0x104]
add esp, 0x24
lea edx, [ecx + 1]
mov al, byte [ecx]
inc ecx
test al, al
jne 0x10041555
sub ecx, edx
lea eax, [esp + 0xe0]
push ecx
push eax
call fcn.100407c0
mov eax, dword [esp + 0x44]
add esp, 8
inc edi
inc dword [eax]
mov esi, dword [esp + 0x1c]
mov dword [esp + 0x18], edi
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov esi, dword [esp + 0x14]
jmp 0x10040e30
push dword [esp + 0x2c]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov ecx, dword [esp + 0xeec]
mov eax, edi
pop edi
pop esi
xor ecx, esp
call fcn.10071677
mov esp, ebp
pop ebp
ret 8