Function at 0x100415b0
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff0
sub esp, 0xee8
mov eax, dword [0x100a94c0]
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.10056280
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 0x10041d8e
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.10041db0
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 0x10041690
sub ecx, edx
cmp ecx, 0x20
jae 0x100416b3
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 0x100416a6
push 1
push esi
call fcn.10052bd1
push 0x400
lea eax, [esp + 0xec]
push 0
push eax
call fcn.10056280
add esp, 0x14
mov dword [esp + 0x50], 0
xorps xmm0, xmm0
lea ecx, [esp + 0x40]
movaps xmmword [esp + 0x40], xmm0
call fcn.10040e60
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.10008e20
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 0x10041730
sub ecx, edx
lea eax, [esp + 0xe0]
push ecx
push eax
call fcn.10040fb0
push 0x400
lea eax, [esp + 0xec]
push 0
push eax
call fcn.10056280
add esp, 0x14
mov dword [esp + 0x50], 0
xorps xmm0, xmm0
lea ecx, [esp + 0x40]
movaps xmmword [esp + 0x40], xmm0
call fcn.10040e60
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.10008e20
lea ecx, [esp + 0x108]
add esp, 0x28
lea edx, [ecx + 1]
mov al, byte [ecx]
inc ecx
test al, al
jne 0x100417b8
sub ecx, edx
lea eax, [esp + 0xe0]
push ecx
push eax
call fcn.10040fb0
add esp, 8
cmp dword [esp + 0x1c], 0
jne 0x10041d8e
cmp dword [esp + 0x24], 0
mov esi, dword [esp + 0x14]
jbe 0x10041630
cmp dword [esp + 0x28], 0
jbe 0x10041630
sub esp, 0xc
lea ecx, [esp + 0x6c]
call fcn.10041e30
add esp, 0xc
mov esi, eax
lea eax, [esp + 0xe0]
mov dword [esp + 0x1c], esi
push 0x400
push 0
push eax
call fcn.10056280
add esp, 0xc
mov dword [esp + 0x50], 0
xorps xmm0, xmm0
lea ecx, [esp + 0x40]
movaps xmmword [esp + 0x40], xmm0
call fcn.10040e60
mov eax, dword [sym.imp.KERNEL32.dll_GetCurrentThreadId]
test esi, esi
jne 0x100418a3
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.10008e20
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 0x10041880
sub ecx, edx
lea eax, [esp + 0xe0]
push ecx
push eax
call fcn.10040fb0
mov esi, dword [esp + 0x1c]
add esp, 8
jmp 0x10041630
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.10008e20
lea ecx, [esp + 0xfc]
add esp, 0x1c
lea edx, [ecx + 1]
mov al, byte [ecx]
inc ecx
test al, al
jne 0x100418d8
sub ecx, edx
lea eax, [esp + 0xe0]
push ecx
push eax
call fcn.10040fb0
add esp, 8
lea edx, [esp + 0xa4]
mov ecx, esi
call fcn.10041140
test al, al
jne 0x10041914
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov esi, dword [esp + 0x14]
jmp 0x10041630
push 0x400
lea eax, [esp + 0xe4]
push 0
push eax
call fcn.10056280
add esp, 0xc
mov dword [esp + 0x50], 0
xorps xmm0, xmm0
lea ecx, [esp + 0x40]
movaps xmmword [esp + 0x40], xmm0
call fcn.10040e60
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.10008e20
lea ecx, [esp + 0xfc]
add esp, 0x1c
lea edx, [ecx + 1]
mov al, byte [ecx]
inc ecx
test al, al
jne 0x10041980
sub ecx, edx
lea eax, [esp + 0xe0]
push ecx
push eax
call fcn.10040fb0
push 0x800
lea edx, [esp + 0x4ec]
mov ecx, esi
call fcn.100413e0
add esp, 0xc
test al, al
je 0x10041d7e
lea eax, [esp + 0x4e0]
push 0x1009e1d4
push eax
call fcn.10055510
add esp, 8
test eax, eax
jne 0x10041b01
lea eax, [esp + 0x4e0]
push str.510R00
push eax
call fcn.10055510
add esp, 8
test eax, eax
jne 0x10041b01
push 0x20
call fcn.10065240
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 0x10041a10
mov edi, dword [esi]
dec edi
mov al, byte [edi + 1]
lea edi, [edi + 1]
test al, al
jne 0x10041a21
mov ax, word [0x100961b8]
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 0x10041a41
mov edi, dword [esi]
sub edx, ecx
dec edi
nop dword [eax]
mov al, byte [edi + 1]
inc edi
test al, al
jne 0x10041a50
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.10056280
add esp, 0xc
mov dword [esp + 0x50], 0
xorps xmm0, xmm0
lea ecx, [esp + 0x40]
movaps xmmword [esp + 0x40], xmm0
call fcn.10040e60
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.10008e20
lea ecx, [esp + 0x104]
add esp, 0x24
lea edx, [ecx + 1]
mov al, byte [ecx]
inc ecx
test al, al
jne 0x10041ae1
sub ecx, edx
lea eax, [esp + 0xe0]
push ecx
push eax
call fcn.10040fb0
add esp, 8
inc edi
jmp 0x10041d76
xor esi, esi
test edi, edi
jle 0x10041b34
nop word [eax + eax]
lea eax, [esp + 0x4e0]
push eax
mov eax, dword [esp + 0x24]
push dword [eax + esi*4]
call fcn.10055510
add esp, 8
test eax, eax
jne 0x10041bd6
inc esi
cmp esi, edi
jl 0x10041b10
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.10031aa0
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 0x10041b90
sub esi, ecx
lea eax, [esi + 1]
push eax
call fcn.10065240
add esp, 4
mov edi, eax
lea eax, [esi + 1]
push eax
push 0
push edi
call fcn.10056280
add esp, 0xc
test esi, esi
je 0x10041ca8
test edi, edi
jne 0x10041c71
call fcn.1005f8b0
mov dword [eax], 0x16
jmp 0x10041ca3
push 0x400
lea eax, [esp + 0xe4]
push 0
push eax
call fcn.10056280
add esp, 0xc
mov dword [esp + 0x50], 0
xorps xmm0, xmm0
lea ecx, [esp + 0x40]
movaps xmmword [esp + 0x40], xmm0
call fcn.10040e60
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.10008e20
lea ecx, [esp + 0x108]
add esp, 0x28
lea edx, [ecx + 1]
nop
mov al, byte [ecx]
inc ecx
test al, al
jne 0x10041c50
sub ecx, edx
lea eax, [esp + 0xe0]
push ecx
push eax
call fcn.10040fb0
add esp, 8
mov edi, 0x10093552
jmp 0x10041cac
lea eax, [esi + 1]
cmp eax, esi
jb 0x10041c8c
push esi
lea eax, [esp + 0x84]
push eax
push edi
call fcn.10055d00
add esp, 0xc
jmp 0x10041ca8
push eax
push 0
push edi
call fcn.10056280
add esp, 0xc
call fcn.1005f8b0
mov dword [eax], 0x22
call fcn.1006554d
mov byte [edi + esi], 0
mov ecx, edi
lea edx, [ecx + 1]
mov al, byte [ecx]
inc ecx
test al, al
jne 0x10041cb1
sub ecx, edx
cmp ecx, 0xa
jae 0x10041cd6
push dword [esp + 0x1c]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov edi, dword [esp + 0x18]
mov esi, dword [esp + 0x14]
jmp 0x10041630
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.10056280
add esp, 0xc
mov dword [esp + 0x50], 0
xorps xmm0, xmm0
lea ecx, [esp + 0x40]
movaps xmmword [esp + 0x40], xmm0
call fcn.10040e60
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.10008e20
lea ecx, [esp + 0x104]
add esp, 0x24
lea edx, [ecx + 1]
mov al, byte [ecx]
inc ecx
test al, al
jne 0x10041d55
sub ecx, edx
lea eax, [esp + 0xe0]
push ecx
push eax
call fcn.10040fb0
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 0x10041630
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.10052bc3
mov esp, ebp
pop ebp
ret 8