Function at 0x493490
Capabilities:
Read .ini file

Disassembly:
sub esp, 0xd48
push ebx
mov ebx, dword [esp + 0xd50]
push ebp
xor ebp, ebp
push esi
cmp ebx, ebp
push edi
mov dword [esp + 0x10], ebp
jne 0x4934bb
pop edi
pop esi
pop ebp
mov eax, 1
pop ebx
add esp, 0xd48
ret
mov eax, dword [0x5b5700]
cmp eax, ebp
je 0x4934d1
push eax
call dword [sym.imp.GDI32.dll_DeleteDC]
mov dword [0x5b5700], ebp
mov esi, dword [sym.imp.KERNEL32.dll_GetPrivateProfileIntW]
mov ecx, 0x247
xor eax, eax
lea edi, [esp + 0x2c]
rep stosd dword es:[edi], eax
mov edi, dword [esp + 0xd78]
mov dword [esp + 0x10c], ebp
cmp edi, ebp
mov dword [esp + 0x108], ebx
mov dword [esp + 0x104], ebp
je 0x493518
push 0x5b9260
push ebp
push str.AlwaysDefPrinter
push 0x5a11dc
call esi
jmp 0x49351f
mov eax, dword [esp + 0xd70]
cmp eax, ebp
je 0x49354b
mov eax, dword [esp + 0xd74]
cmp eax, ebp
jne 0x493538
lea eax, [esp + 0x328]
push eax
jmp 0x493599
lea ecx, [esp + 0x328]
push eax
push ecx
call fcn.004d631b
add esp, 8
jmp 0x4935a1
push 0x5b9260
lea edx, [esp + 0x32c]
push 0x104
push edx
push 0x5aae60
push str.Printer
push 0x5a11dc
call dword [sym.imp.KERNEL32.dll_GetPrivateProfileStringW]
cmp word [esp + 0x328], bp
je 0x493591
lea eax, [esp + 0x328]
push eax
push ebp
call fcn.00499160
add esp, 8
test eax, eax
jne 0x4935a1
lea ecx, [esp + 0x328]
push ecx
call fcn.00498870
add esp, 4
cmp dword [esp + 0xd64], ebp
je 0x4935bd
mov eax, 1
mov dword [esp + 0x104], eax
mov dword [esp + 0x8c], eax
lea edx, [esp + 0x110]
lea eax, [esp + 0x328]
push edx
push eax
call fcn.00498a70
add esp, 8
cmp eax, ebp
mov dword [esp + 0x10c], eax
jne 0x493624
cmp edi, ebp
je 0x49360c
mov ecx, dword [0x5b5574]
push ebp
push ebp
push ebp
push ebp
push 0x4e8c
push ecx
call fcn.004cc7f0
add esp, 0x18
mov eax, 1
pop edi
pop esi
pop ebp
pop ebx
add esp, 0xd48
ret
push 0x10
call dword [sym.imp.USER32.dll_MessageBeep]
pop edi
pop esi
pop ebp
mov eax, 1
pop ebx
add esp, 0xd48
ret
push eax
call fcn.00498780
add esp, 4
push 0x5b9260
push ebp
push str.AutoRotate
push 0x5a11dc
call esi
lea edx, [esp + 0x2c]
push ebx
push edx
mov dword [esp + 0x38], eax
call fcn.00499320
mov eax, dword [esp + 0x120]
mov ecx, dword [esp + 0x114]
push eax
lea edx, [esp + 0x334]
push ecx
push edx
call fcn.00498bd0
add esp, 0x14
cmp eax, ebp
mov dword [0x5b5700], eax
jne 0x49373a
lea eax, [esp + 0x328]
push eax
call fcn.00498870
lea ecx, [esp + 0x30]
push ecx
call fcn.00493460
lea edx, [esp + 0x118]
lea eax, [esp + 0x330]
push edx
push eax
call fcn.00498a70
push eax
mov dword [esp + 0x120], eax
call fcn.00498780
mov ecx, dword [esp + 0x12c]
mov edx, dword [esp + 0x120]
push ecx
lea eax, [esp + 0x340]
push edx
push eax
call fcn.00498bd0
add esp, 0x20
cmp eax, ebp
mov dword [0x5b5700], eax
jne 0x49373a
lea ecx, [esp + 0x2c]
push ecx
call fcn.00493460
lea edx, [esp + 0x114]
push ebp
lea eax, [esp + 0x330]
push edx
push eax
call fcn.004990b0
add esp, 0x10
cmp eax, ebp
mov dword [esp + 0x10c], eax
je 0x493614
push eax
call fcn.00498780
mov ecx, dword [esp + 0x11c]
mov edx, dword [esp + 0x110]
push ecx
lea eax, [esp + 0x330]
push edx
push eax
call fcn.00498bd0
add esp, 0x10
mov dword [0x5b5700], eax
lea ecx, [esp + 0x2c]
push ecx
call fcn.00498330
mov edx, dword [0x5b5700]
lea eax, [esp + 0x30]
push edx
push eax
call fcn.004986c0
add esp, 0xc
cmp edi, ebp
je 0x493814
mov edx, dword [0x5b5528]
mov eax, dword [0x5b5574]
lea ecx, [esp + 0x2c]
mov dword [esp + 0x108], ebx
push ecx
push 0x496ad0
push edx
push 0x408
push eax
call dword [sym.imp.USER32.dll_DialogBoxParamW]
cmp eax, 1
je 0x4937bc
mov ecx, dword [0x5b5700]
push ecx
call dword [sym.imp.GDI32.dll_DeleteDC]
lea edx, [esp + 0x2c]
mov dword [0x5b5700], ebp
push edx
call fcn.00493460
add esp, 4
or eax, 0xffffffff
pop edi
pop esi
pop ebp
pop ebx
add esp, 0xd48
ret
mov eax, dword [0x5b5700]
push eax
call dword [sym.imp.GDI32.dll_DeleteDC]
mov ecx, dword [esp + 0x118]
mov edx, dword [esp + 0x10c]
push ecx
lea eax, [esp + 0x32c]
push edx
push eax
mov dword [0x5b5700], ebp
call fcn.00498bd0
add esp, 0xc
cmp eax, ebp
mov dword [0x5b5700], eax
jne 0x49383a
lea ecx, [esp + 0x2c]
push ecx
call fcn.00493460
add esp, 4
mov eax, 1
pop edi
pop esi
pop ebp
pop ebx
add esp, 0xd48
ret
mov eax, dword [0x5b5700]
cmp eax, ebp
jne 0x49383a
lea edx, [esp + 0x2c]
push edx
call fcn.00493460
add esp, 4
mov eax, 1
pop edi
pop esi
pop ebp
pop ebx
add esp, 0xd48
ret
xor ecx, ecx
mov edi, dword [esp + 0xd60]
mov dword [0x5b6ea0], ecx
mov dword [0x5b6ea0], 0x14
mov dword [0x5b6ea4], ecx
mov dword [0x5b6ea4], edi
mov dword [0x5b6ea8], ecx
mov dword [0x5b6ea8], ebp
mov dword [0x5b6eac], ecx
mov dword [0x5b6eb0], ecx
mov ecx, dword [esp + 0x114]
cmp ecx, ebp
je 0x49388c
mov dword [0x5b6ea8], str.FILE:
push 0x5b6ea0
push eax
call dword [sym.imp.GDI32.dll_StartDocW]
test eax, eax
jg 0x4938cc
mov edx, dword [0x5b5700]
push edx
call dword [sym.imp.GDI32.dll_DeleteDC]
lea eax, [esp + 0x2c]
mov dword [0x5b5700], ebp
push eax
call fcn.00493460
add esp, 4
mov eax, 1
pop edi
pop esi
pop ebp
pop ebx
add esp, 0xd48
ret
mov esi, dword [esp + 0xd6c]
cmp esi, ebp
je 0x493a8e
push esi
xor edi, edi
xor ebx, ebx
mov dword [esp + 0x1c], ebp
call fcn.004d6713
add esp, 4
test eax, eax
jle 0x493909
cmp word [esi + ebp*2], 0x7c
jne 0x4938fb
inc dword [esp + 0x18]
push esi
inc ebp
call fcn.004d6713
add esp, 4
cmp ebp, eax
jl 0x4938f0
xor ebp, ebp
push esi
mov dword [esp + 0x18], ebp
call fcn.004d6713
add esp, 4
test eax, eax
jle 0x493ace
mov ebp, dword [sym.imp.USER32.dll_SetCursor]
mov ecx, dword [esp + 0x14]
mov ax, word [esi + ecx*2]
cmp ax, 0x7c
je 0x493942
mov word [esp + ebx*2 + 0x948], ax
inc ebx
jmp 0x493a6c
mov edx, dword [esp + 0x18]
mov word [esp + ebx*2 + 0x948], 0
xor ebx, ebx
inc edi
push edx
push edi
lea eax, [esp + 0xb58]
push str.Printing_image:__d_of__d
push eax
call fcn.004d5ee1
mov edx, dword [0x5b554c]
add esp, 0x10
lea ecx, [esp + 0xb50]
push ecx
push edx
call dword [sym.imp.USER32.dll_SetWindowTextW]
push 0x7f02
push ebx
call dword [sym.imp.USER32.dll_LoadCursorW]
push eax
call ebp
push ebx
push ebx
push ebx
push ebx
push 1
push ebx
push ebx
push ebx
lea eax, [esp + 0x3c]
push ebx
lea ecx, [esp + 0x44]
push eax
lea edx, [esp + 0x50]
push ecx
lea eax, [esp + 0x50]
push edx
push eax
push ebx
lea ecx, [esp + 0x980]
push ebx
push ecx
call fcn.004a71a0
add esp, 0x40
mov esi, eax
push 0x7f00
push ebx
call dword [sym.imp.USER32.dll_LoadCursorW]
push eax
call ebp
test esi, esi
je 0x493a65
mov eax, dword [esp + 0x30]
test eax, eax
je 0x493a30
mov edx, dword [esp + 0x10c]
lea ecx, [esp + 0x2c]
push esi
push ecx
movsx eax, word [edx + 0x4c]
mov dword [esp + 0x18], eax
call fcn.00499320
mov eax, dword [esp + 0x114]
mov ecx, dword [esp + 0x18]
add esp, 8
movsx edx, word [eax + 0x4c]
cmp edx, ecx
je 0x493a30
push eax
mov eax, dword [0x5b5700]
push eax
call dword [sym.imp.GDI32.dll_ResetDCW]
mov ecx, dword [0x5b5700]
lea edx, [esp + 0x2c]
push ecx
push edx
call fcn.004986c0
add esp, 8
mov eax, dword [esp + 0x18]
mov ecx, dword [esp + 0x1c]
push eax
push edi
push ecx
lea edx, [esp + 0x38]
push 0xffffffffffffffff
lea eax, [esp + 0x958]
push edx
push eax
push esi
call fcn.00493150
add esp, 0x1c
mov dword [esp + 0x10], eax
push esi
call dword [sym.imp.KERNEL32.dll_GlobalUnlock]
push esi
call dword [sym.imp.KERNEL32.dll_GlobalFree]
mov esi, dword [esp + 0xd6c]
mov ecx, dword [esp + 0x14]
push esi
inc ecx
mov dword [esp + 0x18], ecx
call fcn.004d6713
mov ecx, dword [esp + 0x18]
add esp, 4
cmp ecx, eax
jl 0x493926
xor ebp, ebp
jmp 0x493ace
mov ecx, dword [0x5b54fc]
push ebp
push ebp
push 0x1004
push ecx
call dword [sym.imp.USER32.dll_SendMessageW]
mov edx, dword [0x5b5648]
mov ecx, dword [esp + 0xd64]
push eax
mov eax, dword [esp + 0xd6c]
inc edx
push edx
push eax
lea edx, [esp + 0x38]
push ecx
push edx
push edi
push ebx
call fcn.00493150
add esp, 0x1c
mov dword [esp + 0x10], eax
mov eax, dword [0x5b5700]
push eax
call dword [sym.imp.GDI32.dll_EndDoc]
mov ecx, dword [0x5b5700]
push ecx
call dword [sym.imp.GDI32.dll_DeleteDC]
lea edx, [esp + 0x2c]
mov dword [0x5b5700], ebp
push edx
call fcn.00493460
mov eax, dword [esp + 0x14]
add esp, 4
pop edi
pop esi
pop ebp
pop ebx
add esp, 0xd48
ret