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

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x38
mov al, byte [0x43e614]
push ebx
push esi
push edi
test al, al
jne 0x409b96
mov eax, dword [0x43f500]
xor esi, esi
push 1
push eax
mov byte [0x43e614], 1
mov dword [0x43e7e8], 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 0x409752
push 0x1c
call fcn.004021b0
add esp, 4
lea esp, [ebp - 0x44]
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
cmp eax, esi
jle 0x409768
mov edi, eax
push 0x400
push esi
push ebx
call dword [sym.imp.USER32.dll_RemoveMenu]
dec edi
jne 0x409758
mov edi, 0x43e618
push edi
call fcn.00402190
add edi, 4
add esp, 4
cmp edi, 0x43e640
jb 0x40976d
mov edi, 0x43e640
push edi
call fcn.00402190
add edi, 4
add esp, 4
cmp edi, 0x43e668
jb 0x409786
lea ecx, [ebp - 0x14]
mov dword [ebp - 0x14], esi
push ecx
push 0x42f874
push 1
push esi
push 0x430af4
call dword [sym.imp.ole32.dll_CoCreateInstance]
test eax, eax
je 0x4097cc
push 0x1d
call fcn.004021b0
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 0x430ad4
push eax
call dword [edx + 0xc]
test eax, eax
je 0x40981e
push 0x43eb20
push esi
push str.ErrorMsg_NoCamera_FnF10
push str.annie
call dword [sym.imp.KERNEL32.dll_GetPrivateProfileIntA]
test eax, eax
je 0x40980f
push 0x23
call fcn.004021b0
add esp, 4
jmp 0x4099a4
push 1
call fcn.004021b0
add esp, 4
jmp 0x4099a4
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 0x409984
mov edi, 0x10
mov dword [ebp - 0x1c], 0x43e618
mov dword [ebp - 0x28], edi
mov eax, dword [ebp - 4]
lea edx, [ebp - 0x18]
push edx
push 0x432508
mov dword [ebp - 0x18], esi
mov ecx, dword [eax]
push esi
push esi
push eax
call dword [ecx + 0x24]
test eax, eax
jl 0x40994c
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 0x409943
mov eax, dword [ebp - 0x30]
cmp eax, esi
mov dword [ebp - 0x20], eax
jne 0x40989f
xor eax, eax
jmp 0x4098d7
push eax
call fcn.0041aef0
lea edi, [eax + eax + 2]
mov eax, edi
add eax, 3
and al, 0xfc
call fcn.0041d080
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 [0x43e668]
cmp eax, esi
je 0x4098ff
mov edx, dword [ebp - 4]
mov ecx, dword [eax]
push edx
push eax
call dword [ecx + 0x34]
test eax, eax
jne 0x4098ff
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 [0x43e5f4]
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 0x409851
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 [0x43e7e8], 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 0x430a54
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 0x409b96
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 0x409b33
mov edi, 0x1a
mov dword [ebp - 0x1c], 0x43e640
mov dword [ebp - 0x18], edi
mov eax, dword [ebp - 4]
lea edx, [ebp - 0x28]
push edx
push 0x432508
mov ecx, dword [eax]
push esi
push esi
push eax
call dword [ecx + 0x24]
test eax, eax
jl 0x409afb
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 0x409af2
mov eax, dword [ebp - 0x30]
cmp eax, esi
mov dword [ebp - 0x20], eax
jne 0x409a4e
xor eax, eax
jmp 0x409a86
push eax
call fcn.0041aef0
lea edi, [eax + eax + 2]
mov eax, edi
add eax, 3
and al, 0xfc
call fcn.0041d080
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 [0x43e66c]
cmp eax, esi
je 0x409aae
mov edx, dword [ebp - 4]
mov ecx, dword [eax]
push edx
push eax
call dword [ecx + 0x34]
test eax, eax
jne 0x409aae
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 [0x43e5f4]
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 0x409a03
mov eax, dword [ebp - 8]
push eax
mov ecx, dword [eax]
call dword [ecx + 8]
mov ecx, dword [0x43e7f0]
mov eax, dword [ebp - 0x10]
cmp ecx, esi
mov dword [0x43e7ec], eax
je 0x409b96
cmp eax, esi
je 0x409b96
mov edx, dword [0x43f500]
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 0x409b96
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