Function at 0x10041770
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.10056430
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 0x10041f4e
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.10041f70
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 0x10041850
sub ecx, edx
cmp ecx, 0x20
jae 0x10041873
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 0x10041866
push 1
push esi
call fcn.10052d84
push 0x400
lea eax, [esp + 0xec]
push 0
push eax
call fcn.10056430
add esp, 0x14
mov dword [esp + 0x50], 0
xorps xmm0, xmm0
lea ecx, [esp + 0x40]
movaps xmmword [esp + 0x40], xmm0
call fcn.10041020
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.10008e00
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 0x100418f0
sub ecx, edx
lea eax, [esp + 0xe0]
push ecx
push eax
call fcn.10041170
push 0x400
lea eax, [esp + 0xec]
push 0
push eax
call fcn.10056430
add esp, 0x14
mov dword [esp + 0x50], 0
xorps xmm0, xmm0
lea ecx, [esp + 0x40]
movaps xmmword [esp + 0x40], xmm0
call fcn.10041020
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.10008e00
lea ecx, [esp + 0x108]
add esp, 0x28
lea edx, [ecx + 1]
mov al, byte [ecx]
inc ecx
test al, al
jne 0x10041978
sub ecx, edx
lea eax, [esp + 0xe0]
push ecx
push eax
call fcn.10041170
add esp, 8
cmp dword [esp + 0x1c], 0
jne 0x10041f4e
cmp dword [esp + 0x24], 0
mov esi, dword [esp + 0x14]
jbe 0x100417f0
cmp dword [esp + 0x28], 0
jbe 0x100417f0
sub esp, 0xc
lea ecx, [esp + 0x6c]
call fcn.10041ff0
add esp, 0xc
mov esi, eax
lea eax, [esp + 0xe0]
mov dword [esp + 0x1c], esi
push 0x400
push 0
push eax
call fcn.10056430
add esp, 0xc
mov dword [esp + 0x50], 0
xorps xmm0, xmm0
lea ecx, [esp + 0x40]
movaps xmmword [esp + 0x40], xmm0
call fcn.10041020
mov eax, dword [sym.imp.KERNEL32.dll_GetCurrentThreadId]
test esi, esi
jne 0x10041a63
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.10008e00
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 0x10041a40
sub ecx, edx
lea eax, [esp + 0xe0]
push ecx
push eax
call fcn.10041170
mov esi, dword [esp + 0x1c]
add esp, 8
jmp 0x100417f0
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.10008e00
lea ecx, [esp + 0xfc]
add esp, 0x1c
lea edx, [ecx + 1]
mov al, byte [ecx]
inc ecx
test al, al
jne 0x10041a98
sub ecx, edx
lea eax, [esp + 0xe0]
push ecx
push eax
call fcn.10041170
add esp, 8
lea edx, [esp + 0xa4]
mov ecx, esi
call fcn.10041300
test al, al
jne 0x10041ad4
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov esi, dword [esp + 0x14]
jmp 0x100417f0
push 0x400
lea eax, [esp + 0xe4]
push 0
push eax
call fcn.10056430
add esp, 0xc
mov dword [esp + 0x50], 0
xorps xmm0, xmm0
lea ecx, [esp + 0x40]
movaps xmmword [esp + 0x40], xmm0
call fcn.10041020
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.10008e00
lea ecx, [esp + 0xfc]
add esp, 0x1c
lea edx, [ecx + 1]
mov al, byte [ecx]
inc ecx
test al, al
jne 0x10041b40
sub ecx, edx
lea eax, [esp + 0xe0]
push ecx
push eax
call fcn.10041170
push 0x800
lea edx, [esp + 0x4ec]
mov ecx, esi
call fcn.100415a0
add esp, 0xc
test al, al
je 0x10041f3e
lea eax, [esp + 0x4e0]
push 0x1009e1d4
push eax
call fcn.100556c0
add esp, 8
test eax, eax
jne 0x10041cc1
lea eax, [esp + 0x4e0]
push str.510R00
push eax
call fcn.100556c0
add esp, 8
test eax, eax
jne 0x10041cc1
push 0x20
call fcn.100653f0
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 0x10041bd0
mov edi, dword [esi]
dec edi
mov al, byte [edi + 1]
lea edi, [edi + 1]
test al, al
jne 0x10041be1
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 0x10041c01
mov edi, dword [esi]
sub edx, ecx
dec edi
nop dword [eax]
mov al, byte [edi + 1]
inc edi
test al, al
jne 0x10041c10
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.10056430
add esp, 0xc
mov dword [esp + 0x50], 0
xorps xmm0, xmm0
lea ecx, [esp + 0x40]
movaps xmmword [esp + 0x40], xmm0
call fcn.10041020
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.10008e00
lea ecx, [esp + 0x104]
add esp, 0x24
lea edx, [ecx + 1]
mov al, byte [ecx]
inc ecx
test al, al
jne 0x10041ca1
sub ecx, edx
lea eax, [esp + 0xe0]
push ecx
push eax
call fcn.10041170
add esp, 8
inc edi
jmp 0x10041f36
xor esi, esi
test edi, edi
jle 0x10041cf4
nop word [eax + eax]
lea eax, [esp + 0x4e0]
push eax
mov eax, dword [esp + 0x24]
push dword [eax + esi*4]
call fcn.100556c0
add esp, 8
test eax, eax
jne 0x10041d96
inc esi
cmp esi, edi
jl 0x10041cd0
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.10031c60
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 0x10041d50
sub esi, ecx
lea eax, [esi + 1]
push eax
call fcn.100653f0
add esp, 4
mov edi, eax
lea eax, [esi + 1]
push eax
push 0
push edi
call fcn.10056430
add esp, 0xc
test esi, esi
je 0x10041e68
test edi, edi
jne 0x10041e31
call fcn.1005fa60
mov dword [eax], 0x16
jmp 0x10041e63
push 0x400
lea eax, [esp + 0xe4]
push 0
push eax
call fcn.10056430
add esp, 0xc
mov dword [esp + 0x50], 0
xorps xmm0, xmm0
lea ecx, [esp + 0x40]
movaps xmmword [esp + 0x40], xmm0
call fcn.10041020
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.10008e00
lea ecx, [esp + 0x108]
add esp, 0x28
lea edx, [ecx + 1]
nop
mov al, byte [ecx]
inc ecx
test al, al
jne 0x10041e10
sub ecx, edx
lea eax, [esp + 0xe0]
push ecx
push eax
call fcn.10041170
add esp, 8
mov edi, 0x10093552
jmp 0x10041e6c
lea eax, [esi + 1]
cmp eax, esi
jb 0x10041e4c
push esi
lea eax, [esp + 0x84]
push eax
push edi
call fcn.10055eb0
add esp, 0xc
jmp 0x10041e68
push eax
push 0
push edi
call fcn.10056430
add esp, 0xc
call fcn.1005fa60
mov dword [eax], 0x22
call fcn.100656fd
mov byte [edi + esi], 0
mov ecx, edi
lea edx, [ecx + 1]
mov al, byte [ecx]
inc ecx
test al, al
jne 0x10041e71
sub ecx, edx
cmp ecx, 0xa
jae 0x10041e96
push dword [esp + 0x1c]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov edi, dword [esp + 0x18]
mov esi, dword [esp + 0x14]
jmp 0x100417f0
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.10056430
add esp, 0xc
mov dword [esp + 0x50], 0
xorps xmm0, xmm0
lea ecx, [esp + 0x40]
movaps xmmword [esp + 0x40], xmm0
call fcn.10041020
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.10008e00
lea ecx, [esp + 0x104]
add esp, 0x24
lea edx, [ecx + 1]
mov al, byte [ecx]
inc ecx
test al, al
jne 0x10041f15
sub ecx, edx
lea eax, [esp + 0xe0]
push ecx
push eax
call fcn.10041170
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 0x100417f0
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.10052d76
mov esp, ebp
pop ebp
ret 8