Function at 0x491f70
Capabilities:
Hide graphical window

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x134
mov eax, dword [0x4f6fc0]
xor eax, ebp
mov dword [ebp - 4], eax
mov dword [ebp - 0x110], 1
mov dword [ebp - 0x11c], str.Records_Manager___Print
push str.dyned_prn.txt
push 0x4fa370
push 0x4f1c08
push 0x55cda0
call fcn.004b6e08
add esp, 0x10
mov dword [0x550ee8], 1
mov dword [0x55cc40], 0x42
mov eax, dword [0x18a0254]
mov dword [0x55cc44], eax
mov dword [0x55cc48], 0
mov dword [0x55cc4c], 0
mov dword [0x55cc54], 0x180104
mov ecx, 1
mov word [0x55cc60], cx
mov edx, dword [0x55cc30]
push edx
call dword [sym.imp.USER32.dll_SetCursor]
mov dword [0x55cc2c], eax
call fcn.004926d0
mov dword [0x55cc28], eax
cmp dword [0x55cc28], 0
jne 0x492025
jmp 0x492568
mov dword [0x55cc20], 0x492880
mov dword [0x55cc1c], 0x4927f0
mov eax, dword [0x55cc1c]
push eax
mov ecx, dword [0x55cc28]
push ecx
call dword [sym.imp.GDI32.dll_SetAbortProc]
mov dword [ebp - 0x130], 0x14
mov edx, dword [ebp - 0x11c]
mov dword [ebp - 0x12c], edx
mov dword [ebp - 0x128], 0
mov dword [ebp - 0x124], 0
mov dword [ebp - 0x120], 0
lea eax, [ebp - 0x130]
push eax
mov ecx, dword [0x55cc28]
push ecx
call dword [sym.imp.GDI32.dll_StartDocA]
mov dword [ebp - 0x114], eax
cmp dword [ebp - 0x114], 0
jg 0x4920ea
cmp dword [ebp - 0x114], 0xfffffffe
je 0x4920d9
mov dword [0x550eec], 1
push 0x1010
push 0
push str.Print_Error
mov edx, dword [0x18a0254]
push edx
call dword [sym.imp.USER32.dll_MessageBoxA]
mov dword [0x550eec], 0
mov eax, dword [0x55cc28]
push eax
call dword [sym.imp.GDI32.dll_DeleteDC]
jmp 0x492568
mov dword [0x55cc18], 0
push 0
mov ecx, dword [0x55cc20]
push ecx
mov edx, dword [0x18a0254]
push edx
push str.AbortDlg
mov eax, dword [0x18a0250]
push eax
call dword [sym.imp.USER32.dll_CreateDialogParamA]
mov dword [0x55cc24], eax
cmp dword [0x55cc24], 0
jne 0x492162
mov ecx, dword [0x55cc2c]
push ecx
call dword [sym.imp.USER32.dll_SetCursor]
mov dword [0x550eec], 1
push 0x1010
push 0
push str.Print_abort
mov edx, dword [0x18a0254]
push edx
call dword [sym.imp.USER32.dll_MessageBoxA]
mov dword [0x550eec], 0
jmp 0x492568
push 1
mov eax, dword [0x55cc24]
push eax
call dword [sym.imp.USER32.dll_ShowWindow]
push 0
mov ecx, dword [0x18a0254]
push ecx
call dword [sym.imp.USER32.dll_EnableWindow]
mov edx, dword [0x55cc2c]
push edx
call dword [sym.imp.USER32.dll_SetCursor]
push 1
call fcn.00492920
add esp, 4
push 0x55cbe0
mov eax, dword [0x55cc28]
push eax
call dword [sym.imp.GDI32.dll_GetTextMetricsA]
mov ecx, dword [0x55cbe0]
sub ecx, dword [0x55cbec]
mov dword [0x55ceb4], ecx
push 6
mov edx, dword [0x55cc28]
push edx
call dword [sym.imp.GDI32.dll_GetDeviceCaps]
mov dword [0x55ceac], eax
push 0x5a
mov eax, dword [0x55cc28]
push eax
call dword [sym.imp.GDI32.dll_GetDeviceCaps]
mov dword [0x55ceac], eax
push 0x2a
mov ecx, dword [0x55cc28]
push ecx
call dword [sym.imp.GDI32.dll_GetDeviceCaps]
mov dword [0x55ceac], eax
push 0xa
mov edx, dword [0x55cc28]
push edx
call dword [sym.imp.GDI32.dll_GetDeviceCaps]
mov dword [0x55ceac], eax
mov eax, dword [0x55ceac]
cdq
idiv dword [0x55ceb4]
sub eax, 1
mov dword [0x55ceb0], eax
mov eax, dword [0x55ceb0]
sub eax, 5
mov dword [0x55ceb0], eax
mov dword [0x55cea8], 1
mov ecx, dword [0x55cc28]
push ecx
call dword [sym.imp.GDI32.dll_StartPage]
push 0x4f1c34
push 0x55cda0
call fcn.0041a470
add esp, 8
mov dword [ebp - 0x10c], eax
cmp dword [ebp - 0x10c], 0
je 0x492503
mov dword [0x55cea4], 1
mov dword [ebp - 0x108], 1
jmp 0x49228a
mov edx, dword [ebp - 0x108]
add edx, 1
mov dword [ebp - 0x108], edx
mov eax, dword [ebp - 0x108]
cmp eax, dword [0x52738c]
jg 0x492315
cmp dword [ebp - 0x108], 1
jne 0x4922ab
push 2
call fcn.00492920
add esp, 4
mov ecx, dword [ebp - 0x108]
mov edx, dword [ecx*4 + 0x8c38e0]
push edx
call fcn.004b5f60
add esp, 4
push eax
mov eax, dword [ebp - 0x108]
mov ecx, dword [eax*4 + 0x8c38e0]
push ecx
mov edx, dword [0x55cea8]
imul edx, dword [0x55ceb4]
push edx
push 0
mov eax, dword [0x55cc28]
push eax
call fcn.004a1050
add esp, 0x14
cmp dword [ebp - 0x108], 1
jne 0x492301
push 1
call fcn.00492920
add esp, 4
mov ecx, dword [0x55cea8]
add ecx, 1
mov dword [0x55cea8], ecx
jmp 0x49227b
mov edx, 1
imul edx, edx, 0
mov dword [ebp - 0x118], edx
cmp dword [ebp - 0x118], 0xff
jae 0x492331
jmp 0x492336
call fcn.004b64ae
mov eax, dword [ebp - 0x118]
mov byte [ebp + eax - 0x104], 0
mov ecx, dword [ebp - 0x10c]
push ecx
push 0xff
lea edx, [ebp - 0x104]
push edx
call fcn.004b6cc9
add esp, 0xc
push 0x4f1c38
lea eax, [ebp - 0x104]
push eax
call fcn.004b6b14
add esp, 8
push 0x4f1c3c
push 0x55cca0
call fcn.004b5e60
add esp, 8
lea ecx, [ebp - 0x104]
push ecx
push 0x55cca0
call fcn.004b5e70
add esp, 8
push 0x55cca0
call fcn.004b5f60
add esp, 4
mov dword [0x55cea0], eax
mov edx, 1
imul edx, edx, 3
movsx eax, byte [edx + 0x55cca0]
cmp eax, 0x2b
je 0x4923d3
mov ecx, 1
imul ecx, ecx, 3
movsx edx, byte [ecx + 0x55cca0]
cmp edx, 0x2d
jne 0x4923dd
push 3
call fcn.00492920
add esp, 4
mov eax, 1
imul eax, eax, 5
movsx ecx, byte [eax + 0x55cca0]
cmp ecx, 0x2b
je 0x492405
mov edx, 1
imul edx, edx, 5
movsx eax, byte [edx + 0x55cca0]
cmp eax, 0x2d
jne 0x49240f
push 4
call fcn.00492920
add esp, 4
mov ecx, dword [0x55cea0]
push ecx
push 0x55cca0
mov edx, dword [0x55cea8]
imul edx, dword [0x55ceb4]
push edx
push 0
mov eax, dword [0x55cc28]
push eax
call fcn.004a1050
add esp, 0x14
mov dword [ebp - 0x134], eax
mov ecx, 1
imul ecx, ecx, 3
movsx edx, byte [ecx + 0x55cca0]
cmp edx, 0x2b
je 0x49248f
mov eax, 1
imul eax, eax, 3
movsx ecx, byte [eax + 0x55cca0]
cmp ecx, 0x2d
je 0x49248f
mov edx, 1
imul edx, edx, 5
movsx eax, byte [edx + 0x55cca0]
cmp eax, 0x2b
je 0x49248f
mov ecx, 1
imul ecx, ecx, 5
movsx edx, byte [ecx + 0x55cca0]
cmp edx, 0x2d
jne 0x492499
push 1
call fcn.00492920
add esp, 4
cmp dword [ebp - 0x110], 1
jne 0x4924b6
push 1
call fcn.00492920
add esp, 4
mov dword [ebp - 0x110], 0
mov eax, dword [0x55cea8]
add eax, 1
mov dword [0x55cea8], eax
mov ecx, dword [0x55cea8]
cmp ecx, dword [0x55ceb0]
jle 0x4924dd
call fcn.00492aa0
cmp eax, 1
jne 0x4924dd
jmp 0x4924f4
mov edx, dword [ebp - 0x10c]
push edx
call fcn.004b6ca3
add esp, 4
test eax, eax
je 0x492315
mov eax, dword [ebp - 0x10c]
push eax
call fcn.00419ca0
add esp, 4
push 0
call fcn.00492920
add esp, 4
cmp dword [0x55cea4], 0
jle 0x492539
cmp dword [0x55cc18], 0
jne 0x492539
mov ecx, dword [0x55cc28]
push ecx
call dword [sym.imp.GDI32.dll_EndPage]
mov edx, dword [0x55cc28]
push edx
call dword [sym.imp.GDI32.dll_EndDoc]
push 1
mov eax, dword [0x18a0254]
push eax
call dword [sym.imp.USER32.dll_EnableWindow]
mov ecx, dword [0x55cc24]
push ecx
call dword [sym.imp.USER32.dll_DestroyWindow]
mov edx, dword [0x55cc28]
push edx
call dword [sym.imp.GDI32.dll_DeleteDC]
mov dword [ebp + 8], 0
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.004b6253
mov esp, ebp
pop ebp
ret