Function at 0x1003b940
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff0
mov eax, 0x2bb8
call fcn.1004dd60
mov eax, dword [0x100a249c]
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.10050780
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 0x1003c1ee
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 0x1003ba11
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.1004007d
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 0x1003ba55
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 0x1003ba90
sub ecx, edx
cmp ecx, 0x20
jae 0x1003bab3
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 0x1003baa6
push 1
push esi
call fcn.1004ce17
push 0x400
lea eax, [esp + 0x1bc]
push 0
push eax
call fcn.10050780
add esp, 0x14
mov dword [esp + 0x80], 0
xorps xmm0, xmm0
lea ecx, [esp + 0x70]
movaps xmmword [esp + 0x70], xmm0
call fcn.1003b200
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.10007a20
lea ecx, [esp + 0x1d0]
add esp, 0x20
lea edx, [ecx + 1]
mov al, byte [ecx]
inc ecx
test al, al
jne 0x1003bb33
sub ecx, edx
lea eax, [esp + 0x1b0]
push ecx
push eax
call fcn.1003b350
push 0x400
lea eax, [esp + 0x5bc]
push 0
push eax
call fcn.10050780
add esp, 0x14
mov dword [esp + 0xa0], 0
xorps xmm0, xmm0
lea ecx, [esp + 0x90]
movaps xmmword [esp + 0x90], xmm0
call fcn.1003b200
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.10007a20
lea ecx, [esp + 0x5d8]
add esp, 0x28
lea edx, [ecx + 1]
mov al, byte [ecx]
inc ecx
test al, al
jne 0x1003bbc3
sub ecx, edx
lea eax, [esp + 0x5b0]
push ecx
push eax
call fcn.1003b350
add esp, 8
cmp dword [esp + 0x14], 0
jne 0x1003c1ea
cmp dword [esp + 0x18], 0
mov esi, dword [esp + 0xc]
jbe 0x1003b9c2
cmp dword [esp + 0x1c], 0
jbe 0x1003b9c2
sub esp, 0xc
lea ecx, [esp + 0x3c]
call fcn.1003c210
add esp, 0xc
mov esi, eax
mov dword [esp + 0x14], esi
push 0x400
push 0
test esi, esi
jne 0x1003bcb3
lea eax, [esp + 0x9b8]
push eax
call fcn.10050780
add esp, 0xc
mov dword [esp + 0xc0], esi
xorps xmm0, xmm0
lea ecx, [esp + 0xb0]
movaps xmmword [esp + 0xb0], xmm0
call fcn.1003b200
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.10007a20
lea ecx, [esp + 0x9cc]
add esp, 0x1c
lea edx, [ecx + 1]
nop dword [eax]
mov al, byte [ecx]
inc ecx
test al, al
jne 0x1003bc90
sub ecx, edx
lea eax, [esp + 0x9b0]
push ecx
push eax
call fcn.1003b350
mov esi, dword [esp + 0x14]
add esp, 8
jmp 0x1003b9c2
lea eax, [esp + 0xdb8]
push eax
call fcn.10050780
add esp, 0xc
mov dword [esp + 0xe0], 0
xorps xmm0, xmm0
lea ecx, [esp + 0xd0]
movaps xmmword [esp + 0xd0], xmm0
call fcn.1003b200
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.10007a20
lea ecx, [esp + 0xdcc]
add esp, 0x1c
lea edx, [ecx + 1]
nop
mov al, byte [ecx]
inc ecx
test al, al
jne 0x1003bd20
sub ecx, edx
lea eax, [esp + 0xdb0]
push ecx
push eax
call fcn.1003b350
add esp, 8
lea edx, [esp + 0x19c]
mov ecx, esi
call fcn.1003b4d0
test al, al
jne 0x1003bd5c
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov esi, dword [esp + 0xc]
jmp 0x1003b9c2
push 0x400
lea eax, [esp + 0x11b4]
push 0
push eax
call fcn.10050780
add esp, 0xc
mov dword [esp + 0x100], 0
xorps xmm0, xmm0
lea ecx, [esp + 0xf0]
movaps xmmword [esp + 0xf0], xmm0
call fcn.1003b200
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.10007a20
lea ecx, [esp + 0x11cc]
add esp, 0x1c
lea edx, [ecx + 1]
mov al, byte [ecx]
inc ecx
test al, al
jne 0x1003bdd0
sub ecx, edx
lea eax, [esp + 0x11b0]
push ecx
push eax
call fcn.1003b350
push 0x800
lea edx, [esp + 0x21bc]
mov ecx, esi
call fcn.1003b770
add esp, 0xc
test al, al
je 0x1003c1da
lea eax, [esp + 0x21b0]
push 0x10097634
push eax
call fcn.1004f9e0
add esp, 8
test eax, eax
jne 0x1003bf62
lea eax, [esp + 0x21b0]
push str.510R00
push eax
call fcn.1004f9e0
add esp, 8
test eax, eax
jne 0x1003bf62
push 0x20
call fcn.1005d69a
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 0x1003be60
mov edi, dword [edi + esi*4]
dec edi
mov al, byte [edi + 1]
lea edi, [edi + 1]
test al, al
jne 0x1003be72
mov ax, word [0x1008fd28]
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 0x1003be92
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 0x1003bea3
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.10050780
add esp, 0xc
mov dword [esp + 0x120], 0
xorps xmm0, xmm0
lea ecx, [esp + 0x110]
movaps xmmword [esp + 0x110], xmm0
call fcn.1003b200
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.10007a20
lea ecx, [esp + 0x15d4]
add esp, 0x24
lea edx, [ecx + 1]
mov al, byte [ecx]
inc ecx
test al, al
jne 0x1003bf42
sub ecx, edx
lea eax, [esp + 0x15b0]
push ecx
push eax
call fcn.1003b350
add esp, 8
inc esi
jmp 0x1003c1d2
mov edi, dword [esp + 0x10]
xor esi, esi
test edi, edi
jle 0x1003bf94
nop dword [eax]
lea eax, [esp + 0x21b0]
push eax
mov eax, dword [esp + 0xc]
push dword [eax + esi*4]
call fcn.1004f9e0
add esp, 8
test eax, eax
jne 0x1003c026
inc esi
cmp esi, edi
jl 0x1003bf70
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.1002ccf0
lea esi, [esp + 0x64]
add esp, 0x14
lea ecx, [esi + 1]
nop dword [eax]
mov al, byte [esi]
inc esi
test al, al
jne 0x1003bfe0
sub esi, ecx
lea eax, [esi + 1]
push eax
call fcn.1005d69a
add esp, 4
mov edi, eax
lea eax, [esi + 1]
push eax
push 0
push edi
call fcn.10050780
add esp, 0xc
test esi, esi
je 0x1003c105
test edi, edi
jne 0x1003c0d1
call fcn.1005997c
mov dword [eax], 0x16
jmp 0x1003c100
push 0x400
lea eax, [esp + 0x19b4]
push 0
push eax
call fcn.10050780
add esp, 0xc
mov dword [esp + 0x140], 0
xorps xmm0, xmm0
lea ecx, [esp + 0x130]
movaps xmmword [esp + 0x130], xmm0
call fcn.1003b200
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.10007a20
lea ecx, [esp + 0x19d8]
add esp, 0x28
lea edx, [ecx + 1]
nop dword [eax]
mov al, byte [ecx]
inc ecx
test al, al
jne 0x1003c0b0
sub ecx, edx
lea eax, [esp + 0x19b0]
push ecx
push eax
call fcn.1003b350
add esp, 8
mov edi, 0x1008d2d9
jmp 0x1003c109
lea eax, [esi + 1]
cmp eax, esi
jb 0x1003c0e9
push esi
lea eax, [esp + 0x54]
push eax
push edi
call fcn.10050200
add esp, 0xc
jmp 0x1003c105
push eax
push 0
push edi
call fcn.10050780
add esp, 0xc
call fcn.1005997c
mov dword [eax], 0x22
call fcn.1005d92a
mov byte [edi + esi], 0
mov ecx, edi
lea edx, [ecx + 1]
nop
mov al, byte [ecx]
inc ecx
test al, al
jne 0x1003c110
mov esi, dword [esp + 0xc]
sub ecx, edx
cmp ecx, 0xa
jb 0x1003b9c2
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.10050780
add esp, 0xc
mov dword [esp + 0x160], 0
xorps xmm0, xmm0
lea ecx, [esp + 0x150]
movaps xmmword [esp + 0x150], xmm0
call fcn.1003b200
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.10007a20
lea ecx, [esp + 0x1dd4]
add esp, 0x24
lea edx, [ecx + 1]
mov al, byte [ecx]
inc ecx
test al, al
jne 0x1003c1b1
sub ecx, edx
lea eax, [esp + 0x1db0]
push ecx
push eax
call fcn.1003b350
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 0x1003b9c2
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.1004ce09
mov esp, ebp
pop ebp
ret 8