Function at 0x407590
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xc8
mov eax, dword [0x43a204]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
mov ebx, ecx
push esi
push edi
push dword [ebx + 4]
lea esi, [ebx + 4]
mov dword [ebp - 0x60], esi
call dword [sym.imp.USER32.dll_GetParent]
push eax
mov ecx, esi
call fcn.004045f0
push 0x40d
push dword [esi]
call dword [sym.imp.USER32.dll_GetDlgItem]
mov edi, dword [sym.imp.USER32.dll_SendMessageW]
mov esi, eax
push str.Trigger
push 0
push 0x143
push esi
call edi
push str.Live
push 0
push 0x143
push esi
call edi
lea eax, [ebp - 0x1c]
mov dword [ebp - 0x18], 0
push eax
lea eax, [ebp - 0x18]
mov dword [ebp - 0x1c], 4
push eax
lea eax, [ebp - 0x20]
push eax
push 0
push str.trigger
push dword [ebx + 0x38]
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
push 0
push dword [ebp - 0x18]
push 0x14e
push esi
call edi
push 0x40e
push dword [ebx + 4]
call dword [sym.imp.USER32.dll_GetDlgItem]
push str.Unsaturated_Add
push 0
mov esi, eax
push 0x143
push esi
call edi
push str.Saturating_Add
push 0
push 0x143
push esi
call edi
push str.Average
push 0
push 0x143
push esi
call edi
lea eax, [ebp - 0x1c]
mov dword [ebp - 0x18], 0
push eax
lea eax, [ebp - 0x18]
mov dword [ebp - 0x1c], 4
push eax
lea eax, [ebp - 0x20]
push eax
push 0
push str.binmethod
push dword [ebx + 0x38]
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
push 0
push dword [ebp - 0x18]
push 0x14e
push esi
call edi
push 0x410
push dword [ebx + 4]
call dword [sym.imp.USER32.dll_GetDlgItem]
push 0x42fbac
push 0
mov esi, eax
push 0x143
push esi
call edi
push 0x42fbb0
push 0
push 0x143
push esi
call edi
push 0x42fbb4
push 0
push 0x143
push esi
call edi
push 0
push 0
push 0x14e
push esi
call edi
push 0
push 6
push dword [ebx + 0x24]
call dword [sym.imp.toupcam.dll_Toupcam_get_Option]
cmp eax, 0x80004001
jne 0x40772b
mov esi, dword [sym.imp.USER32.dll_GetDlgItem]
push 0x412
push dword [ebx + 4]
call esi
push 0
push eax
call dword [sym.imp.USER32.dll_EnableWindow]
push 0x410
push dword [ebx + 4]
call esi
push 0
push eax
call dword [sym.imp.USER32.dll_EnableWindow]
jmp 0x4077af
lea eax, [ebp - 0x1c]
mov dword [ebp - 0x18], 1
push eax
lea eax, [ebp - 0x18]
mov dword [ebp - 0x1c], 4
push eax
lea eax, [ebp - 0x20]
push eax
push 0
push str.bitdepth
push dword [ebx + 0x38]
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
xor eax, eax
cmp dword [ebp - 0x18], eax
setne al
push eax
push 0x412
push dword [ebx + 4]
call dword [sym.imp.USER32.dll_CheckDlgButton]
lea eax, [ebp - 0x1c]
mov dword [ebp - 0x1c], 4
push eax
lea esi, [ebx + 0x34]
push esi
lea eax, [ebp - 0x20]
push eax
push 0
push str.scale
push dword [ebx + 0x38]
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
push 0x410
push dword [ebx + 4]
call dword [sym.imp.USER32.dll_GetDlgItem]
push 0
push dword [esi]
push 0x14e
push eax
call edi
mov esi, dword [sym.imp.USER32.dll_GetDlgItem]
push 0
push dword [ebx + 0x24]
call dword [sym.imp.toupcam.dll_Toupcam_get_Temperature]
mov ecx, dword [ebx + 4]
cmp eax, 0x80004001
jne 0x4077d7
push 0x41d
push ecx
call esi
push 0
push eax
call dword [sym.imp.USER32.dll_EnableWindow]
jmp 0x407829
push 0x411
push ecx
call esi
push 0xe10
push 0
push 0x465
push eax
call edi
lea eax, [ebp - 0x18]
mov dword [ebp - 0x18], 4
push eax
lea esi, [ebx + 0x30]
push esi
lea eax, [ebp - 0x20]
push eax
push 0
push str.temp
push dword [ebx + 0x38]
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
push 0
push dword [esi]
push 0x41d
push dword [ebx + 4]
call dword [sym.imp.USER32.dll_SetDlgItemInt]
mov esi, dword [sym.imp.USER32.dll_GetDlgItem]
push 1
push 0x41e
push dword [ebx + 4]
call dword [sym.imp.USER32.dll_CheckDlgButton]
push 0x415
push dword [ebx + 4]
call esi
push 0x10014
push 0
push 0x465
push eax
call edi
lea eax, [ebp - 0x1c]
mov dword [ebp - 0x18], 0xa
push eax
lea eax, [ebp - 0x18]
mov dword [ebp - 0x1c], 4
push eax
lea eax, [ebp - 0x20]
push eax
push 0
push 0x42fbe8
push dword [ebx + 0x38]
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
push 1
push dword [ebp - 0x18]
push 0x40a
push dword [ebx + 4]
call dword [sym.imp.USER32.dll_SetDlgItemInt]
push 0x416
push dword [ebx + 4]
call esi
push 0x10014
push 0
push 0x465
push eax
call edi
lea eax, [ebp - 0x1c]
mov dword [ebp - 0x18], 0xa
push eax
lea eax, [ebp - 0x18]
mov dword [ebp - 0x1c], 4
push eax
lea eax, [ebp - 0x20]
push eax
push 0
push 0x42fbf0
push dword [ebx + 0x38]
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
push 1
push dword [ebp - 0x18]
push 0x40b
push dword [ebx + 4]
call dword [sym.imp.USER32.dll_SetDlgItemInt]
push 0x417
push dword [ebx + 4]
call esi
push 0x30064
push 0
push 0x465
push eax
call edi
push 1
push dword [ebx + 0x28]
push 0x40c
push dword [ebx + 4]
call dword [sym.imp.USER32.dll_SetDlgItemInt]
push 0x418
push dword [ebx + 4]
call esi
push 0x10008
push 0
push 0x465
push eax
call edi
lea eax, [ebp - 0x1c]
mov dword [ebp - 0x18], 1
push eax
lea eax, [ebp - 0x18]
mov dword [ebp - 0x1c], 4
push eax
lea eax, [ebp - 0x20]
push eax
push 0
push str.binvalue
push dword [ebx + 0x38]
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
push 1
push dword [ebp - 0x18]
push 0x40f
push dword [ebx + 4]
call dword [sym.imp.USER32.dll_SetDlgItemInt]
push 0x413
push dword [ebx + 4]
call esi
push 0
push 0
mov esi, eax
push 0x1037
push esi
call edi
or eax, 0x21
push eax
push 0
push 0x1036
push esi
call edi
push str.Time_ms_
push 0
xorps xmm0, xmm0
mov dword [ebp - 0x3c], 0
push 0x1057
push esi
movlpd qword [ebp - 0x34], xmm0
movlpd qword [ebp - 0x2c], xmm0
mov dword [ebp - 0x44], 0xf
mov dword [ebp - 0x40], 0
mov dword [ebp - 0x38], str.Time_ms_
call edi
add eax, 0xf
mov dword [ebp - 0x30], 0
mov dword [ebp - 0x3c], eax
lea eax, [ebp - 0x44]
push eax
push 0
push 0x1061
push esi
call edi
push str.Gain
push 0
xorps xmm0, xmm0
mov dword [ebp - 0x3c], 0
push 0x1057
push esi
movlpd qword [ebp - 0x34], xmm0
movlpd qword [ebp - 0x2c], xmm0
mov dword [ebp - 0x44], 0xf
mov dword [ebp - 0x40], 0
mov dword [ebp - 0x38], str.Gain
call edi
add eax, 0xf
mov dword [ebp - 0x30], 1
mov dword [ebp - 0x3c], eax
lea eax, [ebp - 0x44]
push eax
push 1
push 0x1061
push esi
call edi
push str.Delay_ms_
push 0
xorps xmm0, xmm0
mov dword [ebp - 0x3c], 0
push 0x1057
push esi
movlpd qword [ebp - 0x34], xmm0
movlpd qword [ebp - 0x2c], xmm0
mov dword [ebp - 0x44], 0xf
mov dword [ebp - 0x40], 0
mov dword [ebp - 0x38], str.Delay_ms_
call edi
add eax, 0xf
mov dword [ebp - 0x3c], eax
lea eax, [ebp - 0x44]
push eax
push 2
push 0x1061
push esi
mov dword [ebp - 0x30], 2
call edi
lea eax, [ebp - 0x14]
xorps xmm0, xmm0
push eax
push esi
movups xmmword [ebp - 0x14], xmm0
call dword [sym.imp.USER32.dll_GetClientRect]
mov edi, dword [ebp - 0xc]
sub edi, dword [ebp - 0x14]
push 2
call dword [sym.imp.USER32.dll_GetSystemMetrics]
sub edi, eax
mov eax, 0x55555556
sub edi, 8
imul edi
mov eax, edx
shr eax, 0x1f
add eax, edx
movzx edi, ax
push edi
push 0
push 0x101e
push esi
call dword [sym.imp.USER32.dll_SendMessageW]
push edi
push 1
push 0x101e
push esi
call dword [sym.imp.USER32.dll_SendMessageW]
push edi
mov edi, dword [sym.imp.USER32.dll_SendMessageW]
push 2
push 0x101e
push esi
call edi
mov ecx, dword [ebx + 0x54]
mov eax, 0x2aaaaaab
sub ecx, dword [ebx + 0x50]
imul ecx
mov dword [ebp - 0x1c], 0
sar edx, 1
mov eax, edx
shr eax, 0x1f
add eax, edx
je 0x407cfa
xor eax, eax
mov dword [ebp - 0x18], eax
mov ecx, dword [ebx + 0x50]
push dword [ecx + eax + 4]
lea eax, [ebp - 0x5c]
push eax
call fcn.00405620
mov ecx, dword [ebp - 0x1c]
add esp, 8
xorps xmm0, xmm0
mov dword [ebp - 0x98], 0
movlpd qword [ebp - 0xbc], xmm0
mov eax, dword [eax]
mov dword [ebp - 0xb4], eax
lea eax, [ebp - 0xc8]
push eax
push 0
push 0x104d
push esi
movlpd qword [ebp - 0xb0], xmm0
movlpd qword [ebp - 0xa8], xmm0
movlpd qword [ebp - 0xa0], xmm0
mov dword [ebp - 0xc8], 1
mov dword [ebp - 0xc4], ecx
mov dword [ebp - 0xc0], 0
call edi
mov edx, dword [ebp - 0x5c]
or eax, 0xffffffff
add edx, 0xfffffff0
lock xadd dword [edx + 0xc], eax
dec eax
test eax, eax
jg 0x407ba4
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
mov eax, dword [ebx + 0x50]
mov ecx, dword [ebp - 0x18]
movzx eax, word [ecx + eax + 8]
push eax
lea eax, [ebp - 0x24]
push 0x42fc40
push eax
call fcn.00405740
mov ecx, dword [ebp - 0x1c]
add esp, 0xc
xorps xmm0, xmm0
mov dword [ebp - 0x40], 0
movlpd qword [ebp - 0x34], xmm0
mov eax, dword [eax]
mov dword [ebp - 0x44], eax
lea eax, [ebp - 0x58]
push eax
push 0
push 0x104c
push esi
movlpd qword [ebp - 0x2c], xmm0
mov dword [ebp - 0x58], 1
mov dword [ebp - 0x54], ecx
mov dword [ebp - 0x50], 1
mov dword [ebp - 0x48], 0
mov dword [ebp - 0x4c], 0
mov dword [ebp - 0x3c], 0
mov dword [ebp - 0x38], 0
call edi
mov edx, dword [ebp - 0x24]
or eax, 0xffffffff
add edx, 0xfffffff0
lock xadd dword [edx + 0xc], eax
dec eax
test eax, eax
jg 0x407c33
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
mov eax, dword [ebx + 0x50]
mov ecx, dword [ebp - 0x18]
push dword [ecx + eax]
lea eax, [ebp - 0x20]
push 0x42f9c0
push eax
call fcn.00405740
mov ecx, dword [ebp - 0x1c]
add esp, 0xc
xorps xmm0, xmm0
mov dword [ebp - 0x7c], 0
movlpd qword [ebp - 0x70], xmm0
mov eax, dword [eax]
mov dword [ebp - 0x80], eax
lea eax, [ebp - 0x94]
push eax
push 0
push 0x104c
push esi
movlpd qword [ebp - 0x68], xmm0
mov dword [ebp - 0x94], 1
mov dword [ebp - 0x90], ecx
mov dword [ebp - 0x8c], 2
mov dword [ebp - 0x84], 0
mov dword [ebp - 0x88], 0
mov dword [ebp - 0x78], 0
mov dword [ebp - 0x74], 0
call edi
mov edx, dword [ebp - 0x20]
or eax, 0xffffffff
add edx, 0xfffffff0
lock xadd dword [edx + 0xc], eax
dec eax
test eax, eax
jg 0x407cd1
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
mov ecx, dword [ebx + 0x54]
mov eax, 0x2aaaaaab
sub ecx, dword [ebx + 0x50]
add dword [ebp - 0x18], 0xc
inc dword [ebp - 0x1c]
imul ecx
sar edx, 1
mov eax, edx
shr eax, 0x1f
add eax, edx
cmp dword [ebp - 0x1c], eax
mov eax, dword [ebp - 0x18]
jb 0x407b13
push 0x421
push dword [ebx + 4]
call dword [sym.imp.USER32.dll_GetDlgItem]
mov esi, eax
mov eax, dword [ebx + 0x20]
mov eax, dword [eax + 8]
and eax, 0x10000
or eax, 0
je 0x407dd0
push 0x42fc48
push 0
push 0x143
push esi
call edi
mov eax, dword [ebx + 0x20]
mov ecx, 1
mov dword [ebp - 0x1c], ecx
cmp dword [eax + 0x1c], ecx
jb 0x407d88
nop dword [eax]
push ecx
lea eax, [ebp - 0x20]
push 0x42f9c0
push eax
call fcn.00405740
add esp, 0xc
push dword [eax]
push 0
push 0x143
push esi
call edi
mov edx, dword [ebp - 0x20]
or eax, 0xffffffff
add edx, 0xfffffff0
lock xadd dword [edx + 0xc], eax
dec eax
test eax, eax
jg 0x407d79
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
mov ecx, dword [ebp - 0x1c]
mov eax, dword [ebx + 0x20]
inc ecx
mov dword [ebp - 0x1c], ecx
cmp ecx, dword [eax + 0x1c]
jbe 0x407d40
lea eax, [ebp - 0x20]
mov dword [ebp - 0x18], 0
push eax
lea eax, [ebp - 0x18]
mov dword [ebp - 0x20], 4
push eax
lea eax, [ebp - 0x24]
push eax
push 0
push 0x42fc50
push dword [ebx + 0x38]
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
mov eax, dword [ebx + 0x20]
mov ecx, dword [ebp - 0x18]
push 0
mov eax, dword [eax + 0x1c]
cmp ecx, eax
cmova ecx, eax
push ecx
push 0x14e
push esi
mov dword [ebp - 0x18], ecx
call edi
jmp 0x407dd9
push 0
push esi
call dword [sym.imp.USER32.dll_EnableWindow]
push 0x409
push dword [ebx + 4]
call dword [sym.imp.USER32.dll_GetDlgItem]
mov esi, eax
mov eax, dword [ebx + 0x20]
mov ecx, dword [eax + 8]
mov eax, dword [eax + 0xc]
and ecx, 0x4000000
and eax, 8
or ecx, eax
je 0x407e91
push 0x42fc58
push 0
push 0x143
push esi
mov dword [ebp - 0x18], 0
mov dword [ebp - 0x1c], 1
call edi
push 0x42fc60
push 0
push 0x143
push esi
call edi
mov eax, dword [ebx + 0x20]
mov ecx, dword [eax + 0xc]
xor eax, eax
and ecx, 8
or eax, ecx
je 0x407e54
push 0x42fc68
push 0
push 0x143
push esi
call edi
mov dword [ebp - 0x1c], 2
lea eax, [ebp - 0x20]
mov dword [ebp - 0x20], 4
push eax
lea eax, [ebp - 0x18]
push eax
lea eax, [ebp - 0x24]
push eax
push 0
push 0x42fc70
push dword [ebx + 0x38]
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
mov eax, dword [ebp - 0x18]
cmp eax, dword [ebp - 0x1c]
push 0
cmova eax, dword [ebp - 0x1c]
push eax
push 0x14e
push esi
mov dword [ebp - 0x18], eax
call edi
jmp 0x407e9a
push 0
push esi
call dword [sym.imp.USER32.dll_EnableWindow]
mov eax, dword [ebx + 0x20]
mov eax, dword [eax + 8]
and eax, 0x20000
or eax, 0
je 0x408024
mov esi, dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
lea eax, [ebp - 0x20]
push eax
lea eax, [ebp - 0x18]
mov dword [ebp - 0x18], 0
push eax
lea eax, [ebp - 0x24]
mov dword [ebp - 0x20], 4
push eax
push 0
push 0x42fc78
push dword [ebx + 0x38]
call esi
xor eax, eax
cmp dword [ebp - 0x18], eax
setne al
push eax
push 0x422
push dword [ebx + 4]
call dword [sym.imp.USER32.dll_CheckDlgButton]
lea eax, [ebp - 0x20]
mov dword [ebp - 0x18], 0
push eax
lea eax, [ebp - 0x18]
mov dword [ebp - 0x20], 4
push eax
lea eax, [ebp - 0x24]
push eax
push 0
push str.tectarget
push dword [ebx + 0x38]
call esi
mov eax, dword [ebp - 0x18]
cmp eax, 0xfffffe0c
jge 0x407f28
mov eax, 0xfffffe0c
jmp 0x407f32
mov ecx, 0x190
cmp eax, ecx
cmovg eax, ecx
movd xmm0, eax
sub esp, 8
cvtdq2pd xmm0, xmm0
lea eax, [ebp - 0x20]
divsd xmm0, qword [0x430400]
movsd qword [esp], xmm0
push 0x42fc94
push eax
call fcn.00405740
add esp, 0x10
push dword [eax]
push 0x423
push dword [ebx + 4]
call dword [sym.imp.USER32.dll_SetDlgItemTextW]
mov edx, dword [ebp - 0x20]
or eax, 0xffffffff
add edx, 0xfffffff0
lock xadd dword [edx + 0xc], eax
dec eax
test eax, eax
jg 0x407f86
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
mov esi, dword [sym.imp.USER32.dll_GetDlgItem]
mov eax, dword [ebx + 0x20]
mov edx, dword [ebx + 4]
mov ecx, dword [eax + 0xc]
xor eax, eax
and ecx, 0x80
or eax, ecx
je 0x408055
push 0x407
push edx
call esi
mov esi, eax
mov dword [ebp - 0x1c], 0
lea eax, [ebp - 0x18]
mov dword [ebp - 0x18], 0
push eax
push 0x36
push dword [ebx + 0x24]
call dword [sym.imp.toupcam.dll_Toupcam_get_Option]
movzx eax, word [ebp - 0x18]
push eax
push 0
push 0x465
push esi
call edi
lea eax, [ebp - 0x20]
mov dword [ebp - 0x20], 4
push eax
lea eax, [ebp - 0x1c]
push eax
lea eax, [ebp - 0x24]
push eax
push 0
push str.heat
push dword [ebx + 0x38]
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
mov ecx, dword [ebp - 0x1c]
cmp ecx, dword [ebp - 0x18]
push 0
cmova ecx, dword [ebp - 0x18]
push ecx
push 0x408
push dword [ebx + 4]
mov dword [ebp - 0x1c], ecx
call dword [sym.imp.USER32.dll_SetDlgItemInt]
mov esi, dword [sym.imp.USER32.dll_GetDlgItem]
jmp 0x408066
mov esi, dword [sym.imp.USER32.dll_GetDlgItem]
push 0x423
push dword [ebx + 4]
call esi
push 0
push eax
call dword [sym.imp.USER32.dll_EnableWindow]
push 0x422
push dword [ebx + 4]
call esi
push 0
push eax
call dword [sym.imp.USER32.dll_EnableWindow]
jmp 0x407f8c
push 0x408
push edx
call esi
push 0
push eax
call dword [sym.imp.USER32.dll_EnableWindow]
push 0x41b
push dword [ebx + 4]
call esi
push 0
push eax
call dword [sym.imp.USER32.dll_EnableWindow]
mov edi, dword [ebx + 0x50]
mov esi, dword [ebx + 0x54]
push 1
push dword [ebx + 4]
mov ebx, dword [sym.imp.USER32.dll_GetDlgItem]
call ebx
xor ecx, ecx
cmp edi, esi
setne cl
push ecx
push eax
call dword [sym.imp.USER32.dll_EnableWindow]
call fcn.0041bca2
cmp dword [eax], 2
jne 0x4080be
mov esi, dword [ebp - 0x60]
push 1
push dword [esi]
call ebx
push eax
push 1
push 0x111
push dword [esi]
call dword [sym.imp.USER32.dll_PostMessageW]
mov ecx, dword [ebp - 4]
mov eax, 1
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.00413a6c
mov esp, ebp
pop ebp
ret 0x10