Function at 0x40a040
Capabilities:
Read .ini file

Disassembly:
sub esp, 0x38
push esi
mov esi, dword [esp + 0x48]
push edi
mov edi, dword [sym.imp.KERNEL32.dll_GetPrivateProfileIntA]
push esi
push 0xffff
push str.Draft_High
push str.PrinterBidir
call edi
cmp ax, 0xffff
jne 0x40a06f
pop edi
xor al, al
pop esi
add esp, 0x38
ret
push esi
push 0xffff
push str.Draft_Std
push str.PrinterBidir
mov byte [esp + 0x1b], al
call edi
cmp ax, 0xffff
jne 0x40a093
pop edi
xor al, al
pop esi
add esp, 0x38
ret
push esi
push 0xffff
push str.Draft_Low
push str.PrinterBidir
mov byte [esp + 0x1c], al
call edi
cmp ax, 0xffff
jne 0x40a0b7
pop edi
xor al, al
pop esi
add esp, 0x38
ret
push esi
push 0xffff
push str.Text_High
push str.PrinterBidir
mov byte [esp + 0x1d], al
call edi
cmp ax, 0xffff
jne 0x40a0db
pop edi
xor al, al
pop esi
add esp, 0x38
ret
push esi
push 0xffff
push str.Text_Std
push str.PrinterBidir
mov byte [esp + 0x36], al
call edi
cmp ax, 0xffff
jne 0x40a0ff
pop edi
xor al, al
pop esi
add esp, 0x38
ret
push esi
push 0xffff
push str.Text_Low
push str.PrinterBidir
mov byte [esp + 0x37], al
call edi
cmp ax, 0xffff
jne 0x40a123
pop edi
xor al, al
pop esi
add esp, 0x38
ret
push esi
push 0xffff
push str.Image_High
push str.PrinterBidir
mov byte [esp + 0x38], al
call edi
cmp ax, 0xffff
jne 0x40a147
pop edi
xor al, al
pop esi
add esp, 0x38
ret
push esi
push 0xffff
push str.Image_Std
push str.PrinterBidir
mov byte [esp + 0x39], al
call edi
cmp ax, 0xffff
jne 0x40a16b
pop edi
xor al, al
pop esi
add esp, 0x38
ret
push esi
push 0xffff
push str.Image_Low
push str.PrinterBidir
mov byte [esp + 0x3a], al
call edi
cmp ax, 0xffff
jne 0x40a18f
pop edi
xor al, al
pop esi
add esp, 0x38
ret
push esi
push 0xffff
push str.Photo
push str.PrinterBidir
mov byte [esp + 0x3b], al
call edi
cmp ax, 0xffff
jne 0x40a1b3
pop edi
xor al, al
pop esi
add esp, 0x38
ret
push esi
push 0xffff
push str.Step_3Pass
push str.PrinterStep
mov byte [esp + 0x3c], al
call edi
cmp ax, 0xffff
jne 0x40a1d7
pop edi
xor al, al
pop esi
add esp, 0x38
ret
push esi
push 0xffff
push str.Step_4Pass
push str.PrinterStep
mov word [esp + 0x28], ax
call edi
cmp ax, 0xffff
jne 0x40a1fc
pop edi
xor al, al
pop esi
add esp, 0x38
ret
push esi
push 0xffff
push str.Step_6Pass
push str.PrinterStep
mov word [esp + 0x22], ax
call edi
cmp ax, 0xffff
jne 0x40a221
pop edi
xor al, al
pop esi
add esp, 0x38
ret
push esi
push 0xffff
push str.Step_8Pass
push str.PrinterStep
mov word [esp + 0x24], ax
call edi
cmp ax, 0xffff
jne 0x40a246
pop edi
xor al, al
pop esi
add esp, 0x38
ret
push esi
push 0xffff
push str.Start_Offset
push str.PrinterStartOffset
mov word [esp + 0x26], ax
call edi
cmp ax, 0xffff
jne 0x40a26b
pop edi
xor al, al
pop esi
add esp, 0x38
ret
push esi
push 0xffff
push str.Order_K2
push str.PrinterPHOrder
mov word [esp + 0x2c], ax
call edi
cmp ax, 0xffff
jne 0x40a290
pop edi
xor al, al
pop esi
add esp, 0x38
ret
push esi
push 0xffff
push str.Order_K1
push str.PrinterPHOrder
mov byte [esp + 0x2e], al
call edi
cmp ax, 0xffff
jne 0x40a2b4
pop edi
xor al, al
pop esi
add esp, 0x38
ret
push esi
push 0xffff
push str.Order_Y2
push str.PrinterPHOrder
mov byte [esp + 0x2f], al
call edi
cmp ax, 0xffff
jne 0x40a2d8
pop edi
xor al, al
pop esi
add esp, 0x38
ret
push esi
push 0xffff
push str.Order_Y1
push str.PrinterPHOrder
mov byte [esp + 0x30], al
call edi
cmp ax, 0xffff
jne 0x40a2fc
pop edi
xor al, al
pop esi
add esp, 0x38
ret
push esi
push 0xffff
push str.Order_M2
push str.PrinterPHOrder
mov byte [esp + 0x31], al
call edi
cmp ax, 0xffff
jne 0x40a320
pop edi
xor al, al
pop esi
add esp, 0x38
ret
push esi
push 0xffff
push str.Order_M1
push str.PrinterPHOrder
mov byte [esp + 0x32], al
call edi
cmp ax, 0xffff
jne 0x40a344
pop edi
xor al, al
pop esi
add esp, 0x38
ret
push esi
push 0xffff
push str.Order_C2
push str.PrinterPHOrder
mov byte [esp + 0x33], al
call edi
cmp ax, 0xffff
jne 0x40a368
pop edi
xor al, al
pop esi
add esp, 0x38
ret
push esi
push 0xffff
push str.Order_C1
push str.PrinterPHOrder
mov byte [esp + 0x34], al
call edi
cmp ax, 0xffff
jne 0x40a38c
pop edi
xor al, al
pop esi
add esp, 0x38
ret
push esi
push 0xffff
push str.ThitherMode
push str.PrinterThitherMode
mov byte [esp + 0x35], al
call edi
cmp ax, 0xffff
jne 0x40a3b0
pop edi
xor al, al
pop esi
add esp, 0x38
ret
push esi
push 0xffff
push str.ThitherPercent
push str.PrinterThitherPercent
mov byte [esp + 0x3d], al
call edi
cmp ax, 0xffff
jne 0x40a3d4
pop edi
xor al, al
pop esi
add esp, 0x38
ret
push esi
push 0xffff
push str.LR_Offset_Y
push str.PrinterColOffsetLR
mov byte [esp + 0x3e], al
call edi
cmp ax, 0xffff
jne 0x40a3f8
pop edi
xor al, al
pop esi
add esp, 0x38
ret
push esi
push 0xffff
push str.LR_Offset_M1
push str.PrinterColOffsetLR
mov byte [esp + 0x3f], al
call edi
cmp ax, 0xffff
jne 0x40a41c
pop edi
xor al, al
pop esi
add esp, 0x38
ret
push esi
push 0xffff
push str.LR_Offset_C1
push str.PrinterColOffsetLR
mov byte [esp + 0x40], al
call edi
cmp ax, 0xffff
jne 0x40a440
pop edi
xor al, al
pop esi
add esp, 0x38
ret
push esi
push 0xffff
push str.LR_Offset_M2
push str.PrinterColOffsetLR
mov byte [esp + 0x41], al
call edi
cmp ax, 0xffff
jne 0x40a464
pop edi
xor al, al
pop esi
add esp, 0x38
ret
push esi
push 0xffff
push str.LR_Offset_C2
push str.PrinterColOffsetLR
mov byte [esp + 0x42], al
call edi
cmp ax, 0xffff
jne 0x40a488
pop edi
xor al, al
pop esi
add esp, 0x38
ret
push esi
push 0xffff
push str.RL_Offset_Y
push str.PrinterColOffsetRL
mov byte [esp + 0x43], al
call edi
cmp ax, 0xffff
jne 0x40a4ac
pop edi
xor al, al
pop esi
add esp, 0x38
ret
push esi
push 0xffff
push str.RL_Offset_M1
push str.PrinterColOffsetRL
mov byte [esp + 0x44], al
call edi
cmp ax, 0xffff
jne 0x40a4d0
pop edi
xor al, al
pop esi
add esp, 0x38
ret
push esi
push 0xffff
push str.RL_Offset_C1
push str.PrinterColOffsetRL
mov byte [esp + 0x45], al
call edi
cmp ax, 0xffff
jne 0x40a4f4
pop edi
xor al, al
pop esi
add esp, 0x38
ret
push esi
push 0xffff
push str.RL_Offset_M2
push str.PrinterColOffsetRL
mov byte [esp + 0x46], al
call edi
cmp ax, 0xffff
jne 0x40a518
pop edi
xor al, al
pop esi
add esp, 0x38
ret
push esi
push 0xffff
push str.RL_Offset_C2
push str.PrinterColOffsetRL
mov byte [esp + 0x47], al
call edi
cmp ax, 0xffff
jne 0x40a53c
pop edi
xor al, al
pop esi
add esp, 0x38
ret
mov byte [esp + 0x38], al
mov eax, dword [esp + 0x44]
push 0
push 0
mov ecx, 0xe
lea esi, [esp + 0x10]
mov edi, eax
push 0x38
mov byte [esp + 0x14], 0x8b
push eax
rep movsd dword es:[edi], dword [esi]
push 0x41
call fcn.0040f980
add esp, 0x14
pop edi
pop esi
add esp, 0x38
ret