Function at 0x4097c0
Capabilities:
Enumerate devices by category
Read .ini file

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x38
mov al, byte [0x43f644]
push ebx
push esi
push edi
test al, al
jne 0x409c66
mov eax, dword [0x440530]
xor esi, esi
push 1
push eax
mov byte [0x43f644], 1
mov dword [0x43f818], esi
mov dword [ebp - 0x10], esi
mov dword [ebp - 0xc], esi
call dword [sym.imp.USER32.dll_GetMenu]
push eax
call dword [sym.imp.USER32.dll_GetSubMenu]
mov ebx, eax
push ebx
call dword [sym.imp.USER32.dll_GetMenuItemCount]
cmp eax, 0xffffffff
jne 0x409822
push 0x1c
call fcn.00402220
add esp, 4
lea esp, [ebp - 0x44]
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
cmp eax, esi
jle 0x409838
mov edi, eax
push 0x400
push esi
push ebx
call dword [sym.imp.USER32.dll_RemoveMenu]
dec edi
jne 0x409828
mov edi, 0x43f648
push edi
call fcn.00402200
add edi, 4
add esp, 4
cmp edi, 0x43f670
jb 0x40983d
mov edi, 0x43f670
push edi
call fcn.00402200
add edi, 4
add esp, 4
cmp edi, 0x43f698
jb 0x409856
lea ecx, [ebp - 0x14]
mov dword [ebp - 0x14], esi
push ecx
push 0x430874
push 1
push esi
push 0x431af4
call dword [sym.imp.ole32.dll_CoCreateInstance]
test eax, eax
je 0x40989c
push 0x1d
call fcn.00402220
add esp, 4
lea esp, [ebp - 0x44]
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
mov eax, dword [ebp - 0x14]
lea ecx, [ebp - 8]
push esi
mov dword [ebp - 8], esi
mov edx, dword [eax]
push ecx
push 0x431ad4
push eax
call dword [edx + 0xc]
test eax, eax
je 0x4098ee
push 0x43fb50
push esi
push str.ErrorMsg_NoCamera_FnF10
push str.annie
call dword [sym.imp.KERNEL32.dll_GetPrivateProfileIntA]
test eax, eax
je 0x4098df
push 0x23
call fcn.00402220
add esp, 4
jmp 0x409a74
push 1
call fcn.00402220
add esp, 4
jmp 0x409a74
mov eax, dword [ebp - 8]
push eax
mov edx, dword [eax]
call dword [edx + 0x14]
mov eax, dword [ebp - 8]
lea edx, [ebp - 0x24]
push edx
lea edx, [ebp - 4]
mov ecx, dword [eax]
push edx
push 1
push eax
call dword [ecx + 0xc]
test eax, eax
jne 0x409a54
mov edi, 0x10
mov dword [ebp - 0x1c], 0x43f648
mov dword [ebp - 0x28], edi
mov eax, dword [ebp - 4]
lea edx, [ebp - 0x18]
push edx
push 0x433508
mov dword [ebp - 0x18], esi
mov ecx, dword [eax]
push esi
push esi
push eax
call dword [ecx + 0x24]
test eax, eax
jl 0x409a1c
mov eax, dword [ebp - 0x18]
lea edx, [ebp - 0x38]
push esi
mov word [ebp - 0x38], 8
mov ecx, dword [eax]
push edx
push str.FriendlyName
push eax
call dword [ecx + 0xc]
test eax, eax
jne 0x409a13
mov eax, dword [ebp - 0x30]
cmp eax, esi
mov dword [ebp - 0x20], eax
jne 0x40996f
xor eax, eax
jmp 0x4099a7
push eax
call fcn.0041b070
lea edi, [eax + eax + 2]
mov eax, edi
add eax, 3
and al, 0xfc
call fcn.0041d200
mov eax, dword [ebp - 0x20]
mov esi, esp
push 0
push 0
push edi
push esi
push 0xffffffffffffffff
push eax
push 0
push 0
mov byte [esi], 0
call dword [sym.imp.KERNEL32.dll_WideCharToMultiByte]
mov edi, dword [ebp - 0x28]
mov eax, esi
xor esi, esi
push eax
push edi
push esi
push ebx
call dword [sym.imp.USER32.dll_AppendMenuA]
mov eax, dword [0x43f698]
cmp eax, esi
je 0x4099cf
mov edx, dword [ebp - 4]
mov ecx, dword [eax]
push edx
push eax
call dword [ecx + 0x34]
test eax, eax
jne 0x4099cf
mov dword [ebp - 0xc], 1
mov eax, dword [ebp - 0xc]
neg eax
sbb eax, eax
and eax, 8
push eax
push edi
push ebx
call dword [sym.imp.USER32.dll_CheckMenuItem]
mov ecx, dword [0x43f624]
neg ecx
sbb ecx, ecx
and ecx, 2
push ecx
push edi
push ebx
call dword [sym.imp.USER32.dll_EnableMenuItem]
mov edx, dword [ebp - 0x30]
mov dword [ebp - 0xc], esi
push edx
call dword [sym.imp.OLEAUT32.dll_SysStringLen]
mov ecx, dword [ebp - 0x1c]
mov eax, dword [ebp - 4]
push eax
mov dword [ecx], eax
mov edx, dword [eax]
call dword [edx + 4]
mov eax, dword [ebp - 0x18]
push eax
mov ecx, dword [eax]
call dword [ecx + 8]
mov eax, dword [ebp - 4]
push eax
mov edx, dword [eax]
call dword [edx + 8]
mov edx, dword [ebp - 0x10]
mov eax, dword [ebp - 0x1c]
inc edx
add eax, 4
mov dword [ebp - 0x10], edx
lea edx, [ebp - 0x24]
mov dword [ebp - 0x1c], eax
mov eax, dword [ebp - 8]
push edx
lea edx, [ebp - 4]
mov ecx, dword [eax]
push edx
inc edi
push 1
push eax
mov dword [ebp - 0x28], edi
call dword [ecx + 0xc]
test eax, eax
je 0x409921
mov eax, dword [ebp - 8]
push eax
mov ecx, dword [eax]
call dword [ecx + 8]
mov edx, dword [ebp - 0x10]
push esi
push esi
push 0x800
push ebx
mov dword [0x43f818], edx
call dword [sym.imp.USER32.dll_AppendMenuA]
mov eax, dword [ebp - 0x14]
lea edx, [ebp - 8]
push esi
push edx
mov ecx, dword [eax]
push 0x431a54
push eax
mov dword [ebp - 0x10], esi
mov dword [ebp - 0xc], esi
call dword [ecx + 0xc]
mov edi, eax
mov eax, dword [ebp - 0x14]
push eax
mov ecx, dword [eax]
call dword [ecx + 8]
cmp edi, esi
jne 0x409c66
mov eax, dword [ebp - 8]
push eax
mov edx, dword [eax]
call dword [edx + 0x14]
mov eax, dword [ebp - 8]
lea edx, [ebp - 0x24]
push edx
lea edx, [ebp - 4]
mov ecx, dword [eax]
push edx
push 1
push eax
call dword [ecx + 0xc]
test eax, eax
jne 0x409c03
mov edi, 0x1a
mov dword [ebp - 0x1c], 0x43f670
mov dword [ebp - 0x18], edi
mov eax, dword [ebp - 4]
lea edx, [ebp - 0x28]
push edx
push 0x433508
mov ecx, dword [eax]
push esi
push esi
push eax
call dword [ecx + 0x24]
test eax, eax
jl 0x409bcb
mov eax, dword [ebp - 0x28]
lea edx, [ebp - 0x38]
push esi
mov word [ebp - 0x38], 8
mov ecx, dword [eax]
push edx
push str.FriendlyName
push eax
call dword [ecx + 0xc]
test eax, eax
jne 0x409bc2
mov eax, dword [ebp - 0x30]
cmp eax, esi
mov dword [ebp - 0x20], eax
jne 0x409b1e
xor eax, eax
jmp 0x409b56
push eax
call fcn.0041b070
lea edi, [eax + eax + 2]
mov eax, edi
add eax, 3
and al, 0xfc
call fcn.0041d200
mov eax, dword [ebp - 0x20]
mov esi, esp
push 0
push 0
push edi
push esi
push 0xffffffffffffffff
push eax
push 0
push 0
mov byte [esi], 0
call dword [sym.imp.KERNEL32.dll_WideCharToMultiByte]
mov edi, dword [ebp - 0x18]
mov eax, esi
xor esi, esi
push eax
push edi
push esi
push ebx
call dword [sym.imp.USER32.dll_AppendMenuA]
mov eax, dword [0x43f69c]
cmp eax, esi
je 0x409b7e
mov edx, dword [ebp - 4]
mov ecx, dword [eax]
push edx
push eax
call dword [ecx + 0x34]
test eax, eax
jne 0x409b7e
mov dword [ebp - 0xc], 1
mov eax, dword [ebp - 0xc]
neg eax
sbb eax, eax
and eax, 8
push eax
push edi
push ebx
call dword [sym.imp.USER32.dll_CheckMenuItem]
mov ecx, dword [0x43f624]
neg ecx
sbb ecx, ecx
and ecx, 2
push ecx
push edi
push ebx
call dword [sym.imp.USER32.dll_EnableMenuItem]
mov edx, dword [ebp - 0x30]
mov dword [ebp - 0xc], esi
push edx
call dword [sym.imp.OLEAUT32.dll_SysStringLen]
mov ecx, dword [ebp - 0x1c]
mov eax, dword [ebp - 4]
push eax
mov dword [ecx], eax
mov edx, dword [eax]
call dword [edx + 4]
mov eax, dword [ebp - 0x28]
push eax
mov ecx, dword [eax]
call dword [ecx + 8]
mov eax, dword [ebp - 4]
push eax
mov edx, dword [eax]
call dword [edx + 8]
mov edx, dword [ebp - 0x10]
mov eax, dword [ebp - 0x1c]
inc edx
add eax, 4
mov dword [ebp - 0x10], edx
lea edx, [ebp - 0x24]
mov dword [ebp - 0x1c], eax
mov eax, dword [ebp - 8]
push edx
lea edx, [ebp - 4]
mov ecx, dword [eax]
push edx
inc edi
push 1
push eax
mov dword [ebp - 0x18], edi
call dword [ecx + 0xc]
test eax, eax
je 0x409ad3
mov eax, dword [ebp - 8]
push eax
mov ecx, dword [eax]
call dword [ecx + 8]
mov ecx, dword [0x43f820]
mov eax, dword [ebp - 0x10]
cmp ecx, esi
mov dword [0x43f81c], eax
je 0x409c66
cmp eax, esi
je 0x409c66
mov edx, dword [0x440530]
push esi
push edx
call dword [sym.imp.USER32.dll_GetMenu]
push eax
call dword [sym.imp.USER32.dll_GetSubMenu]
mov edi, eax
push edi
call dword [sym.imp.USER32.dll_GetMenuItemCount]
cmp eax, 4
jl 0x409c66
mov ebx, dword [sym.imp.USER32.dll_RemoveMenu]
push 0x400
push esi
push edi
call ebx
push 0x400
push esi
push edi
call ebx
push 0x400
push esi
push edi
call ebx
lea esp, [ebp - 0x44]
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret