Function at 0x56ddd0
Capabilities:
Get geographical location

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x5abcc0
mov eax, dword fs:[0]
push eax
sub esp, 0x2e8
mov eax, dword [0x5f300c]
xor eax, ebp
mov dword [ebp - 0x10], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov ebx, ecx
mov dword [ebp - 0x23c], 0
call fcn.00530a00
mov ecx, ebx
mov dword [ebp - 0x2aa], 0
mov dword [ebp - 0x2a6], 0
mov dword [ebp - 0x2a2], 0
mov dword [ebp - 0x29e], 0
mov dword [ebp - 0x29a], 0
mov dword [ebp - 0x296], 0
mov dword [ebp - 0x292], 0
mov dword [ebp - 0x2d0], 0x42
call fcn.00563920
mov dword [ebp - 0x2cc], eax
mov ecx, 1
mov eax, dword [0x602f64]
mov dword [ebp - 0x2ae], eax
mov eax, dword [ebx + 0x12e4]
mov dword [ebp - 0x2c8], eax
mov eax, dword [ebx + 0x12e8]
mov word [ebp - 0x2b0], cx
lea ecx, [ebp - 0x244]
mov dword [ebp - 0x2c4], eax
lea eax, [ebx + 0x7c4]
push ecx
mov ecx, eax
mov dword [ebp - 0x2bc], 0x40100
mov dword [ebp - 0x2b8], 0x10001
mov dword [ebp - 0x2b4], 0xffff0001
mov dword [ebp - 0x2c0], 0
mov dword [ebp - 0x278], eax
call fcn.00529f70
mov eax, dword [ebp - 0x240]
cmp dword [ebp - 0x244], eax
mov eax, dword [ebp - 0x2bc]
jne 0x56def6
or eax, 4
jmp 0x56def9
or eax, 1
cmp byte [ebp + 8], 0
mov dword [ebp - 0x2bc], eax
jne 0x56df10
or eax, 0x400
mov dword [ebp - 0x2bc], eax
lea eax, [ebp - 0x2d0]
push eax
call dword [sym.imp.COMDLG32.dll_PrintDlgW]
test eax, eax
jne 0x56df2d
mov ecx, ebx
call fcn.0056cd10
jmp 0x56ecc6
mov eax, dword [ebp - 0x2c8]
mov edi, dword [ebp - 0x2c0]
mov esi, dword [sym.imp.GDI32.dll_GetDeviceCaps]
push 0x58
mov dword [ebx + 0x12e4], eax
mov eax, dword [ebp - 0x2c4]
push edi
mov dword [ebx + 0x12e8], eax
mov dword [ebp - 0x22c], edi
mov dword [ebp - 0x24c], 0
call esi
push 0x5a
push edi
mov dword [ebp - 0x228], eax
call esi
push 0x6e
push edi
mov dword [ebp - 0x220], eax
call esi
push 0x6f
push edi
mov dword [ebp - 0x274], eax
call esi
push 0x70
push edi
mov dword [ebp - 0x270], eax
call esi
push 0x71
push edi
mov dword [ebp - 0x258], eax
call esi
push 8
push edi
mov dword [ebp - 0x254], eax
call esi
mov ecx, dword [ebp - 0x274]
sub ecx, dword [ebp - 0x258]
push 0xa
sub ecx, eax
push edi
mov dword [ebp - 0x250], ecx
call esi
mov ecx, dword [ebp - 0x270]
mov edx, dword [ebp - 0x254]
sub ecx, edx
mov esi, dword [sym.imp.KERNEL32.dll_MulDiv]
sub ecx, eax
cmp dword [ebx + 0x12d4], 0
mov dword [ebp - 0x24c], ecx
jne 0x56e024
cmp dword [ebx + 0x12dc], 0
jne 0x56e024
cmp dword [ebx + 0x12d8], 0
jne 0x56e024
cmp dword [ebx + 0x12e0], 0
jne 0x56e024
mov eax, dword [ebp - 0x258]
mov dword [ebp - 0x268], eax
mov eax, dword [ebp - 0x250]
mov dword [ebp - 0x264], edx
mov dword [ebp - 0x260], eax
jmp 0x56e14e
push 3
lea eax, [ebp - 0x18]
push eax
push 0xd
push 0x400
call dword [sym.imp.KERNEL32.dll_GetLocaleInfoW]
cmp word [ebp - 0x18], 0x30
jne 0x56e08a
push 0x9ec
push dword [ebp - 0x228]
push dword [ebx + 0x12d4]
call esi
push 0x9ec
push dword [ebp - 0x220]
mov dword [ebp - 0x230], eax
push dword [ebx + 0x12d8]
call esi
push 0x9ec
push dword [ebp - 0x228]
mov dword [ebp - 0x238], eax
push dword [ebx + 0x12dc]
call esi
push 0x9ec
jmp 0x56e0d4
push 0x3e8
push dword [ebp - 0x228]
push dword [ebx + 0x12d4]
call esi
push 0x3e8
push dword [ebp - 0x220]
mov dword [ebp - 0x230], eax
push dword [ebx + 0x12d8]
call esi
push 0x3e8
push dword [ebp - 0x228]
mov dword [ebp - 0x238], eax
push dword [ebx + 0x12dc]
call esi
push 0x3e8
push dword [ebp - 0x220]
mov dword [ebp - 0x234], eax
push dword [ebx + 0x12e0]
call esi
mov edx, dword [ebp - 0x258]
mov ecx, eax
mov eax, dword [ebp - 0x230]
mov dword [ebp - 0x268], edx
cmp edx, eax
jg 0x56e106
mov dword [ebp - 0x268], eax
mov edx, dword [ebp - 0x254]
mov eax, dword [ebp - 0x238]
mov dword [ebp - 0x264], edx
cmp edx, eax
jg 0x56e122
mov dword [ebp - 0x264], eax
mov edx, dword [ebp - 0x250]
mov eax, dword [ebp - 0x234]
mov dword [ebp - 0x260], edx
cmp edx, eax
jg 0x56e13e
mov dword [ebp - 0x260], eax
mov eax, dword [ebp - 0x24c]
mov dword [ebp - 0x25c], eax
cmp eax, ecx
jg 0x56e154
mov dword [ebp - 0x25c], ecx
mov esi, dword [sym.imp.GDI32.dll_DPtoLP]
lea eax, [ebp - 0x268]
push 2
push eax
push edi
call esi
push 2
lea eax, [ebp - 0x258]
push eax
push edi
call esi
push 1
lea eax, [ebp - 0x274]
push eax
push edi
call esi
push 0x5d7a08
lea eax, [ebp - 0xd0]
push eax
lea ecx, [ebx + 0xb0c]
call fcn.00527430
push 0x5d7b04
lea eax, [ebp - 0xe8]
mov dword [ebp - 4], 0
push eax
lea ecx, [ebx + 0xb0c]
call fcn.00527430
push 0x3c
lea eax, [ebp - 0x124]
mov byte [ebp - 4], 1
push 0
push eax
call sub.VCRUNTIME140.dll_memset
add esp, 0xc
lea eax, [ebp - 0x80]
lea ecx, [ebx + 0xb0c]
push str.print.header.style
push eax
call fcn.00527430
mov byte [ebp - 4], 2
lea ecx, [ebp - 0x80]
cmp dword [ebp - 0x6c], 0x10
jb 0x56e1ee
mov ecx, dword [ebp - 0x80]
sub esp, 8
lea esi, [ecx + 1]
mov edx, esp
mov dword [edx], ecx
mov al, byte [ecx]
inc ecx
test al, al
jne 0x56e1f8
sub ecx, esi
mov dword [edx + 4], ecx
lea ecx, [ebp - 0x21c]
call fcn.0055dca0
mov byte [ebp - 4], 3
test byte [ebp - 0x1bc], 2
mov eax, dword [ebp - 0x200]
jne 0x56e227
mov eax, 9
mov esi, dword [sym.imp.KERNEL32.dll_MulDiv]
push 0x48
push dword [ebp - 0x220]
push eax
call esi
test byte [ebp - 0x1bc], 1
mov edx, eax
je 0x56e25a
cmp dword [ebp - 0x208], 0x10
lea ecx, [ebp - 0x21c]
jb 0x56e25f
mov ecx, dword [ebp - 0x21c]
jmp 0x56e25f
mov ecx, str.Arial
movzx eax, byte [ebp - 0x1c6]
push ecx
push 0
push 0
push 0
push 0
push 0
push 0
push eax
movzx eax, byte [ebp - 0x1c8]
push eax
push dword [ebp - 0x1cc]
push 0
push 0
push 0
push edx
call dword [sym.imp.GDI32.dll_CreateFontA]
push eax
push edi
mov dword [ebp - 0x238], eax
call dword [sym.imp.GDI32.dll_SelectObject]
lea eax, [ebp - 0x124]
push eax
push edi
call dword [sym.imp.GDI32.dll_GetTextMetricsW]
mov eax, dword [ebp - 0x114]
lea ecx, [ebx + 0xb0c]
add eax, dword [ebp - 0x124]
mov dword [ebp - 0x248], eax
lea eax, [ebp - 0x98]
push str.print.footer.style
push eax
call fcn.00527430
mov byte [ebp - 4], 4
lea ecx, [ebp - 0x98]
cmp dword [ebp - 0x84], 0x10
jb 0x56e2ed
mov ecx, dword [ebp - 0x98]
sub esp, 8
lea eax, [ecx + 1]
mov edx, esp
mov dword [ebp - 0x230], eax
mov dword [edx], ecx
lea ecx, [ecx]
mov al, byte [ecx]
inc ecx
test al, al
jne 0x56e300
sub ecx, dword [ebp - 0x230]
mov dword [edx + 4], ecx
lea ecx, [ebp - 0x1b8]
call fcn.0055dca0
mov byte [ebp - 4], 5
test byte [ebp - 0x158], 2
mov eax, dword [ebp - 0x19c]
jne 0x56e333
mov eax, 9
push 0x48
push dword [ebp - 0x220]
push eax
call esi
test byte [ebp - 0x158], 1
mov edx, eax
je 0x56e360
cmp dword [ebp - 0x1a4], 0x10
lea ecx, [ebp - 0x1b8]
jb 0x56e365
mov ecx, dword [ebp - 0x1b8]
jmp 0x56e365
mov ecx, 0x5d7ac0
movzx eax, byte [ebp - 0x162]
push ecx
push 0
push 0
push 0
push 0
push 0
push 0
push eax
movzx eax, byte [ebp - 0x164]
push eax
push dword [ebp - 0x168]
push 0
push 0
push 0
push edx
call dword [sym.imp.GDI32.dll_CreateFontA]
push eax
push edi
mov dword [ebp - 0x230], eax
call dword [sym.imp.GDI32.dll_SelectObject]
lea eax, [ebp - 0x124]
push eax
push edi
call dword [sym.imp.GDI32.dll_GetTextMetricsW]
mov eax, dword [ebp - 0x114]
add eax, dword [ebp - 0x124]
cmp dword [ebx + 0x250], 8
mov dword [ebp - 0x26c], eax
lea eax, [ebx + 0x23c]
mov dword [ebp - 0x2f4], 0x14
jb 0x56e3de
mov eax, dword [eax]
mov dword [ebp - 0x2f0], eax
lea eax, [ebp - 0x2f4]
push eax
push edi
mov dword [ebp - 0x2ec], 0
mov dword [ebp - 0x2e8], 0
mov dword [ebp - 0x2e4], 0
call dword [sym.imp.GDI32.dll_StartDocW]
test eax, eax
jns 0x56e479
push edi
call dword [sym.imp.GDI32.dll_DeleteDC]
mov eax, dword [ebp - 0x238]
mov esi, dword [sym.imp.GDI32.dll_DeleteObject]
test eax, eax
je 0x56e42e
push eax
call esi
mov eax, dword [ebp - 0x230]
test eax, eax
je 0x56e43b
push eax
call esi
push 0
push 0
push 0
push str.Can_not_start_printer_document.
lea eax, [ebp - 0x68]
mov ecx, ebx
push eax
call fcn.0055a050
push 0
lea eax, [ebp - 0x68]
mov byte [ebp - 4], 6
mov edx, dword [ebx]
mov ecx, ebx
push eax
lea eax, [ebx + 0x7ac]
push eax
call dword [edx + 0xbc]
lea ecx, [ebp - 0x68]
call fcn.0040ab30
jmp 0x56eb99
lea ecx, [ebx + 0x7c4]
call fcn.0052a240
test byte [ebp - 0x2bc], 1
mov edx, eax
mov dword [ebp - 0x220], eax
mov dword [ebp - 0x228], 0
je 0x56e4e3
mov ecx, dword [ebp - 0x244]
mov esi, dword [ebp - 0x240]
cmp ecx, esi
jle 0x56e4bb
mov eax, esi
mov dword [ebp - 0x220], ecx
mov esi, ecx
jmp 0x56e4c3
mov eax, ecx
mov dword [ebp - 0x220], esi
xor ecx, ecx
test eax, eax
sets cl
dec ecx
and ecx, eax
mov dword [ebp - 0x228], ecx
cmp esi, edx
jle 0x56e4e3
mov dword [ebp - 0x220], edx
mov dword [ebp - 0x228], ecx
mov edx, dword [ebp - 0x258]
mov eax, dword [ebp - 0x268]
mov esi, dword [ebp - 0x254]
sub eax, edx
mov ecx, dword [ebp - 0x274]
mov dword [ebp - 0x14c], eax
mov eax, dword [ebp - 0x264]
sub eax, esi
mov dword [ebp - 0x154], edi
mov dword [ebp - 0x234], eax
mov dword [ebp - 0x148], eax
mov eax, ecx
sub eax, dword [ebp - 0x260]
sub ecx, dword [ebp - 0x250]
sub eax, edx
mov dword [ebp - 0x144], eax
sub ecx, edx
mov eax, dword [ebp - 0x270]
dec ecx
mov dword [ebp - 0x150], edi
mov edi, eax
sub eax, dword [ebp - 0x24c]
sub edi, dword [ebp - 0x25c]
sub eax, esi
sub edi, esi
mov dword [ebp - 0x13c], 0
dec eax
mov dword [ebp - 0x240], edi
cmp dword [ebp - 0xc0], 0
mov dword [ebp - 0x140], edi
mov edi, dword [ebp - 0x22c]
mov dword [ebp - 0x138], 0
mov dword [ebp - 0x134], ecx
mov dword [ebp - 0x130], eax
je 0x56e5ad
mov eax, dword [ebp - 0x248]
cdq
sub eax, edx
sar eax, 1
add eax, dword [ebp - 0x234]
add eax, dword [ebp - 0x248]
mov dword [ebp - 0x148], eax
cmp dword [ebp - 0xd8], 0
je 0x56e5d5
mov eax, dword [ebp - 0x26c]
mov ecx, dword [ebp - 0x240]
cdq
sub eax, edx
sar eax, 1
sub ecx, eax
sub ecx, dword [ebp - 0x26c]
mov dword [ebp - 0x140], ecx
mov esi, 1
mov dword [ebp - method.PropSetFile.virtual_0], vtable.PropSetFile.0
mov dword [ebp - 0x234], esi
mov byte [ebp - 0x288], 0
mov dword [ebp - 0x284], 0
mov dword [ebp - 0x280], 0
call fcn.00474320
mov dword [ebp - 0x284], eax
mov byte [ebp - 4], 7
lea eax, [ebx + 0xb0c]
mov dword [ebp - 0x27c], eax
lea ecx, [ebp - 0x28c]
mov eax, dword [ebx]
push ecx
mov ecx, ebx
call dword [eax + 0x120]
mov eax, dword [ebp - 0x220]
mov ebx, dword [sym.imp.GDI32.dll_DeleteObject]
cmp dword [ebp - 0x228], eax
jge 0x56eb52
mov dx, word [ebp - 0x2b6]
mov cl, byte [ebp - 0x2bc]
mov dword [ebp - 0x18], esi
test cl, 2
je 0x56e674
movzx eax, word [ebp - 0x2b8]
cmp esi, eax
jl 0x56e670
movzx eax, dx
cmp esi, eax
jle 0x56e674
xor bl, bl
jmp 0x56e676
mov bl, 1
push esi
lea eax, [ebp - 0x38]
mov byte [ebp - 0x221], bl
push 0x5d7ab0
push eax
call fcn.004025c0
lea eax, [ebp - 0x38]
add esp, 4
mov edx, esp
mov ecx, eax
mov dword [edx], eax
lea eax, [ecx + 1]
mov dword [ebp - 0x240], eax
mov al, byte [ecx]
inc ecx
test al, al
jne 0x56e6a0
sub ecx, dword [ebp - 0x240]
sub esp, 8
mov eax, esp
mov dword [edx + 4], ecx
lea ecx, [ebp - 0x28c]
mov dword [eax], str.CurrentPage
mov dword [eax + 4], 0xb
call fcn.005270d0
test bl, bl
je 0x56e8cd
push edi
call dword [sym.imp.GDI32.dll_StartPage]
cmp dword [ebp - 0xc0], 0
je 0x56e8cd
push str.print.header.format
lea eax, [ebp - 0x68]
mov byte [ebp - 4], 8
push eax
lea ecx, [ebp - 0x28c]
call fcn.00527430
mov ebx, dword [ebp - 0x23c]
lea edx, [ebp - 0x68]
mov esi, eax
mov dword [ebp - 0x2e0], str.print.header.format
lea eax, [ebp - 0x2e0]
mov dword [ebp - 0x2dc], 0
push eax
or ebx, 1
lea ecx, [ebp - 0x28c]
push 0xc8
mov dword [ebp - 0x23c], ebx
call fcn.00527cb0
add esp, 8
lea ecx, [ebp - 0x50]
mov edx, esi
call fcn.00560530
and ebx, 0xfffffffe
mov byte [ebp - 4], 7
mov edx, dword [ebp - 0x54]
mov dword [ebp - 0x23c], ebx
cmp edx, 0x10
jb 0x56e78e
mov ecx, dword [ebp - 0x68]
inc edx
mov eax, ecx
cmp edx, 0x1000
jb 0x56e784
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x56ebd0
push edx
push ecx
call fcn.0059e222
add esp, 8
lea ecx, [ebp - 0x1fc]
call fcn.0055e460
push eax
push edi
call dword [sym.imp.GDI32.dll_SetTextColor]
lea ecx, [ebp - 0x1e4]
call fcn.0055e460
push eax
push edi
call dword [sym.imp.GDI32.dll_SetBkColor]
push dword [ebp - 0x238]
push edi
call dword [sym.imp.GDI32.dll_SelectObject]
push 8
push edi
call dword [sym.imp.GDI32.dll_SetTextAlign]
mov ecx, dword [ebp - 0x148]
mov ebx, eax
mov eax, dword [ebp - 0x248]
mov esi, dword [ebp - 0x14c]
cdq
sub eax, edx
mov dword [ebp - 0xb8], esi
sar eax, 1
sub ecx, eax
mov eax, ecx
mov dword [ebp - 0xac], ecx
sub eax, dword [ebp - 0x248]
cmp dword [ebp - 0x3c], 8
mov dword [ebp - 0xb4], eax
mov eax, dword [ebp - 0x144]
mov dword [ebp - 0xb0], eax
lea eax, [ebp - 0x50]
jb 0x56e817
mov eax, dword [ebp - 0x50]
push 0
push dword [ebp - 0x40]
push eax
lea eax, [ebp - 0xb8]
push eax
push 2
push ecx
lea eax, [esi + 5]
push eax
push edi
call dword [sym.imp.GDI32.dll_ExtTextOutW]
push ebx
push edi
call dword [sym.imp.GDI32.dll_SetTextAlign]
lea ecx, [ebp - 0x1fc]
call fcn.0055e460
push eax
push 1
push 0
call dword [sym.imp.GDI32.dll_CreatePen]
mov ebx, eax
push ebx
push edi
call dword [sym.imp.GDI32.dll_SelectObject]
mov ecx, dword [ebp - 0x148]
mov edi, eax
mov eax, dword [ebp - 0x248]
cdq
and edx, 3
push 0
lea esi, [edx + eax]
sar esi, 2
sub ecx, esi
push ecx
push dword [ebp - 0x14c]
push dword [ebp - 0x22c]
call dword [sym.imp.GDI32.dll_MoveToEx]
mov eax, dword [ebp - 0x148]
sub eax, esi
push eax
push dword [ebp - 0x144]
push dword [ebp - 0x22c]
call dword [sym.imp.GDI32.dll_LineTo]
push edi
mov edi, dword [ebp - 0x22c]
push edi
call dword [sym.imp.GDI32.dll_SelectObject]
push ebx
call dword [sym.imp.GDI32.dll_DeleteObject]
lea ecx, [ebp - 0x50]
call fcn.0040ab30
mov bl, byte [ebp - 0x221]
mov esi, dword [ebp - 0x234]
mov eax, dword [ebp - 0x228]
mov ecx, dword [ebp - 0x278]
mov dword [ebp - 0x12c], eax
mov eax, dword [ebp - 0x220]
mov dword [ebp - 0x128], eax
lea eax, [ebp - 0x154]
push eax
movzx eax, bl
push eax
push 0x867
call fcn.00529e10
mov dword [ebp - 0x228], eax
test bl, bl
je 0x56eb19
cmp dword [ebp - 0xd8], 0
je 0x56eb0c
push str.print.footer.format
lea eax, [ebp - 0x68]
mov byte [ebp - 4], 9
push eax
lea ecx, [ebp - 0x28c]
call fcn.00527430
mov ebx, dword [ebp - 0x23c]
lea edx, [ebp - 0x68]
mov esi, eax
mov dword [ebp - 0x2d8], str.print.footer.format
lea eax, [ebp - 0x2d8]
mov dword [ebp - 0x2d4], 0
push eax
or ebx, 2
lea ecx, [ebp - 0x28c]
push 0xc8
mov dword [ebp - 0x23c], ebx
call fcn.00527cb0
add esp, 8
lea ecx, [ebp - 0x50]
mov edx, esi
call fcn.00560530
and ebx, 0xfffffffd
mov byte [ebp - 4], 7
mov edx, dword [ebp - 0x54]
mov dword [ebp - 0x23c], ebx
cmp edx, 0x10
jb 0x56e9c0
mov ecx, dword [ebp - 0x68]
inc edx
mov eax, ecx
cmp edx, 0x1000
jb 0x56e9b6
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x56ebd0
push edx
push ecx
call fcn.0059e222
add esp, 8
lea ecx, [ebp - 0x198]
call fcn.0055e460
push eax
push edi
call dword [sym.imp.GDI32.dll_SetTextColor]
lea ecx, [ebp - 0x180]
call fcn.0055e460
push eax
push edi
call dword [sym.imp.GDI32.dll_SetBkColor]
push dword [ebp - 0x230]
push edi
call dword [sym.imp.GDI32.dll_SelectObject]
push 0
push edi
call dword [sym.imp.GDI32.dll_SetTextAlign]
mov esi, dword [ebp - 0x14c]
mov ebx, eax
mov eax, dword [ebp - 0x26c]
mov dword [ebp - 0xa8], esi
mov edx, eax
test edx, edx
jns 0x56ea19
add edx, 1
sar edx, 1
add edx, dword [ebp - 0x140]
cmp dword [ebp - 0x3c], 8
mov ecx, dword [ebp - 0x144]
mov dword [ebp - 0xa0], ecx
lea ecx, [edx + eax]
mov dword [ebp - 0xa4], edx
mov dword [ebp - 0x9c], ecx
lea eax, [ebp - 0x50]
jb 0x56ea48
mov eax, dword [ebp - 0x50]
push 0
push dword [ebp - 0x40]
push eax
lea eax, [ebp - 0xa8]
push eax
push 2
push edx
lea eax, [esi + 5]
push eax
push edi
call dword [sym.imp.GDI32.dll_ExtTextOutW]
push ebx
push edi
call dword [sym.imp.GDI32.dll_SetTextAlign]
lea ecx, [ebp - 0x198]
call fcn.0055e460
push eax
push 1
push 0
call dword [sym.imp.GDI32.dll_CreatePen]
mov ebx, eax
push ebx
push edi
call dword [sym.imp.GDI32.dll_SelectObject]
lea ecx, [ebp - 0x198]
mov edi, eax
call fcn.0055e460
push eax
push dword [ebp - 0x22c]
call dword [sym.imp.GDI32.dll_SetBkColor]
mov esi, dword [ebp - 0x26c]
mov esi, esi
test esi, esi
jns 0x56eab4
add esi, 3
sar esi, 2
mov ecx, dword [ebp - 0x140]
push 0
add ecx, esi
push ecx
push dword [ebp - 0x14c]
push dword [ebp - 0x22c]
call dword [sym.imp.GDI32.dll_MoveToEx]
mov eax, dword [ebp - 0x140]
add eax, esi
push eax
push dword [ebp - 0x144]
push dword [ebp - 0x22c]
call dword [sym.imp.GDI32.dll_LineTo]
push edi
mov edi, dword [ebp - 0x22c]
push edi
call dword [sym.imp.GDI32.dll_SelectObject]
push ebx
call dword [sym.imp.GDI32.dll_DeleteObject]
lea ecx, [ebp - 0x50]
call fcn.0040ab30
push edi
call dword [sym.imp.GDI32.dll_EndPage]
mov esi, dword [ebp - 0x234]
mov cl, byte [ebp - 0x2bc]
inc esi
mov dx, word [ebp - 0x2b6]
mov dword [ebp - 0x234], esi
test cl, 2
je 0x56eb3a
movzx eax, dx
cmp dword [ebp - 0x18], eax
jge 0x56eb4c
mov eax, dword [ebp - 0x220]
cmp dword [ebp - 0x228], eax
jl 0x56e656
mov ebx, dword [sym.imp.GDI32.dll_DeleteObject]
mov ecx, dword [ebp - 0x278]
push 0
push 0
push 0x867
call fcn.00529e10
push edi
call dword [sym.imp.GDI32.dll_EndDoc]
push edi
call dword [sym.imp.GDI32.dll_DeleteDC]
mov eax, dword [ebp - 0x238]
test eax, eax
je 0x56eb81
push eax
call ebx
mov eax, dword [ebp - 0x230]
test eax, eax
je 0x56eb8e
push eax
call ebx
lea ecx, [ebp - 0x28c]
call fcn.00526f80
lea ecx, [ebp - 0x1b8]
call fcn.00512e80
mov edx, dword [ebp - 0x84]
cmp edx, 0x10
jb 0x56ebe0
mov ecx, dword [ebp - 0x98]
inc edx
mov eax, ecx
cmp edx, 0x1000
jb 0x56ebd6
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
jbe 0x56ebd6
call dword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
push edx
push ecx
call fcn.0059e222
add esp, 8
lea ecx, [ebp - 0x21c]
mov dword [ebp - 0x88], 0
mov dword [ebp - 0x84], 0xf
mov byte [ebp - 0x98], 0
call fcn.00512e80
mov edx, dword [ebp - 0x6c]
cmp edx, 0x10
jb 0x56ec3c
mov ecx, dword [ebp - 0x80]
inc edx
mov eax, ecx
cmp edx, 0x1000
jb 0x56ec32
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
jbe 0x56ec32
call dword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
push edx
push ecx
call fcn.0059e222
add esp, 8
mov edx, dword [ebp - 0xd4]
mov dword [ebp - 0x70], 0
mov dword [ebp - 0x6c], 0xf
mov byte [ebp - 0x80], 0
cmp edx, 0x10
jb 0x56ec8a
mov ecx, dword [ebp - 0xe8]
inc edx
mov eax, ecx
cmp edx, 0x1000
jb 0x56ec80
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
jbe 0x56ec80
call dword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
push edx
push ecx
call fcn.0059e222
add esp, 8
mov edx, dword [ebp - 0xbc]
cmp edx, 0x10
jb 0x56ecc6
mov ecx, dword [ebp - 0xd0]
inc edx
mov eax, ecx
cmp edx, 0x1000
jb 0x56ecbc
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
jbe 0x56ecbc
call dword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
push edx
push ecx
call fcn.0059e222
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 - 0x10]
xor ecx, ebp
call fcn.0059df64
mov esp, ebp
pop ebp
ret 4