Function at 0x426c80
Capabilities:
Check if file exists
Read .ini file

Disassembly:
push ebp
lea ebp, [esp - 0x2804]
mov eax, 0x2804
call fcn.004ab4d0
push 0xffffffffffffffff
push 0x4cfc10
mov eax, dword fs:[0]
push eax
sub esp, 0x2c
mov eax, dword [0x51c080]
xor eax, ebp
mov dword [ebp + 0x2800], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov dword [ebp - 0x10], esp
push str.Set_Config.ini__
mov ecx, 0x527b30
call fcn.00449000
add esp, 4
xor ebx, ebx
mov dword [ebp - 4], ebx
push 0x800
push ebx
lea eax, [ebp + 0x2000]
push eax
call fcn.004ab450
add esp, 0xc
push str.config.ini
sub esp, 0x1c
mov dword [ebp - 0x14], esp
mov edx, str.SRC_DIR
mov eax, esp
call fcn.00411be0
mov byte [ebp - 4], 1
push 0x52c1fc
mov byte [ebp - 4], bl
lea esi, [ebp - 0x38]
call fcn.00411c20
mov byte [ebp - 4], 2
cmp dword [eax + 0x18], 8
jb 0x426d26
mov eax, dword [eax + 4]
jmp 0x426d29
add eax, 4
push eax
push 0x4dd780
push 0x400
lea ecx, [ebp + 0x2000]
push ecx
call fcn.004a9ca9
add esp, 0x14
mov byte [ebp - 4], bl
lea esi, [ebp - 0x38]
call fcn.00411bb0
lea edx, [ebp + 0x2000]
push edx
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
jne 0x426d9d
lea eax, [ebp + 0x2000]
push eax
push str.Invalid_Config.ini_file___s___
mov ecx, 0x527b30
call fcn.00449000
add esp, 8
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp + 0x2800]
xor ecx, ebp
call fcn.004a998e
add ebp, 0x2804
mov esp, ebp
pop ebp
ret
push 0x2000
push ebx
lea ecx, [ebp]
push ecx
call fcn.004ab450
add esp, 0xc
lea edx, [ebp + 0x2000]
push edx
push 0x1000
lea eax, [ebp]
push eax
push str.INSTALL
call dword [sym.imp.KERNEL32.dll_GetPrivateProfileSectionW]
test eax, eax
jne 0x426de2
push str.Invalid_INSTALL_section_in_Configuration_file__
mov ecx, 0x527b30
call fcn.00449000
add esp, 4
jmp 0x426d78
lea ecx, [ebp + 0x2000]
push ecx
push 1
push str.SILENT
push str.INSTALL
mov edi, dword [sym.imp.KERNEL32.dll_GetPrivateProfileIntW]
call edi
cmp eax, ebx
je 0x426e44
mov byte [0x52c22a], 1
mov esi, str.TRUE
sub esp, 0x1c
mov dword [ebp - 0x14], esp
mov edx, 0x4e5238
mov eax, esp
call fcn.00411be0
mov byte [ebp - 4], 3
mov byte [ebp - 4], bl
mov edx, esi
mov ecx, 0x52c1fc
call fcn.004115f0
push str._Config.ini__Set_Silent_Install__
mov ecx, 0x527b30
call fcn.00449000
add esp, 4
push 0x2000
push ebx
lea edx, [ebp]
push edx
call fcn.004ab450
add esp, 0xc
lea eax, [ebp + 0x2000]
push eax
push 0x1000
lea ecx, [ebp]
push ecx
push str.LPT1:
push str.PORT
push str.INSTALL
call dword [sym.imp.KERNEL32.dll_GetPrivateProfileStringW]
test eax, eax
je 0x426ebc
lea esi, [ebp]
sub esp, 0x1c
mov dword [ebp - 0x14], esp
mov edx, 0x4dced4
mov eax, esp
call fcn.00411be0
mov byte [ebp - 4], 4
mov byte [ebp - 4], bl
mov edx, esi
mov ecx, 0x52c1fc
call fcn.004115f0
mov edx, esi
push edx
push str._Config.ini__Set_Port__s_
mov ecx, 0x527b30
call fcn.00449000
add esp, 8
lea eax, [ebp + 0x2000]
push eax
push 2
push str.DEFAULT
push str.INSTALL
call edi
mov dword [ebp - 0x18], ebx
mov dword [ebp - 0x1c], ebx
mov ecx, eax
sub ecx, ebx
je 0x426f54
sub ecx, 1
je 0x426f90
sub ecx, 1
je 0x426f0a
push eax
push str.Invalid_default_value___d_
mov ecx, 0x527b30
call fcn.00449000
add esp, 8
mov dword [ebp - 4], 0xffffffff
jmp 0x426d78
lea ecx, [ebp - 0x1c]
push ecx
lea edx, [ebp - 0x18]
push edx
push ebx
push ebx
push 2
push ebx
push 2
call sub.WINSPOOL.DRV_EnumPrintersW
cmp dword [ebp - 0x18], ebx
je 0x426f90
mov esi, str.TRUE
sub esp, 0x1c
mov dword [ebp - 0x14], esp
mov edx, 0x4db5b8
mov eax, esp
call fcn.00411be0
mov byte [ebp - 4], 6
mov byte [ebp - 4], bl
mov edx, esi
mov ecx, 0x52c1fc
call fcn.004115f0
push str._Config.ini__Set_default_printer___false__there_is_any_installed_printer_driver_
jmp 0x426f83
mov esi, str.TRUE
sub esp, 0x1c
mov dword [ebp - 0x14], esp
mov edx, 0x4db5b8
mov eax, esp
call fcn.00411be0
mov byte [ebp - 4], 5
mov byte [ebp - 4], bl
mov edx, esi
mov ecx, 0x52c1fc
call fcn.004115f0
push str._Config.ini__Set_default_printer___false
mov ecx, 0x527b30
call fcn.00449000
add esp, 4
mov dword [ebp - 4], 0xffffffff
jmp 0x426d78