Function at 0x45e4b1
Capabilities:
Resolve function by parsing pe exports

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0x704
mov eax, dword [0x5092e4]
xor eax, esp
mov dword [esp + 0x700], eax
push ebx
mov ebx, dword [ebp + 8]
push esi
push edi
push 0x7f
xor esi, esi
lea eax, [esp + 0x185]
push esi
push eax
mov dword [esp + 0x20], ebx
mov byte [esp + 0x18c], 0
call fcn.00401f80
xor eax, eax
mov dword [esp + 0x98], esi
lea edi, [esp + 0x9c]
stosd dword es:[edi], eax
stosd dword es:[edi], eax
stosd dword es:[edi], eax
add esp, 0xc
push 0x103
stosd dword es:[edi], eax
lea eax, [esp + 0x205]
push esi
push eax
mov dword [esp + 0x30], esi
mov dword [esp + 0x38], esi
mov byte [esp + 0x20c], 0
call fcn.00401f80
xor eax, eax
mov dword [esp + 0xcc], esi
lea edi, [esp + 0xd0]
stosd dword es:[edi], eax
stosd dword es:[edi], eax
stosd dword es:[edi], eax
xor eax, eax
mov dword [esp + 0xbc], esi
lea edi, [esp + 0xc0]
stosd dword es:[edi], eax
stosd dword es:[edi], eax
stosd dword es:[edi], eax
add esp, 0xc
xor eax, eax
mov dword [esp + 0x48], esi
mov dword [esp + 0x70], esi
cmp ebx, esi
je 0x45f98e
mov ecx, dword [ebx + 0x198]
inc eax
mov dword [ecx], eax
cmp dword [ebx + 0x1a8], 0xffffffff
mov dword [ebx + 0x1b8], esi
jne 0x45e582
mov dword [ebx + 0x1b8], eax
mov edi, dword [ebx + 0x1b0]
mov dword [esp + 0x4c], eax
mov eax, edi
mov dword [esp + 0x34], edi
mov dword [esp + 0x44], edi
call fcn.00453c03
test eax, eax
jne 0x45e5e0
cmp edi, esi
jne 0x45e5bd
mov esi, ebx
call fcn.0045d0ca
mov eax, dword [ebx + 0x194]
mov dword [eax], 3
xor eax, eax
jmp 0x45f98e
push edi
mov eax, 0x104
lea esi, [esp + 0x204]
call fcn.00445aee
and dword [esp + 0x38], 0
and dword [esp + 0x48], 0
mov edi, dword [esp + 0x38]
pop ecx
xor esi, esi
mov eax, edi
call fcn.00453c03
test eax, eax
je 0x45e5f6
mov edx, edi
call fcn.0045374e
test eax, eax
je 0x45e5a3
mov eax, dword [esp + 0x44]
cmp eax, esi
je 0x45e616
mov eax, dword [eax + 0x14]
mov dword [esp + 0x10], eax
cmp eax, esi
jne 0x45e6e3
mov eax, edi
call fcn.00453741
jmp 0x45e5a3
mov dword [esp + 0xb4], esi
mov dword [esp + 0xb0], esi
mov dword [esp + 0xbc], 0x9f6
cmp dword [ebx + 0x124], esi
je 0x45e655
mov eax, dword [ebx + 0x150]
dec eax
neg eax
sbb eax, eax
and eax, 0xfffffda8
add eax, 0xa8c
mov dword [esp + 0xb8], eax
jmp 0x45e660
mov dword [esp + 0xb8], 0x4b0
push esi
call dword [sym.imp.USER32.dll_GetDC]
mov ebx, eax
push ebx
call dword [sym.imp.GDI32.dll_CreateCompatibleDC]
push dword [esp + 0xbc]
mov edi, eax
push dword [esp + 0xbc]
mov dword [esp + 0x18], edi
push ebx
call dword [sym.imp.GDI32.dll_CreateCompatibleBitmap]
push ebx
push esi
mov dword [esp + 0x50], eax
call dword [sym.imp.USER32.dll_ReleaseDC]
cmp dword [esp + 0x48], esi
jne 0x45e6ae
push str._GetLastError_
push str.:5:PrinterPrintTillSheet_Helper___FAILED:_CreateCompatibleBitmap___FAILED:__s
call fcn.004a4bb1
pop ecx
pop ecx
push dword [esp + 0x48]
mov ebx, dword [sym.imp.GDI32.dll_SelectObject]
push edi
call ebx
mov esi, 0xffffff
push esi
push edi
mov dword [esp + 0x78], eax
call dword [sym.imp.GDI32.dll_SetBkColor]
push 0
push edi
call dword [sym.imp.GDI32.dll_SetTextColor]
push esi
push 0
push 0
push edi
call dword [sym.imp.GDI32.dll_FloodFill]
jmp 0x45e6e9
mov ebx, dword [sym.imp.GDI32.dll_SelectObject]
mov esi, dword [esp + 0x14]
mov eax, dword [esi + 0x198]
inc dword [eax]
cmp dword [esp + 0x44], 0
je 0x45e735
call fcn.0041df75
mov dword [esp + 0x28], eax
call fcn.0041df75
mov edi, 0x1388
jmp 0x45e727
mov eax, dword [esp + 0x44]
cmp dword [eax], 0
je 0x45e72f
push 1
call dword [sym.imp.KERNEL32.dll_Sleep]
call fcn.0041df75
sub eax, dword [esp + 0x28]
cmp eax, edi
jb 0x45e711
mov eax, dword [esp + 0x44]
inc dword [eax]
push 1
push dword [esp + 0x14]
call dword [sym.imp.GDI32.dll_SetMapMode]
lea edi, [esi + 0x23]
mov edx, edi
mov dword [esp + 0x78], eax
call fcn.00445b2f
test eax, eax
lea eax, [esp + 0x180]
jne 0x45e770
push edi
push str._s_Till
push 0x80
push eax
call fcn.004451a8
add esp, 0x10
jmp 0x45e783
push str.TILL_SHEET
push 0x80
push eax
call fcn.004451a8
add esp, 0xc
and dword [esp + 0x94], 0
cmp dword [esi + 0x134], 0
lea eax, [esp + 0x180]
mov dword [esp + 0x8c], 0x14
mov dword [esp + 0x90], eax
jne 0x45f4bc
xor eax, eax
xor ecx, ecx
mov dword [esp + 0xd0], ecx
lea edi, [esp + 0xd4]
stosd dword es:[edi], eax
stosd dword es:[edi], eax
stosd dword es:[edi], eax
xor eax, eax
mov dword [esp + 0xf0], ecx
lea edi, [esp + 0xf4]
stosd dword es:[edi], eax
stosd dword es:[edi], eax
stosd dword es:[edi], eax
xor eax, eax
mov dword [esp + 0xa0], ecx
lea edi, [esp + 0xa4]
stosd dword es:[edi], eax
stosd dword es:[edi], eax
mov dword [esp + 0x3c], ecx
mov dword [esp + 0x5c], ecx
stosd dword es:[edi], eax
cmp dword [esp + 0x34], ecx
je 0x45e832
lea eax, [esp + 0x8c]
push eax
push dword [esp + 0x14]
call dword [sym.imp.GDI32.dll_StartDocA]
test eax, eax
jg 0x45e832
push str._GetLastError_
push str.:9:PrinterPrintTillSheet_Helper___FAILED:_StartDoc___FAILED:__s
call fcn.004a4bb1
mov eax, dword [esi + 0x194]
and dword [esp + 0x54], 0
pop ecx
pop ecx
mov dword [eax], 4
push 0
call dword [sym.imp.GDI32.dll_GetStockObject]
mov edi, dword [sym.imp.USER32.dll_FillRect]
push eax
lea eax, [esp + 0xb4]
push eax
push dword [esp + 0x18]
call edi
push 0
call dword [sym.imp.GDI32.dll_GetStockObject]
push eax
lea eax, [esp + 0xc4]
push eax
push dword [esp + 0x18]
call edi
push 0x10
lea eax, [esp + 0xc4]
push 0
push eax
call fcn.00401f80
add esp, 0xc
cmp dword [esi + 0x1a8], 0
je 0x45e89d
cmp dword [esi + 0x1b8], 0
jne 0x45e89d
cmp dword [esp + 0x5c], 0
jne 0x45e89d
mov dword [esp + 0x58], 1
jmp 0x45e8a2
and dword [esp + 0x58], 0
cmp dword [esp + 0x34], 0
je 0x45e90c
push dword [esp + 0x10]
call dword [sym.imp.GDI32.dll_StartPage]
test eax, eax
jg 0x45e8c8
push str._GetLastError_
push str.:9:PrinterPrintTillSheet_Helper___FAILED:_StartPage___FAILED:__s
call fcn.004a4bb1
pop ecx
pop ecx
mov edi, dword [sym.imp.GDI32.dll_GetDeviceCaps]
push 0x58
push dword [esp + 0x14]
call edi
push 0x5a
push dword [esp + 0x14]
mov dword [esp + 0x24], eax
call edi
fild dword [esp + 0x1c]
mov dword [esp + 0x18], eax
fdiv qword [0x505d50]
fmul qword [0x505d48]
call fcn.004c6980
push eax
push dword [esp + 0x14]
call fcn.0041a178
mov edi, 0x12c
jmp 0x45e924
push 0x34
push dword [esp + 0x14]
mov edi, 0x12c
mov dword [esp + 0x24], edi
mov dword [esp + 0x20], edi
call fcn.0041a178
cmp dword [esi + 0x128], 0
pop ecx
mov dword [esp + 0x3c], eax
pop ecx
jne 0x45e9f8
cmp dword [esp + 0x1c], edi
jl 0x45e95f
cmp dword [esp + 0x18], edi
jl 0x45e95f
push str.HdSftLgBW300www.dat
push 0
call fcn.0046209e
push eax
push dword [esp + 0x1c]
call fcn.0041a85f
mov dword [esp + 0x38], edi
jmp 0x45e97d
push str.HdSftLgBW150www.dat
push 0
call fcn.0046209e
push eax
push dword [esp + 0x1c]
call fcn.0041a85f
mov dword [esp + 0x38], 0x96
add esp, 0x10
mov ebx, eax
mov dword [esp + 0x3c], eax
call fcn.0041a675
fild dword [esp + 0x28]
mov dword [esp + 0x40], eax
movsx eax, ax
fstp qword [esp + 0x50]
mov dword [esp + 0x20], eax
fild dword [esp + 0x1c]
fdiv qword [esp + 0x50]
fild dword [esp + 0x20]
fmulp st(1)
call fcn.004c6980
push eax
push dword [esp + 0x14]
call fcn.0041a178
fild dword [esp + 0x20]
mov word [esp + 0x7c], ax
movsx eax, word [esp + 0x4a]
fdiv qword [esp + 0x58]
mov dword [esp + 0x28], eax
fild dword [esp + 0x28]
fmulp st(1)
call fcn.004c6980
push eax
push dword [esp + 0x1c]
call fcn.0041a14e
mov ebx, dword [sym.imp.GDI32.dll_SelectObject]
mov esi, dword [esp + 0x24]
add esp, 0x10
mov di, ax
jmp 0x45ea0b
xor eax, eax
mov word [esp + 0x40], ax
mov word [esp + 0x42], ax
mov word [esp + 0x74], ax
xor edi, edi
push 0x10
lea eax, [esp + 0xd4]
push 0
push eax
call fcn.00401f80
add esp, 0xc
push 0x10
lea eax, [esp + 0xf4]
push 0
push eax
call fcn.00401f80
fild dword [esp + 0x24]
add esp, 0xc
cmp dword [esi + 0x1b8], 0
je 0x45eaa6
fld qword [0x505d40]
movsx edi, di
fdiv st(1), st(0)
push 2
mov dword [esp + 0x34], edi
fxch st(1)
fstp qword [esp + 0x54]
fld qword [esp + 0x54]
fmul qword [0x505d38]
call fcn.004c6980
fidivr dword [esp + 0x20]
sub edi, eax
add edi, dword [esp + 0x3c]
fmul qword [0x505d30]
call fcn.004c6980
mov ecx, dword [esp + 0xcc]
mov edx, dword [esp + 0x1c]
mov esi, dword [esp + 0x20]
sub ecx, eax
push ecx
push dword [esp + 0x1c]
lea eax, [esp + 0xcc]
push dword [esp + 0x1c]
call fcn.0045c6c1
jmp 0x45ebba
fdiv qword [0x505d40]
movsx esi, di
mov dword [esp + 0x30], esi
fstp qword [esp + 0x50]
fld qword [esp + 0x50]
fmul qword [0x505d38]
call fcn.004c6980
mov edx, dword [esp + 0x18]
sub esi, eax
mov eax, dword [esp + 0x38]
lea edi, [esi + eax]
mov eax, dword [esp + 0x14]
push dword [eax + 0x150]
mov esi, dword [esp + 0x20]
push connect
push eax
push dword [esp + 0x1c]
lea eax, [esp + 0xd0]
call fcn.0045c6c1
mov eax, dword [esp + 0x24]
add esp, 0x10
cmp dword [eax + 0x124], 0
je 0x45ebbd
fild dword [esp + 0x1c]
mov eax, dword [eax + 0x150]
fdiv qword [0x505d40]
fmul qword [0x505d30]
cmp eax, 1
jne 0x45eb7e
call fcn.004c6980
mov ecx, dword [esp + 0xc8]
mov edx, dword [esp + 0x18]
push 2
sub ecx, eax
push ecx
push dword [esp + 0x1c]
mov dword [esp + 0x2c], eax
push dword [esp + 0x1c]
lea eax, [esp + 0xe0]
call fcn.0045c6c1
mov eax, dword [esp + 0xe8]
sub eax, dword [esp + 0x30]
mov edx, dword [esp + 0x28]
push 3
push eax
push dword [esp + 0x2c]
lea eax, [esp + 0x10c]
push dword [esp + 0x2c]
call fcn.0045c6c1
add esp, 0x20
jmp 0x45ebbd
push eax
call fcn.004c6980
mov ecx, dword [esp + 0xcc]
mov edx, dword [esp + 0x1c]
mov esi, dword [esp + 0x20]
sub ecx, eax
push ecx
push 0
push dword [esp + 0x1c]
lea eax, [esp + 0xe0]
call fcn.0045c6c1
lea esi, [esp + 0xe0]
lea edi, [esp + 0x100]
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
add esp, 0x10
xor esi, esi
cmp dword [esp + 0x3c], esi
je 0x45f0fe
mov edi, dword [sym.imp.GDI32.dll_SetStretchBltMode]
push 4
push dword [esp + 0x40]
call edi
push esi
push esi
push esi
push dword [esp + 0x48]
call dword [sym.imp.GDI32.dll_SetBrushOrgEx]
push 4
push dword [esp + 0x14]
call edi
push esi
push esi
push esi
push dword [esp + 0x1c]
call dword [sym.imp.GDI32.dll_SetBrushOrgEx]
movsx eax, word [esp + 0x42]
movsx edi, word [esp + 0x74]
push 0xcc0020
push eax
movsx eax, word [esp + 0x48]
push eax
push esi
push esi
push dword [esp + 0x50]
push dword [esp + 0x48]
push edi
push dword [esp + 0x58]
push dword [esp + 0xe4]
push dword [esp + 0x38]
call dword [sym.imp.GDI32.dll_StretchBlt]
mov eax, dword [esp + 0x3c]
call fcn.0041a6a3
xor eax, eax
cmp dword [esp + 0x1c], 0x12c
mov dword [esp + 0x3c], esi
setl al
add eax, 6
push eax
push dword [esp + 0x14]
call fcn.0041a14e
mov dword [esp + 0x28], eax
fild dword [esp + 0x28]
pop ecx
pop ecx
fmul qword [esp + 0x50]
call fcn.004c6980
fild dword [esp + 0x1c]
push eax
push dword [esp + 0x3c]
fdiv qword [0x505d40]
fmul qword [0x505d28]
call fcn.004c6980
sub edi, eax
add edi, dword [esp + 0xc8]
push edi
push dword [esp + 0x1c]
call fcn.0041a178
pop ecx
pop ecx
push eax
push dword [esp + 0x1c]
call fcn.0041b8b3
mov edi, dword [esp + 0x24]
add esp, 0x10
cmp dword [edi + 0x150], 1
jne 0x45f102
push 0x7f
lea eax, [esp + 0x105]
push esi
push eax
mov byte [esp + 0x10c], 0
call fcn.00401f80
fild dword [esp + 0x28]
add esp, 0xc
fstp dword [esp + 0x2c]
fld dword [esp + 0x2c]
fdiv qword [0x505a70]
fld qword [0x505918]
fadd st(1), st(0)
fxch st(1)
call fcn.004c6980
mov dword [esp + 0x24], eax
cmp eax, esi
jg 0x45ed02
mov dword [esp + 0x24], 1
cmp dword [esp + 0x18], esi
jle 0x45ed2c
cmp dword [esp + 0x1c], esi
jle 0x45ed2c
fild dword [esp + 0x24]
fstp dword [esp + 0x24]
fild dword [esp + 0x18]
fdiv dword [esp + 0x2c]
fld dword [esp + 0x24]
fmul qword [0x505a68]
fmulp st(1)
jmp 0x45ed3e
fild dword [esp + 0x24]
fstp dword [esp + 0x24]
fld dword [esp + 0x24]
fmul qword [0x505a68]
faddp st(1)
call fcn.004c6980
mov dword [esp + 0x2c], eax
cmp eax, esi
jg 0x45ed55
mov dword [esp + 0x2c], 1
fild dword [esp + 0x2c]
fld qword [0x505b50]
fmul st(1), st(0)
fxch st(1)
call fcn.004c6980
fmul dword [esp + 0x24]
mov dword [esp + 0x2c], eax
call fcn.004c6980
mov dword [esp + 0x24], eax
cmp dword [edi + 0x1b8], esi
je 0x45ef2b
fild dword [esp + 0x2c]
push ecx
push ecx
fmul qword [0x505970]
fstp qword [esp]
call fcn.00404500
call fcn.004c6980
fild dword [esp + 0x2c]
mov edi, eax
fmul qword [0x505970]
fstp qword [esp]
call fcn.00404500
pop ecx
pop ecx
call fcn.004c6980
push str.Arial
push 0x30
push 1
push esi
push 5
push esi
push esi
push esi
push 1
push 0x64
push esi
push esi
push eax
push edi
mov dword [esp + 0x60], eax
call dword [sym.imp.GDI32.dll_CreateFontA]
mov ecx, dword [esp + 0x30]
add ecx, dword [esp + 0xcc]
mov dword [esp + 0x20], eax
mov eax, dword [esp + 0x28]
imul eax, eax, 0xe
add eax, dword [esp + 0xc0]
push 6
push dword [esp + 0x14]
mov dword [esp + 0x24], eax
mov dword [esp + 0x20], ecx
call dword [sym.imp.GDI32.dll_SetTextAlign]
push dword [esp + 0x20]
mov dword [esp + 0x2c], eax
push dword [esp + 0x14]
call ebx
push str.Leave_this_form_with_your_till.
mov dword [esp + 0x34], eax
lea eax, [esp + 0x104]
push 0x80
push eax
call fcn.004451a8
lea eax, [esp + 0x10c]
add esp, 0xc
push eax
call fcn.00401a80
pop ecx
push eax
lea eax, [esp + 0x104]
push eax
push dword [esp + 0x20]
push dword [esp + 0x28]
push dword [esp + 0x20]
call dword [sym.imp.GDI32.dll_TextOutA]
push str.Use_it_to_verify_your_Till_Start
lea eax, [esp + 0x104]
push 0x80
push eax
call fcn.004451a8
lea eax, [esp + 0x10c]
add esp, 0xc
push eax
call fcn.00401a80
pop ecx
push eax
lea eax, [esp + 0x104]
push eax
mov eax, dword [esp + 0x20]
add eax, edi
push eax
push dword [esp + 0x28]
push dword [esp + 0x20]
call dword [sym.imp.GDI32.dll_TextOutA]
push str.the_next_time_the_till_is_used.
lea eax, [esp + 0x104]
push 0x80
push eax
call fcn.004451a8
lea eax, [esp + 0x10c]
add esp, 0xc
push eax
call fcn.00401a80
pop ecx
push eax
lea eax, [esp + 0x104]
push eax
mov eax, dword [esp + 0x20]
lea eax, [eax + edi*2]
push eax
push dword [esp + 0x28]
push dword [esp + 0x20]
call dword [sym.imp.GDI32.dll_TextOutA]
imul edi, edi, 3
add edi, dword [esp + 0x18]
cmp dword [esp + 0xcc], edi
jge 0x45ef04
mov dword [esp + 0xcc], edi
push dword [esp + 0x30]
push dword [esp + 0x14]
call ebx
push dword [esp + 0x28]
push dword [esp + 0x14]
call dword [sym.imp.GDI32.dll_SetTextAlign]
push dword [esp + 0x20]
call dword [sym.imp.GDI32.dll_DeleteObject]
jmp 0x45f0fe
push str.Arial
push 0x30
push 1
push esi
mov edi, dword [sym.imp.GDI32.dll_CreateFontA]
push 5
push esi
push esi
push esi
push 1
push 0x1f4
push esi
push esi
push dword [esp + 0x54]
push dword [esp + 0x60]
call edi
fild dword [esp + 0x2c]
push str.Arial
push 0x30
fstp dword [esp + 0x28]
push 1
fild dword [esp + 0x30]
push esi
fld qword [0x505d20]
push 5
push esi
fdiv st(1), st(0)
push esi
push esi
push esi
push 0x1f4
push esi
push esi
mov dword [esp + 0x48], eax
fxch st(1)
call fcn.004c6980
fdivr dword [esp + 0x50]
push eax
call fcn.004c6980
push eax
call edi
mov dword [esp + 0x1c], eax
mov eax, dword [esp + 0x14]
movzx edi, word [eax + 6]
call fcn.00444341
mov edi, dword [esp + 0x14]
push eax
movzx eax, word [edi + 6]
push eax
movzx eax, word [edi + 2]
call fcn.00446536
movzx ecx, word [edi]
push eax
movzx eax, word [edi + 6]
push eax
movzx eax, word [edi + 2]
call fcn.0041e4e7
pop ecx
call fcn.0044422b
push eax
push str._s___s__d_s
lea eax, [esp + 0x114]
push 0x80
push eax
call fcn.004451a8
add esp, 0x1c
push 6
push dword [esp + 0x14]
call dword [sym.imp.GDI32.dll_SetTextAlign]
push dword [esp + 0x18]
mov dword [esp + 0x2c], eax
push dword [esp + 0x14]
call ebx
mov dword [esp + 0x30], eax
lea eax, [esp + 0x100]
push eax
call fcn.00401a80
pop ecx
push eax
lea eax, [esp + 0x104]
push eax
mov eax, dword [esp + 0xd0]
add eax, dword [esp + 0x2c]
push dword [esp + 0x40]
add eax, eax
push eax
push dword [esp + 0x20]
call dword [sym.imp.GDI32.dll_TextOutA]
push dword [esp + 0x1c]
push dword [esp + 0x14]
call ebx
add edi, 0x14
mov ecx, edi
call fcn.00474ada
test eax, eax
mov eax, dword [esp + 0x14]
push dword [eax + 0x10]
lea eax, [esp + 0x104]
je 0x45f07a
push edi
push str.__s___Day__d_
push 0x80
push eax
call fcn.004451a8
add esp, 0x14
jmp 0x45f08d
push str._Accounting_Day__d_
push 0x80
push eax
call fcn.004451a8
add esp, 0x10
lea eax, [esp + 0x100]
push eax
call fcn.00401a80
fld dword [esp + 0x24]
fmul qword [0x505d18]
pop ecx
push eax
lea eax, [esp + 0x104]
push eax
call fcn.004c6980
mov ecx, dword [esp + 0x40]
sub ecx, eax
mov eax, dword [esp + 0xd0]
push ecx
mov ecx, dword [esp + 0x30]
add eax, ecx
add eax, eax
push eax
push dword [esp + 0x20]
call dword [sym.imp.GDI32.dll_TextOutA]
push dword [esp + 0x30]
push dword [esp + 0x14]
call ebx
push dword [esp + 0x28]
push dword [esp + 0x14]
call dword [sym.imp.GDI32.dll_SetTextAlign]
push dword [esp + 0x18]
mov edi, dword [sym.imp.GDI32.dll_DeleteObject]
call edi
push dword [esp + 0x1c]
call edi
mov edi, dword [esp + 0x14]
cmp dword [edi + 0x1a0], esi
je 0x45f3d8
xor eax, eax
lea edi, [esp + 0x64]
stosd dword es:[edi], eax
stosd dword es:[edi], eax
stosd dword es:[edi], eax
xor eax, eax
mov dword [esp + 0xe0], esi
lea edi, [esp + 0xe4]
stosd dword es:[edi], eax
stosd dword es:[edi], eax
stosd dword es:[edi], eax
mov edi, dword [esp + 0x24]
push 0x3ff
lea eax, [esp + 0x30d]
push esi
push eax
shl edi, 2
mov byte [esp + 0x314], 0
call fcn.00401f80
mov esi, dword [sym.imp.GDI32.dll_GetStockObject]
add esp, 0xc
push 7
call esi
push eax
push dword [esp + 0x14]
call ebx
push 4
mov dword [esp + 0x20], eax
call esi
push eax
push dword [esp + 0x14]
call ebx
mov ecx, dword [esp + 0xb0]
mov esi, dword [esp + 0xb4]
mov dword [esp + 0x50], eax
mov eax, edi
cdq
sub eax, edx
mov edx, dword [esp + 0xf8]
sar eax, 1
add edx, eax
mov dword [esp + 0x68], edx
mov edx, dword [esp + 0xcc]
mov dword [esp + 0x60], ecx
mov dword [esp + 0x64], esi
cmp dword [esp + 0xfc], edx
jle 0x45f1b4
mov edx, dword [esp + 0xfc]
add edx, eax
lea eax, [edi + esi]
push eax
mov dword [esp + 0x70], edx
lea edx, [edi + ecx]
push edx
push esi
mov esi, dword [sym.imp.GDI32.dll_Ellipse]
push ecx
push dword [esp + 0x20]
mov dword [esp + 0x34], eax
mov dword [esp + 0x3c], edx
call esi
push dword [esp + 0x20]
mov eax, dword [esp + 0x6c]
push dword [esp + 0x6c]
sub eax, edi
push dword [esp + 0x6c]
mov dword [esp + 0x3c], eax
push eax
push dword [esp + 0x20]
call esi
push dword [esp + 0x6c]
mov eax, dword [esp + 0x70]
push dword [esp + 0x2c]
sub eax, edi
push eax
push dword [esp + 0x6c]
mov dword [esp + 0x30], eax
push dword [esp + 0x20]
call esi
push dword [esp + 0x6c]
push dword [esp + 0x6c]
push dword [esp + 0x28]
push dword [esp + 0x3c]
push dword [esp + 0x20]
call esi
fild dword [esp + 0x24]
fld qword [0x505d10]
fmul st(1), st(0)
fxch st(1)
call fcn.004c6980
fimul dword [esp + 0x2c]
mov dword [esp + 0x18], eax
call fcn.004c6980
push str.Arial
push 0x30
push 1
mov dword [esp + 0x2c], eax
xor eax, eax
push eax
push 5
push eax
push eax
push eax
push 1
push 0x1f4
push eax
push eax
push dword [esp + 0x48]
push dword [esp + 0x54]
call dword [sym.imp.GDI32.dll_CreateFontA]
sub esp, 0x10
lea esi, [esp + 0x70]
mov edi, esp
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
mov dword [esp + 0x38], eax
movsd dword es:[edi], dword [esi]
call fcn.0047e8a0
cdq
push 3
pop ecx
idiv ecx
mov ecx, dword [esp + 0x28]
imul ecx, ecx, 0x29
add eax, dword [esp + 0x70]
add ecx, eax
mov dword [esp + 0xf0], eax
mov dword [esp + 0xf8], ecx
lea esi, [esp + 0x70]
mov edi, esp
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
call fcn.0047e884
add esp, 0x10
push 3
pop esi
cdq
idiv esi
mov edi, dword [esp + 0x20]
mov esi, dword [esp + 0x18]
mov edx, edi
imul edx, edx, 0xb
add esi, esi
add edi, edi
push edi
push esi
add ecx, esi
mov dword [esp + 0x28], edi
mov edi, dword [esp + 0x18]
add eax, dword [esp + 0x6c]
add edx, eax
mov dword [esp + 0xf4], edx
add edx, esi
push edx
mov dword [esp + 0xf0], eax
push ecx
sub eax, esi
push eax
mov eax, dword [esp + 0xf4]
sub eax, esi
push eax
push edi
call dword [sym.imp.GDI32.dll_RoundRect]
push 0
call dword [sym.imp.GDI32.dll_GetStockObject]
push eax
push edi
call ebx
push dword [esp + 0x20]
mov eax, dword [esp + 0x1c]
mov ecx, dword [esp + 0xf0]
add ecx, eax
push esi
push ecx
mov ecx, dword [esp + 0xf4]
add ecx, eax
push ecx
mov ecx, dword [esp + 0xf4]
sub ecx, eax
push ecx
mov ecx, dword [esp + 0xf4]
sub ecx, eax
push ecx
push edi
call dword [sym.imp.GDI32.dll_RoundRect]
push dword [esp + 0x28]
push edi
call ebx
mov esi, dword [sym.imp.GDI32.dll_SetTextAlign]
push 0
push edi
mov dword [esp + 0x28], eax
call esi
push str.________________This_is_a_test_page_______n_nYou_should_see_a_large_black_dot_in_each_corner_of_the_page.__If_you_do_not_see_all_four_black_dots__parts_of_the_form_have_not_printed.__This_indicates_an_alignment_problem_that_will_need_to_be_fixed.__Please_ask_your_HoodSoftware_representative_for_help_if_you_cannot_see_all_four_dots_in_each_corner_of_the_form.
mov dword [esp + 0x34], eax
lea eax, [esp + 0x30c]
push 0x400
push eax
call fcn.004451a8
add esp, 0xc
push 0x10
lea eax, [esp + 0xe4]
push eax
lea eax, [esp + 0x310]
push eax
call fcn.00401a80
pop ecx
push eax
lea eax, [esp + 0x314]
push eax
push edi
call dword [sym.imp.USER32.dll_DrawTextA]
push dword [esp + 0x1c]
push edi
call ebx
push dword [esp + 0x50]
push edi
call ebx
push dword [esp + 0x20]
push edi
call ebx
push dword [esp + 0x30]
push edi
call esi
push dword [esp + 0x28]
call dword [sym.imp.GDI32.dll_DeleteObject]
mov edi, dword [esp + 0x14]
xor esi, esi
mov eax, dword [edi + 0x198]
inc dword [eax]
mov eax, dword [edi + 0x19c]
cmp dword [esp + 0x58], esi
je 0x45f413
fild dword [edi + 0x19c]
test eax, eax
jns 0x45f3fc
fadd dword [0x5056f8]
fmul qword [0x505970]
push ecx
push ecx
fstp qword [esp]
call fcn.00404500
pop ecx
pop ecx
call fcn.004c69b6
mov dword [esp + 0x18], eax
cmp dword [esp + 0x34], esi
je 0x45f591
push dword [esp + 0x10]
call dword [sym.imp.GDI32.dll_EndPage]
test eax, eax
jg 0x45f440
push str._GetLastError_
push str.:9:PrinterPrintTillSheet_Helper___FAILED:_EndPage___FAILED:__s
call fcn.004a4bb1
pop ecx
pop ecx
mov eax, dword [edi + 0x198]
add dword [eax], 0xa
cmp dword [esp + 0x58], esi
jne 0x45f6b8
mov eax, dword [edi + 0x198]
mov ecx, dword [esp + 0x18]
mov dword [eax], ecx
xor eax, eax
cmp dword [esp + 0x5c], eax
je 0x45f483
mov ecx, dword [esp + 0x14]
lea esi, [esp + 0xa0]
lea edi, [esp + 0xc0]
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
mov dword [ecx + 0x1b8], eax
movsd dword es:[edi], dword [esi]
cmp dword [esp + 0x34], eax
je 0x45f4b8
push dword [esp + 0x10]
call dword [sym.imp.GDI32.dll_EndDoc]
test eax, eax
jg 0x45f4a8
push str._GetLastError_
push str.:9:PrinterPrintTillSheet_Helper___FAILED:_EndDoc___FAILED:__s
call fcn.004a4bb1
pop ecx
pop ecx
mov eax, dword [esp + 0x14]
mov eax, dword [eax + 0x198]
mov ecx, dword [esp + 0x18]
mov dword [eax], ecx
mov esi, dword [esp + 0x14]
cmp dword [esi + 0x12c], 0
je 0x45f912
mov eax, dword [esp + 0x14]
cmp dword [eax + 0x130], 0
je 0x45f912
push str._DEMO
mov eax, 0x80
lea esi, [esp + 0x184]
call fcn.00445aee
xor edi, edi
mov eax, esi
pop ecx
mov dword [esp + 0x8c], 0x14
mov dword [esp + 0x90], eax
mov dword [esp + 0x94], edi
cmp dword [esp + 0x34], edi
je 0x45f6e2
lea eax, [esp + 0x8c]
push eax
push dword [esp + 0x14]
call dword [sym.imp.GDI32.dll_StartDocA]
test eax, eax
jg 0x45f553
push str._GetLastError_
push str.:9:PrinterPrintTillSheet_Helper___FAILED:_StartDoc___FAILED_2:__s
call fcn.004a4bb1
mov eax, dword [esp + 0x1c]
mov eax, dword [eax + 0x194]
pop ecx
pop ecx
mov dword [esp + 0x4c], edi
mov dword [eax], 4
push dword [esp + 0x10]
call dword [sym.imp.GDI32.dll_StartPage]
test eax, eax
jg 0x45f572
push str._GetLastError_
push str.:9:PrinterPrintTillSheet_Helper___FAILED:_StartPage___FAILED_2:__s
call fcn.004a4bb1
pop ecx
pop ecx
mov esi, dword [sym.imp.GDI32.dll_GetDeviceCaps]
push 0x58
push dword [esp + 0x14]
call esi
push 0x5a
push dword [esp + 0x14]
mov dword [esp + 0x24], eax
call esi
jmp 0x45f6eb
xor eax, eax
lea edi, [esp + 0x80]
stosd dword es:[edi], eax
stosd dword es:[edi], eax
push 0x7f
stosd dword es:[edi], eax
lea eax, [esp + 0x105]
push esi
push eax
mov byte [esp + 0x10c], 0
call fcn.00401f80
mov eax, dword [esp + 0x44]
mov ecx, dword [esp + 0xd4]
mov dword [esp + 0x8c], eax
mov eax, dword [esp + 0xcc]
mov dword [esp + 0x88], eax
mov eax, dword [esp + 0xd8]
add eax, 0x16
mov dword [esp + 0x94], eax
mov eax, dword [esp + 0x20]
add esp, 0xc
cmp dword [eax + 0x124], esi
je 0x45f60c
mov eax, dword [esp + 0xf8]
cmp eax, ecx
jle 0x45f60c
add eax, 0x16
mov dword [esp + 0x84], eax
jmp 0x45f616
add ecx, 0x16
mov dword [esp + 0x84], ecx
lea eax, [esp + 0x180]
push eax
lea eax, [esp + 0x104]
cmp dword [esp + 0x60], esi
je 0x45f640
push str._s_Base
push 0x80
push eax
call fcn.004451a8
add esp, 0x10
jmp 0x45f64b
mov ecx, 0x80
call fcn.00444961
pop ecx
mov eax, dword [esp + 0x14]
sub esp, 0x10
mov edi, esp
push dword [eax + 0x1a4]
lea esi, [esp + 0x90]
push dword [esp + 0x2c]
movsd dword es:[edi], dword [esi]
push dword [esp + 0x50]
movsd dword es:[edi], dword [esi]
push dword [esp + 0x98]
movsd dword es:[edi], dword [esi]
push dword [esp + 0x30]
lea ecx, [esp + 0x124]
push ecx
mov ecx, dword [eax + 0x198]
lea edx, [esp + 0x228]
movsd dword es:[edi], dword [esi]
call fcn.0045dca8
add esp, 0x28
mov dword [esp + 0x4c], eax
test eax, eax
jne 0x45f6ad
mov eax, dword [esp + 0x14]
mov eax, dword [eax + 0x194]
mov dword [eax], 5
cmp dword [esp + 0x58], 0
je 0x45f45f
mov ecx, dword [esp + 0x14]
lea esi, [esp + 0xc0]
lea edi, [esp + 0xa0]
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
xor eax, eax
inc eax
movsd dword es:[edi], dword [esi]
mov dword [esp + 0x5c], eax
mov dword [ecx + 0x1b8], eax
mov esi, ecx
jmp 0x45e832
mov eax, 0x12c
mov dword [esp + 0x1c], eax
fild dword [esp + 0x1c]
mov dword [esp + 0x18], eax
fstp dword [esp + 0x2c]
fld dword [esp + 0x2c]
fdiv qword [0x505d08]
fld qword [0x505918]
fadd st(1), st(0)
fxch st(1)
call fcn.004c6980
mov dword [esp + 0x24], eax
cmp eax, edi
jg 0x45f720
mov dword [esp + 0x24], 1
cmp dword [esp + 0x18], edi
jle 0x45f742
cmp dword [esp + 0x1c], edi
jle 0x45f742
fild dword [esp + 0x18]
fdiv dword [esp + 0x2c]
fild dword [esp + 0x24]
fmul qword [0x505b50]
fmulp st(1)
jmp 0x45f74c
fild dword [esp + 0x24]
fmul qword [0x505b50]
faddp st(1)
call fcn.004c6980
mov esi, eax
cmp esi, edi
jg 0x45f75c
xor esi, esi
inc esi
push 3
call fcn.0041a719
mov dword [esp], 0x4ce084
push 1
push 1
push edi
push 5
push edi
push edi
push edi
push edi
push 0x1f4
push edi
push edi
push dword [esp + 0x54]
push esi
call dword [sym.imp.GDI32.dll_CreateFontA]
mov dword [esp + 0x20], eax
cmp eax, edi
jne 0x45f7a4
push str._GetLastError_
push str.:7:PrinterPrintTillSheet___encountered_a_problem:_CreateFont___FAILED_to_create_the_DEMO_invoice_font___s
call fcn.004a5d2b
mov dword [esp + 0x30], edi
jmp 0x45f7c2
push eax
push dword [esp + 0x14]
call ebx
mov dword [esp + 0x28], eax
cmp eax, edi
jne 0x45f7c4
push str._GetLastError_
push str.:1:PrinterPrintTillSheet___encountered_a_problem:_SelectObject___returned_NULL_while_selecting_the_DEMO_invoice_font___This_will_result_in_a_memory_leak:__s
call fcn.004a5d2b
pop ecx
pop ecx
mov ecx, dword [esp + 0x24]
mov edx, dword [esp + 0x14]
lea eax, [esp + 0xc0]
push eax
push esi
imul esi, esi, 3
mov eax, ecx
imul eax, eax, 3
push esi
push eax
push dword [esp + 0x20]
call fcn.0045733c
add esp, 0x14
cmp dword [esp + 0x34], edi
je 0x45f838
push dword [esp + 0x10]
call dword [sym.imp.GDI32.dll_EndPage]
test eax, eax
jg 0x45f810
push str._GetLastError_
push str.:9:PrinterPrintTillSheet_Helper___FAILED:_EndPage___FAILED_2:__s
call fcn.004a4bb1
pop ecx
pop ecx
push dword [esp + 0x10]
call dword [sym.imp.GDI32.dll_EndDoc]
test eax, eax
jg 0x45f8f0
push str._GetLastError_
push str.:9:PrinterPrintTillSheet_Helper___FAILED:_EndDoc___FAILED_2:__s
call fcn.004a4bb1
pop ecx
pop ecx
jmp 0x45f8f0
mov ecx, dword [esp + 0x14]
xor eax, eax
mov edx, dword [esp + 0xc0]
lea edi, [esp + 0xd4]
stosd dword es:[edi], eax
stosd dword es:[edi], eax
stosd dword es:[edi], eax
mov eax, dword [esp + 0xcc]
and dword [esp + 0xd4], 0
add eax, 0x16
mov dword [esp + 0xdc], eax
mov eax, dword [esp + 0xc8]
add eax, 0x16
mov dword [esp + 0xd8], eax
mov eax, dword [ecx + 0x19c]
mov ecx, dword [ecx + 0x198]
shr eax, 1
mov dword [esp + 0xd0], edx
cmp dword [ecx], eax
jbe 0x45f894
mov dword [ecx], eax
mov eax, dword [esp + 0x14]
sub esp, 0x10
mov edi, esp
push dword [eax + 0x1a4]
lea esi, [esp + 0xe4]
push dword [eax + 0x19c]
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
push 0
push edx
push dword [esp + 0x30]
movsd dword es:[edi], dword [esi]
lea ecx, [esp + 0x1a4]
push ecx
mov ecx, dword [eax + 0x198]
lea edx, [esp + 0x228]
movsd dword es:[edi], dword [esi]
call fcn.0045dca8
add esp, 0x28
mov dword [esp + 0x4c], eax
test eax, eax
jne 0x45f8f0
mov eax, dword [esp + 0x14]
mov eax, dword [eax + 0x194]
mov dword [eax], 5
cmp dword [esp + 0x28], 0
je 0x45f912
push dword [esp + 0x28]
push dword [esp + 0x14]
call ebx
cmp dword [esp + 0x20], 0
je 0x45f912
push dword [esp + 0x20]
call dword [sym.imp.GDI32.dll_DeleteObject]
xor edi, edi
cmp dword [esp + 0x78], edi
je 0x45f928
push dword [esp + 0x78]
push dword [esp + 0x14]
call dword [sym.imp.GDI32.dll_SetMapMode]
cmp dword [esp + 0x34], edi
jne 0x45f95e
cmp dword [esp + 0x70], edi
je 0x45f93e
push dword [esp + 0x70]
push dword [esp + 0x14]
call ebx
cmp dword [esp + 0x48], edi
je 0x45f94e
push dword [esp + 0x48]
call dword [sym.imp.GDI32.dll_DeleteObject]
cmp dword [esp + 0x10], edi
je 0x45f95e
push dword [esp + 0x10]
call dword [sym.imp.GDI32.dll_DeleteDC]
mov eax, dword [esp + 0x44]
cmp eax, edi
je 0x45f971
dec dword [eax]
mov eax, dword [esp + 0x34]
call fcn.00453741
mov esi, dword [esp + 0x14]
mov eax, dword [esi + 0x194]
cmp dword [eax], 0xff
jne 0x45f985
mov dword [eax], edi
call fcn.0045d0ca
mov eax, dword [esp + 0x4c]
mov ecx, dword [esp + 0x70c]
pop edi
pop esi
pop ebx
xor ecx, esp
call fcn.00401317
mov esp, ebp
pop ebp
ret 4