Function at 0x10002300
Capabilities:
Read .ini file

Disassembly:
sub esp, 0x140
push ebx
mov ebx, ecx
push ebp
push esi
mov esi, dword [esp + 0x150]
lea eax, [ebx + 4]
push edi
push eax
lea ecx, [esp + 0x28]
push 0x12c
push ecx
push 0x100113d4
push str.Req_Tuner
push str.Component
mov byte [esp + 0x3c], 0
call dword [sym.imp.KERNEL32.dll_GetPrivateProfileStringA]
mov al, byte [esp + 0x24]
test al, al
je 0x100025c4
xor ebp, ebp
lea edi, [esp + 0x24]
lea edx, [esp + 0x10]
push 0x14
push edx
push edi
mov ecx, ebx
call fcn.10003090
mov edi, eax
lea eax, [esp + 0x10]
push 0x1000e1b0
push eax
call fcn.1000b960
add esp, 8
test eax, eax
je 0x100025a3
lea ecx, [esp + 0x10]
push 0x1000e1ac
push ecx
call fcn.1000b960
add esp, 8
test eax, eax
je 0x100025b5
lea edx, [esp + 0x10]
push str.NTSC
push edx
call fcn.1000b960
add esp, 8
test eax, eax
jne 0x10002423
mov ecx, dword [ebx + 0x650]
test ecx, ecx
jle 0x100023d6
lea eax, [ebx + 0x45c]
cmp dword [eax + 0x50], 0x14f18800
jne 0x100023d0
cmp dword [eax], 0xf81002
jne 0x100023d0
mov ebp, 1
xor edi, edi
add eax, 4
dec ecx
jne 0x100023b8
cmp ebp, 1
je 0x10002596
mov esi, dword [ebx + 0x654]
test esi, esi
jle 0x10002596
xor eax, eax
test esi, esi
jle 0x10002596
mov ecx, dword [ebx + eax*4 + 0x5f8]
mov edx, ecx
and edx, 1
cmp dl, 1
je 0x10002410
and ecx, 0x10
cmp cl, 0x10
jne 0x10002419
mov ebp, 1
mov eax, esi
xor edi, edi
inc eax
cmp eax, esi
jl 0x100023f7
jmp 0x10002596
lea eax, [esp + 0x10]
push 0x1000e1a0
push eax
call fcn.1000b960
add esp, 8
test eax, eax
jne 0x100024dd
mov ecx, dword [ebx + 0x650]
test ecx, ecx
jle 0x1000246b
lea eax, [ebx + 0x45c]
cmp dword [eax + 0x50], 0x14f18800
jne 0x10002465
cmp dword [eax], 0xf81002
jne 0x10002465
mov ebp, 1
xor edi, edi
add eax, 4
dec ecx
jne 0x1000244d
cmp ebp, 1
je 0x10002596
mov esi, dword [ebx + 0x654]
test esi, esi
jle 0x10002596
xor ecx, ecx
test esi, esi
jle 0x10002596
mov eax, dword [ebx + ecx*4 + 0x5f8]
mov edx, eax
and edx, 2
cmp dl, 2
je 0x100024ca
mov edx, eax
and edx, 4
cmp dl, 4
je 0x100024ca
mov edx, eax
and edx, 8
cmp dl, 8
je 0x100024ca
mov edx, eax
and edx, 0x80
cmp dl, 0x80
je 0x100024ca
and eax, 0x100
cmp eax, 0x100
jne 0x100024d3
mov ebp, 1
mov ecx, esi
xor edi, edi
inc ecx
cmp ecx, esi
jl 0x1000248c
jmp 0x10002596
lea eax, [esp + 0x10]
push str.SECAM
push eax
call fcn.1000b960
add esp, 8
test eax, eax
jne 0x10002555
mov ecx, dword [ebx + 0x650]
test ecx, ecx
jle 0x10002521
lea eax, [ebx + 0x45c]
cmp dword [eax + 0x50], 0x14f18800
jne 0x1000251b
cmp dword [eax], 0xf81002
jne 0x1000251b
mov ebp, 1
xor edi, edi
add eax, 4
dec ecx
jne 0x10002503
cmp ebp, 1
je 0x10002596
mov ecx, dword [ebx + 0x654]
test ecx, ecx
jle 0x10002596
xor eax, eax
test ecx, ecx
jle 0x10002596
mov edx, dword [ebx + eax*4 + 0x5f8]
and edx, 0x40
cmp dl, 0x40
jne 0x1000254e
mov ebp, 1
mov eax, ecx
xor edi, edi
inc eax
cmp eax, ecx
jl 0x10002536
jmp 0x10002596
lea eax, [esp + 0x10]
push str.SCART
push eax
call fcn.1000b960
add esp, 8
test eax, eax
jne 0x10002596
mov ecx, dword [ebx + 0x654]
test ecx, ecx
jle 0x10002596
test ecx, ecx
jle 0x10002596
mov edx, dword [ebx + eax*4 + 0x5f8]
and edx, 0x20
cmp dl, 0x20
jne 0x10002591
mov ebp, 1
mov eax, ecx
xor edi, edi
inc eax
cmp eax, ecx
jl 0x10002579
test edi, edi
jne 0x1000234d
cmp ebp, 1
jne 0x100025b5
pop edi
pop esi
pop ebp
mov eax, 1
pop ebx
add esp, 0x140
ret 4
pop edi
pop esi
pop ebp
xor eax, eax
pop ebx
add esp, 0x140
ret 4
mov eax, esi
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x140
ret 4