Function at 0x1003b7e0
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff0
mov eax, 0x2bb8
call fcn.1004dc30
mov eax, dword [0x100a049c]
xor eax, esp
mov dword [esp + 0x2bb4], eax
mov eax, dword [ebp + 8]
push esi
push edi
mov dword [esp + 8], eax
xor esi, esi
mov eax, dword [ebp + 0xc]
push 0x800
mov dword [esp + 0x30], eax
lea eax, [esp + 0x21b4]
push esi
push eax
mov dword [esp + 0x1c], esi
call fcn.10050650
add esp, 0xc
lea eax, [esp + 0x20]
xorps xmm0, xmm0
movaps xmmword [esp + 0x30], xmm0
movaps xmmword [esp + 0x40], xmm0
push eax
push 0x20019
push esi
push str.HARDWAREDEVICEMAPSERIALCOMM
push connect
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
jne 0x1003c09d
mov dword [esp + 0x24], 1
lea eax, [esp + 0x18]
mov dword [esp + 0x1c], 0x104
push eax
lea eax, [esp + 0x178]
mov dword [esp + 0x1c], 0x14
push eax
lea eax, [esp + 0x2c]
push eax
push 0
lea eax, [esp + 0x2c]
push eax
lea eax, [esp + 0x29c4]
push eax
push esi
push dword [esp + 0x3c]
call dword [sym.imp.ADVAPI32.dll_RegEnumValueW]
inc esi
mov dword [esp + 0x14], eax
lea ecx, [esp + 0x174]
mov dword [esp + 0xc], esi
lea edx, [ecx + 2]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x1003b8b1
push 0
push 0
push 0
push 0
sub ecx, edx
lea eax, [esp + 0x184]
sar ecx, 1
push ecx
push eax
push 0
push 0
call dword [sym.imp.KERNEL32.dll_WideCharToMultiByte]
mov edi, eax
lea eax, [edi + 1]
push eax
call fcn.1003ff4d
lea ecx, [esp + 0x178]
add esp, 4
mov esi, eax
lea edx, [ecx + 2]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x1003b8f5
push 0
push 0
push edi
push esi
sub ecx, edx
lea eax, [esp + 0x184]
sar ecx, 1
push ecx
push eax
push 0
push 0
call dword [sym.imp.KERNEL32.dll_WideCharToMultiByte]
mov ecx, esi
mov byte [esi + edi], 0
mov byte [esp + 0x30], 0
lea edx, [ecx + 1]
nop dword [eax + eax]
mov al, byte [ecx]
inc ecx
test al, al
jne 0x1003b930
sub ecx, edx
cmp ecx, 0x20
jae 0x1003b953
lea edx, [esp + 0x30]
mov ecx, esi
sub edx, esi
mov al, byte [ecx]
lea ecx, [ecx + 1]
mov byte [edx + ecx - 1], al
test al, al
jne 0x1003b946
push 1
push esi
call fcn.1004cce7
push 0x400
lea eax, [esp + 0x1bc]
push 0
push eax
call fcn.10050650
add esp, 0x14
mov dword [esp + 0x80], 0
xorps xmm0, xmm0
lea ecx, [esp + 0x70]
movaps xmmword [esp + 0x70], xmm0
call fcn.1003b0a0
mov edi, dword [sym.imp.KERNEL32.dll_GetCurrentThreadId]
lea eax, [esp + 0x30]
push eax
push 0x70
push str.SerialHelper::GetComDevices
call edi
mov esi, dword [sym.imp.KERNEL32.dll_GetCurrentProcessId]
push eax
call esi
push eax
lea eax, [esp + 0x84]
push eax
lea eax, [esp + 0x1c8]
push str._s_t__d__d___INFO____s:_d__find_a_COM__s_n
push eax
call fcn.10007a40
lea ecx, [esp + 0x1d0]
add esp, 0x20
lea edx, [ecx + 1]
mov al, byte [ecx]
inc ecx
test al, al
jne 0x1003b9d3
sub ecx, edx
lea eax, [esp + 0x1b0]
push ecx
push eax
call fcn.1003b1f0
push 0x400
lea eax, [esp + 0x5bc]
push 0
push eax
call fcn.10050650
add esp, 0x14
mov dword [esp + 0xa0], 0
xorps xmm0, xmm0
lea ecx, [esp + 0x90]
movaps xmmword [esp + 0x90], xmm0
call fcn.1003b0a0
push dword [esp + 0xc]
push dword [esp + 0x20]
push dword [esp + 0x20]
push 0x71
push str.SerialHelper::GetComDevices
call edi
push eax
call esi
push eax
lea eax, [esp + 0xac]
push eax
lea eax, [esp + 0x5d0]
push str._s_t__d__d___INFO____s:_d__dwVCount_is__lu__dwCount_is__lu__dwIndex_is__lu______n
push eax
call fcn.10007a40
lea ecx, [esp + 0x5d8]
add esp, 0x28
lea edx, [ecx + 1]
mov al, byte [ecx]
inc ecx
test al, al
jne 0x1003ba63
sub ecx, edx
lea eax, [esp + 0x5b0]
push ecx
push eax
call fcn.1003b1f0
add esp, 8
cmp dword [esp + 0x14], 0
jne 0x1003c099
cmp dword [esp + 0x18], 0
mov esi, dword [esp + 0xc]
jbe 0x1003b862
cmp dword [esp + 0x1c], 0
jbe 0x1003b862
sub esp, 0xc
lea ecx, [esp + 0x3c]
call fcn.1003c0c0
add esp, 0xc
mov esi, eax
mov dword [esp + 0x14], esi
push 0x400
push 0
test esi, esi
jne 0x1003bb53
lea eax, [esp + 0x9b8]
push eax
call fcn.10050650
add esp, 0xc
mov dword [esp + 0xc0], esi
xorps xmm0, xmm0
lea ecx, [esp + 0xb0]
movaps xmmword [esp + 0xb0], xmm0
call fcn.1003b0a0
push 0x78
push str.SerialHelper::GetComDevices
call edi
push eax
mov eax, dword [sym.imp.KERNEL32.dll_GetCurrentProcessId]
call eax
push eax
lea eax, [esp + 0xc0]
push eax
lea eax, [esp + 0x9c4]
push str._s_t__d__d___INFO____s:_d__InitSerialPort_fail_n
push eax
call fcn.10007a40
lea ecx, [esp + 0x9cc]
add esp, 0x1c
lea edx, [ecx + 1]
nop dword [eax]
mov al, byte [ecx]
inc ecx
test al, al
jne 0x1003bb30
sub ecx, edx
lea eax, [esp + 0x9b0]
push ecx
push eax
call fcn.1003b1f0
mov esi, dword [esp + 0x14]
add esp, 8
jmp 0x1003b862
lea eax, [esp + 0xdb8]
push eax
call fcn.10050650
add esp, 0xc
mov dword [esp + 0xe0], 0
xorps xmm0, xmm0
lea ecx, [esp + 0xd0]
movaps xmmword [esp + 0xd0], xmm0
call fcn.1003b0a0
push 0x7b
push str.SerialHelper::GetComDevices
call edi
push eax
mov eax, dword [sym.imp.KERNEL32.dll_GetCurrentProcessId]
call eax
push eax
lea eax, [esp + 0xe0]
push eax
lea eax, [esp + 0xdc4]
push str._s_t__d__d___INFO____s:_d__InitSerialPort_OK_n
push eax
call fcn.10007a40
lea ecx, [esp + 0xdcc]
add esp, 0x1c
lea edx, [ecx + 1]
nop
mov al, byte [ecx]
inc ecx
test al, al
jne 0x1003bbc0
sub ecx, edx
lea eax, [esp + 0xdb0]
push ecx
push eax
call fcn.1003b1f0
add esp, 8
lea edx, [esp + 0x19c]
mov ecx, esi
call fcn.1003b370
test al, al
jne 0x1003bbfc
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov esi, dword [esp + 0xc]
jmp 0x1003b862
push 0x400
lea eax, [esp + 0x11b4]
push 0
push eax
call fcn.10050650
add esp, 0xc
mov dword [esp + 0x100], 0
xorps xmm0, xmm0
lea ecx, [esp + 0xf0]
movaps xmmword [esp + 0xf0], xmm0
call fcn.1003b0a0
push 0x84
push str.SerialHelper::GetComDevices
call edi
push eax
call dword [sym.imp.KERNEL32.dll_GetCurrentProcessId]
push eax
lea eax, [esp + 0x100]
push eax
lea eax, [esp + 0x11c4]
push str._s_t__d__d___INFO____s:_d__ComCheckDSJDevice_Ok_n
push eax
call fcn.10007a40
lea ecx, [esp + 0x11cc]
add esp, 0x1c
lea edx, [ecx + 1]
mov al, byte [ecx]
inc ecx
test al, al
jne 0x1003bc70
sub ecx, edx
lea eax, [esp + 0x11b0]
push ecx
push eax
call fcn.1003b1f0
push 0x800
lea edx, [esp + 0x21bc]
mov ecx, esi
call fcn.1003b610
add esp, 0xc
test al, al
je 0x1003c089
lea eax, [esp + 0x21b0]
push 0x10096674
push eax
call fcn.1004f8b0
add esp, 8
test eax, eax
jne 0x1003be02
lea eax, [esp + 0x21b0]
push str.510R00
push eax
call fcn.1004f8b0
add esp, 8
test eax, eax
jne 0x1003be02
push 0x20
call fcn.1005d56a
mov esi, dword [esp + 0x14]
lea edx, [esp + 0x34]
mov edi, dword [esp + 0xc]
mov ecx, eax
add esp, 4
mov dword [edi + esi*4], ecx
nop word [eax + eax]
mov al, byte [edx]
lea edx, [edx + 1]
mov byte [ecx], al
lea ecx, [ecx + 1]
test al, al
jne 0x1003bd00
mov edi, dword [edi + esi*4]
dec edi
mov al, byte [edi + 1]
lea edi, [edi + 1]
test al, al
jne 0x1003bd12
mov ax, word [0x1008ed28]
lea edx, [esp + 0x21b0]
mov ecx, edx
mov word [edi], ax
mov dword [esp + 0x28], ecx
mov al, byte [edx]
inc edx
test al, al
jne 0x1003bd32
mov edi, dword [esp + 8]
sub edx, ecx
mov edi, dword [edi + esi*4]
dec edi
mov al, byte [edi + 1]
inc edi
test al, al
jne 0x1003bd43
mov esi, dword [esp + 0x28]
lea eax, [esp + 0x15b0]
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.10050650
add esp, 0xc
mov dword [esp + 0x120], 0
xorps xmm0, xmm0
lea ecx, [esp + 0x110]
movaps xmmword [esp + 0x110], xmm0
call fcn.1003b0a0
mov esi, dword [esp + 0x10]
mov eax, dword [esp + 8]
push dword [eax + esi*4]
mov eax, dword [sym.imp.KERNEL32.dll_GetCurrentThreadId]
push esi
push 0x97
push str.SerialHelper::GetComDevices
call eax
push eax
call dword [sym.imp.KERNEL32.dll_GetCurrentProcessId]
push eax
lea eax, [esp + 0x128]
push eax
lea eax, [esp + 0x15cc]
push str._s_t__d__d___INFO____s:_d__find_aqulia_device_sn__d_____s__n
push eax
call fcn.10007a40
lea ecx, [esp + 0x15d4]
add esp, 0x24
lea edx, [ecx + 1]
mov al, byte [ecx]
inc ecx
test al, al
jne 0x1003bde2
sub ecx, edx
lea eax, [esp + 0x15b0]
push ecx
push eax
call fcn.1003b1f0
add esp, 8
inc esi
jmp 0x1003c081
mov edi, dword [esp + 0x10]
xor esi, esi
test edi, edi
jle 0x1003be34
nop dword [eax]
lea eax, [esp + 0x21b0]
push eax
mov eax, dword [esp + 0xc]
push dword [eax + esi*4]
call fcn.1004f8b0
add esp, 8
test eax, eax
jne 0x1003bec6
inc esi
cmp esi, edi
jl 0x1003be10
lea eax, [esp + 0x21b0]
mov dword [esp + 0x68], 0
push eax
lea eax, [esp + 0x34]
mov word [esp + 0x70], 0
push eax
push str._s__s
xorps xmm0, xmm0
lea eax, [esp + 0x5c]
push 0x1e
push eax
movaps xmmword [esp + 0x64], xmm0
movq qword [esp + 0x74], xmm0
call fcn.1002cc20
lea esi, [esp + 0x64]
add esp, 0x14
lea ecx, [esi + 1]
nop dword [eax]
mov al, byte [esi]
inc esi
test al, al
jne 0x1003be80
sub esi, ecx
lea eax, [esi + 1]
push eax
call fcn.1005d56a
add esp, 4
mov edi, eax
lea eax, [esi + 1]
push eax
push 0
push edi
call fcn.10050650
add esp, 0xc
test esi, esi
je 0x1003bfa5
test edi, edi
jne 0x1003bf71
call fcn.1005984c
mov dword [eax], 0x16
jmp 0x1003bfa0
push 0x400
lea eax, [esp + 0x19b4]
push 0
push eax
call fcn.10050650
add esp, 0xc
mov dword [esp + 0x140], 0
xorps xmm0, xmm0
lea ecx, [esp + 0x130]
movaps xmmword [esp + 0x130], xmm0
call fcn.1003b0a0
lea eax, [esp + 0x21b0]
push eax
mov eax, dword [esp + 0xc]
push dword [eax + esi*4]
mov eax, dword [sym.imp.KERNEL32.dll_GetCurrentThreadId]
push esi
push 0x43
push str.AddNewDevice
call eax
push eax
call dword [sym.imp.KERNEL32.dll_GetCurrentProcessId]
push eax
lea eax, [esp + 0x14c]
push eax
lea eax, [esp + 0x19d0]
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.10007a40
lea ecx, [esp + 0x19d8]
add esp, 0x28
lea edx, [ecx + 1]
nop dword [eax]
mov al, byte [ecx]
inc ecx
test al, al
jne 0x1003bf50
sub ecx, edx
lea eax, [esp + 0x19b0]
push ecx
push eax
call fcn.1003b1f0
add esp, 8
mov edi, 0x1008c2d9
jmp 0x1003bfa9
lea eax, [esi + 1]
cmp eax, esi
jb 0x1003bf89
push esi
lea eax, [esp + 0x54]
push eax
push edi
call fcn.100500d0
add esp, 0xc
jmp 0x1003bfa5
push eax
push 0
push edi
call fcn.10050650
add esp, 0xc
call fcn.1005984c
mov dword [eax], 0x22
call fcn.1005d7fa
mov byte [edi + esi], 0
mov ecx, edi
lea edx, [ecx + 1]
nop
mov al, byte [ecx]
inc ecx
test al, al
jne 0x1003bfb0
sub ecx, edx
cmp ecx, 0xa
jae 0x1003bfd1
push dword [esp + 0x14]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov esi, dword [esp + 0xc]
jmp 0x1003b862
mov eax, dword [esp + 8]
mov esi, dword [esp + 0x10]
push 0x400
push 0
mov dword [eax + esi*4], edi
lea eax, [esp + 0x1db8]
push eax
call fcn.10050650
add esp, 0xc
mov dword [esp + 0x160], 0
xorps xmm0, xmm0
lea ecx, [esp + 0x150]
movaps xmmword [esp + 0x150], xmm0
call fcn.1003b0a0
mov eax, dword [esp + 8]
push dword [eax + esi*4]
push esi
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 + 0x168]
push eax
lea eax, [esp + 0x1dcc]
push str._s_t__d__d___INFO____s:_d__find_falcon_device_sn__d_____s__n
push eax
call fcn.10007a40
lea ecx, [esp + 0x1dd4]
add esp, 0x24
lea edx, [ecx + 1]
nop dword [eax]
mov al, byte [ecx]
inc ecx
test al, al
jne 0x1003c060
sub ecx, edx
lea eax, [esp + 0x1db0]
push ecx
push eax
call fcn.1003b1f0
mov edi, dword [esp + 0x34]
add esp, 8
inc esi
inc dword [edi]
mov dword [esp + 0x10], esi
mov esi, dword [esp + 0x14]
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov esi, dword [esp + 0xc]
jmp 0x1003b862
mov esi, dword [esp + 0x10]
push dword [esp + 0x20]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov ecx, dword [esp + 0x2bbc]
mov eax, esi
pop edi
pop esi
xor ecx, esp
call fcn.1004ccd9
mov esp, ebp
pop ebp
ret 8