Function at 0x1003b6e0
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff0
mov eax, 0x2bb8
call fcn.1004db20
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.10050540
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 0x1003bf8e
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 0x1003b7b1
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.1003fe3d
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 0x1003b7f5
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 0x1003b830
sub ecx, edx
cmp ecx, 0x20
jae 0x1003b853
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 0x1003b846
push 1
push esi
call fcn.1004cbd5
push 0x400
lea eax, [esp + 0x1bc]
push 0
push eax
call fcn.10050540
add esp, 0x14
mov dword [esp + 0x80], 0
xorps xmm0, xmm0
lea ecx, [esp + 0x70]
movaps xmmword [esp + 0x70], xmm0
call fcn.1003afa0
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 0x1003b8d3
sub ecx, edx
lea eax, [esp + 0x1b0]
push ecx
push eax
call fcn.1003b0f0
push 0x400
lea eax, [esp + 0x5bc]
push 0
push eax
call fcn.10050540
add esp, 0x14
mov dword [esp + 0xa0], 0
xorps xmm0, xmm0
lea ecx, [esp + 0x90]
movaps xmmword [esp + 0x90], xmm0
call fcn.1003afa0
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 0x1003b963
sub ecx, edx
lea eax, [esp + 0x5b0]
push ecx
push eax
call fcn.1003b0f0
add esp, 8
cmp dword [esp + 0x14], 0
jne 0x1003bf8a
cmp dword [esp + 0x18], 0
mov esi, dword [esp + 0xc]
jbe 0x1003b762
cmp dword [esp + 0x1c], 0
jbe 0x1003b762
sub esp, 0xc
lea ecx, [esp + 0x3c]
call fcn.1003bfb0
add esp, 0xc
mov esi, eax
mov dword [esp + 0x14], esi
push 0x400
push 0
test esi, esi
jne 0x1003ba53
lea eax, [esp + 0x9b8]
push eax
call fcn.10050540
add esp, 0xc
mov dword [esp + 0xc0], esi
xorps xmm0, xmm0
lea ecx, [esp + 0xb0]
movaps xmmword [esp + 0xb0], xmm0
call fcn.1003afa0
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 0x1003ba30
sub ecx, edx
lea eax, [esp + 0x9b0]
push ecx
push eax
call fcn.1003b0f0
mov esi, dword [esp + 0x14]
add esp, 8
jmp 0x1003b762
lea eax, [esp + 0xdb8]
push eax
call fcn.10050540
add esp, 0xc
mov dword [esp + 0xe0], 0
xorps xmm0, xmm0
lea ecx, [esp + 0xd0]
movaps xmmword [esp + 0xd0], xmm0
call fcn.1003afa0
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 0x1003bac0
sub ecx, edx
lea eax, [esp + 0xdb0]
push ecx
push eax
call fcn.1003b0f0
add esp, 8
lea edx, [esp + 0x19c]
mov ecx, esi
call fcn.1003b270
test al, al
jne 0x1003bafc
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov esi, dword [esp + 0xc]
jmp 0x1003b762
push 0x400
lea eax, [esp + 0x11b4]
push 0
push eax
call fcn.10050540
add esp, 0xc
mov dword [esp + 0x100], 0
xorps xmm0, xmm0
lea ecx, [esp + 0xf0]
movaps xmmword [esp + 0xf0], xmm0
call fcn.1003afa0
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 0x1003bb70
sub ecx, edx
lea eax, [esp + 0x11b0]
push ecx
push eax
call fcn.1003b0f0
push 0x800
lea edx, [esp + 0x21bc]
mov ecx, esi
call fcn.1003b510
add esp, 0xc
test al, al
je 0x1003bf7a
lea eax, [esp + 0x21b0]
push 0x10096634
push eax
call fcn.1004f7a0
add esp, 8
test eax, eax
jne 0x1003bd02
lea eax, [esp + 0x21b0]
push str.510R00
push eax
call fcn.1004f7a0
add esp, 8
test eax, eax
jne 0x1003bd02
push 0x20
call fcn.1005d45a
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 0x1003bc00
mov edi, dword [edi + esi*4]
dec edi
mov al, byte [edi + 1]
lea edi, [edi + 1]
test al, al
jne 0x1003bc12
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 0x1003bc32
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 0x1003bc43
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.10050540
add esp, 0xc
mov dword [esp + 0x120], 0
xorps xmm0, xmm0
lea ecx, [esp + 0x110]
movaps xmmword [esp + 0x110], xmm0
call fcn.1003afa0
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 0x96
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 0x1003bce2
sub ecx, edx
lea eax, [esp + 0x15b0]
push ecx
push eax
call fcn.1003b0f0
add esp, 8
inc esi
jmp 0x1003bf72
mov edi, dword [esp + 0x10]
xor esi, esi
test edi, edi
jle 0x1003bd34
nop dword [eax]
lea eax, [esp + 0x21b0]
push eax
mov eax, dword [esp + 0xc]
push dword [eax + esi*4]
call fcn.1004f7a0
add esp, 8
test eax, eax
jne 0x1003bdc6
inc esi
cmp esi, edi
jl 0x1003bd10
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.1002ca80
lea esi, [esp + 0x64]
add esp, 0x14
lea ecx, [esi + 1]
nop dword [eax]
mov al, byte [esi]
inc esi
test al, al
jne 0x1003bd80
sub esi, ecx
lea eax, [esi + 1]
push eax
call fcn.1005d45a
add esp, 4
mov edi, eax
lea eax, [esi + 1]
push eax
push 0
push edi
call fcn.10050540
add esp, 0xc
test esi, esi
je 0x1003bea5
test edi, edi
jne 0x1003be71
call fcn.1005973c
mov dword [eax], 0x16
jmp 0x1003bea0
push 0x400
lea eax, [esp + 0x19b4]
push 0
push eax
call fcn.10050540
add esp, 0xc
mov dword [esp + 0x140], 0
xorps xmm0, xmm0
lea ecx, [esp + 0x130]
movaps xmmword [esp + 0x130], xmm0
call fcn.1003afa0
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 0x1003be50
sub ecx, edx
lea eax, [esp + 0x19b0]
push ecx
push eax
call fcn.1003b0f0
add esp, 8
mov edi, 0x1008c2d9
jmp 0x1003bea9
lea eax, [esi + 1]
cmp eax, esi
jb 0x1003be89
push esi
lea eax, [esp + 0x54]
push eax
push edi
call fcn.1004ffc0
add esp, 0xc
jmp 0x1003bea5
push eax
push 0
push edi
call fcn.10050540
add esp, 0xc
call fcn.1005973c
mov dword [eax], 0x22
call fcn.1005d6ea
mov byte [edi + esi], 0
mov ecx, edi
lea edx, [ecx + 1]
nop
mov al, byte [ecx]
inc ecx
test al, al
jne 0x1003beb0
mov esi, dword [esp + 0xc]
sub ecx, edx
cmp ecx, 0xa
jb 0x1003b762
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.10050540
add esp, 0xc
mov dword [esp + 0x160], 0
xorps xmm0, xmm0
lea ecx, [esp + 0x150]
movaps xmmword [esp + 0x150], xmm0
call fcn.1003afa0
mov eax, dword [esp + 8]
push dword [eax + esi*4]
push esi
push 0x8d
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]
mov al, byte [ecx]
inc ecx
test al, al
jne 0x1003bf51
sub ecx, edx
lea eax, [esp + 0x1db0]
push ecx
push eax
call fcn.1003b0f0
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 0x1003b762
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.1004cbc7
mov esp, ebp
pop ebp
ret 8