Function at 0x491f50
Capabilities:
Read .ini file

Disassembly:
sub esp, 0x61c
mov eax, dword [esp + 0x624]
push ebp
add eax, 0xffffffee
push esi
cmp eax, 0x68
push edi
mov ebp, 1
mov word [esp + 0x114], 0
mov byte [esp + 0x10], 0
mov dword [esp + 0xc], 0
ja case.0x491f90.29
xor ecx, ecx
mov cl, byte [eax + 0x492324]
jmp dword [ecx*4 + 0x4922f4]
lea edx, [esp + 0x114]
push str.FORMATS.DLL
push edx
call fcn.004d631b
mov eax, dword [str.ScanDCX_W]
mov ecx, dword [0x5a10cc]
mov dx, word [0x5a10d0]
mov dword [esp + 0x18], eax
mov dword [esp + 0x1c], ecx
mov word [esp + 0x20], dx
jmp 0x492216
lea eax, [esp + 0x114]
push str.FORMATS.DLL
push eax
call fcn.004d631b
mov ecx, dword [str.ScanWAD3]
mov edx, dword [0x5a10c0]
mov al, byte [0x5a10c4]
add esp, 8
mov dword [esp + 0x10], ecx
mov dword [esp + 0x14], edx
mov byte [esp + 0x18], al
xor ebp, ebp
jmp case.0x491f90.29
lea ecx, [esp + 0x114]
push str.ICS.DLL
push ecx
call fcn.004d631b
mov edx, dword [str.ScanICS]
mov eax, dword [0x5a10b8]
add esp, 8
mov dword [esp + 0x10], edx
mov dword [esp + 0x14], eax
xor ebp, ebp
jmp case.0x491f90.29
lea ecx, [esp + 0x114]
push str.SFF.DLL
push ecx
call fcn.004d631b
mov edx, dword [str.ScanSFF_W]
mov eax, dword [0x5a10ac]
mov cx, word [0x5a10b0]
jmp 0x492209
lea edx, [esp + 0x114]
push str.WBZ.DLL
push edx
call fcn.004d631b
mov eax, dword [str.ScanWBC]
mov ecx, dword [0x5a10a4]
add esp, 8
mov dword [esp + 0x10], eax
mov dword [esp + 0x14], ecx
xor ebp, ebp
jmp case.0x491f90.29
lea edx, [esp + 0x114]
push str.POSTSCRIPT.DLL
push edx
call fcn.004d631b
add esp, 8
push 0x5b9260
push 1
push str.Load_UseNewDLL
push 0x598da0
call dword [sym.imp.KERNEL32.dll_GetPrivateProfileIntW]
test eax, eax
je 0x4920f3
lea eax, [esp + 0x114]
push str.PDF.DLL
push eax
call fcn.004d631b
mov ecx, dword [str.ScanPDF_W]
mov edx, dword [0x5a1098]
mov ax, word [0x5a109c]
mov dword [esp + 0x18], ecx
mov dword [esp + 0x1c], edx
mov word [esp + 0x20], ax
jmp 0x492216
mov ecx, dword [str.ScanPDF_W]
mov edx, dword [0x5a1098]
mov ax, word [0x5a109c]
mov dword [esp + 0x10], ecx
mov dword [esp + 0x14], edx
mov word [esp + 0x18], ax
jmp case.0x491f90.29
lea ecx, [esp + 0x114]
push str.FORMATS.DLL
push ecx
call fcn.004d631b
mov edx, dword [str.ScanGLCD_W]
mov eax, dword [0x5a108c]
mov cx, word [0x5a1090]
mov dword [esp + 0x18], edx
mov dl, byte [0x5a1092]
mov byte [esp + 0x22], dl
jmp 0x49220d
lea eax, [esp + 0x114]
push str.FORMATS.DLL
push eax
call fcn.004d631b
mov ecx, dword [str.ScanMPO_W]
mov edx, dword [0x5a1080]
mov ax, word [0x5a1084]
mov dword [esp + 0x18], ecx
mov dword [esp + 0x1c], edx
mov word [esp + 0x20], ax
jmp 0x492216
lea ecx, [esp + 0x114]
push str.TOOLS.DLL
push ecx
call fcn.004d631b
mov ecx, 5
mov esi, str.ScanResourceImages_W
lea edi, [esp + 0x18]
rep movsd dword es:[edi], dword [esi]
movsb byte es:[edi], byte [esi]
jmp 0x492216
lea edx, [esp + 0x114]
push str.WEBP.DLL
push edx
call fcn.004d631b
mov eax, dword [str.ScanWEBP_W]
mov ecx, dword [0x5a105c]
mov dx, word [0x5a1060]
mov dword [esp + 0x18], eax
mov al, byte [0x5a1062]
mov dword [esp + 0x1c], ecx
mov word [esp + 0x20], dx
mov byte [esp + 0x22], al
jmp 0x492216
lea ecx, [esp + 0x114]
push str.JPEG_XL.DLL
push ecx
call fcn.004d631b
mov edx, dword [str.ScanJXL_W]
mov eax, dword [0x5a1050]
mov cx, word [0x5a1054]
mov dword [esp + 0x18], edx
mov dword [esp + 0x1c], eax
mov word [esp + 0x20], cx
add esp, 8
lea edx, [esp + 0x420]
lea eax, [esp + 0xc]
push edx
lea ecx, [esp + 0x118]
push eax
push ecx
call fcn.00490890
mov edi, eax
add esp, 0xc
test edi, edi
jne 0x492253
mov ecx, dword [esp + 0x630]
pop edi
cmp ecx, 0x19
pop esi
setne al
pop ebp
add esp, 0x61c
ret
cmp ebp, 1
jne 0x49227e
lea edx, [esp + 0x10]
push edx
push edi
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
test eax, eax
jne 0x4922e5
cmp dword [esp + 0x630], 0x19
jne 0x4922cf
pop edi
pop esi
xor eax, eax
pop ebp
add esp, 0x61c
ret
lea eax, [esp + 0x10]
push eax
push edi
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
mov esi, eax
test esi, esi
je 0x492268
mov eax, dword [esp + 0x62c]
lea edx, [esp + 0x31c]
push edx
push eax
call fcn.00490210
lea ecx, [esp + 0x324]
push ecx
call esi
add esp, 0xc
mov esi, eax
mov eax, dword [esp + 0xc]
test eax, eax
jne 0x4922c3
push edi
call dword [sym.imp.KERNEL32.dll_FreeLibrary]
mov eax, esi
pop edi
pop esi
pop ebp
add esp, 0x61c
ret
push edi
call dword [sym.imp.KERNEL32.dll_FreeLibrary]
pop edi
pop esi
mov eax, 1
pop ebp
add esp, 0x61c
ret
mov ecx, dword [esp + 0x62c]
push ecx
call eax
add esp, 4
jmp 0x4922b2