Function at 0x511f80
Capabilities:
Capture screenshot
Resolve function by parsing pe exports

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0x254
push ebx
push esi
push edi
mov edi, ecx
mov ecx, dword [0x5f3214]
xor eax, eax
cmp ecx, eax
mov esi, edx
mov dword [esp + 0x10], edi
jne 0x513b53
mov ecx, dword [edi + 0xdb4]
mov edx, dword [edi + 0xdb8]
mov ebx, dword [sym.imp.USER32.dll_SetRect]
mov dword [esp + 0xe8], ecx
mov ecx, dword [edi + 0xdbc]
mov dword [esp + 0xe4], ecx
cmp dword [edi + 0xdb0], eax
mov dword [esp + 0xe0], edx
mov edx, dword [edi + 0xdc0]
mov dword [0x5f3214], 1
mov dword [esp + 0x40], eax
mov dword [esp + 0x6c], eax
mov dword [esp + 0xc0], eax
mov dword [esp + 0xc4], eax
mov dword [esp + 0xc8], eax
mov dword [esp + 0xec], edx
je 0x512027
lea eax, [edi + 0xdc4]
push eax
lea ecx, [esp + 0x12c]
push ecx
call dword [sym.imp.USER32.dll_CopyRect]
jmp 0x512045
push 0xffffd8f1
push 0xffffd8f1
push 0x270f
push 0x270f
lea edx, [esp + 0x138]
push edx
call ebx
push 0xffffd8f1
push 0xffffd8f1
push 0x270f
push 0x270f
lea eax, [edi + 0xdc4]
push eax
call ebx
push 0xffffd8f1
push 0xffffd8f1
push 0x270f
push 0x270f
lea ecx, [esp + 0xdc]
push ecx
call ebx
mov edx, dword [edi]
push edx
call dword [sym.imp.USER32.dll_IsIconic]
test eax, eax
jne case.0x5120e9.4
mov eax, dword [esp + 0x10]
mov ecx, dword [eax]
push ecx
call dword [sym.imp.USER32.dll_IsWindowVisible]
test eax, eax
je case.0x5120e9.4
mov edi, dword [esp + 0x10]
mov ecx, dword [edi]
call fcn.005613e0
test eax, eax
je 0x5120d7
mov edx, dword [0x5f92f0]
push edx
call dword [sym.imp.USER32.dll_GetTopWindow]
mov ebx, eax
push ebx
call dword [sym.imp.USER32.dll_IsZoomed]
test eax, eax
je 0x5120d7
cmp dword [edi], ebx
jne case.0x5120e9.4
mov eax, dword [edi + 0x71c]
add eax, 0xfffffffd
cmp eax, 6
ja case.default.0x5120e9
jmp dword [eax*4 + 0x513b5c]
mov eax, dword [esp + 0x10]
cmp dword [eax + 0x720], 1
mov ecx, dword [eax]
jne 0x512125
call fcn.005261e0
test eax, eax
je case.0x5120e9.4
push 0
push 1
push 1
push 1
mov edx, 1
mov ecx, eax
call fcn.0054bd60
jmp case.0x5120e9.4
call fcn.00491c00
test eax, eax
je case.0x5120e9.4
push 0
push 1
push 1
push 1
mov edx, 1
mov ecx, eax
call fcn.0054c570
jmp case.0x5120e9.4
mov eax, dword [esp + 0x10]
cmp dword [eax + 0x720], 1
je case.0x5120e9.4
mov edi, eax
mov eax, dword [edi + 0x758]
test eax, eax
je case.default.0x5120e9
mov ecx, edi
call fcn.00477e90
jmp case.0x5120e9.4
mov edi, dword [esp + 0x10]
mov edi, dword [edi + 0x87c]
test edi, edi
je case.0x5120e9.4
test esi, esi
jne 0x5121a6
push edi
call dword [sym.imp.USER32.dll_GetDC]
mov esi, eax
test esi, esi
je case.0x5120e9.4
mov dword [esp + 0xc4], 1
mov ebx, dword [esp + 0x10]
mov eax, dword [ebx + 0x960]
test eax, eax
jne 0x5121d0
mov ecx, dword [ebx]
cmp ecx, dword [0x5c9f24]
je 0x5121cc
mov ecx, dword [ebx + 0x988]
test ecx, ecx
je 0x5122fd
test eax, eax
je 0x5121d9
mov ecx, dword [ebx]
xor edx, edx
call fcn.0041c1d0
mov edi, dword [sym.imp.GDI32.dll_CreateCompatibleDC]
push esi
mov dword [esp + 0x70], esi
call edi
mov esi, eax
test esi, esi
je 0x5122f1
mov edx, dword [esp + 0x6c]
push edx
call edi
mov edi, eax
test edi, edi
je 0x5122ea
mov eax, dword [ebx + 0x984]
test eax, eax
jne 0x512224
mov eax, dword [ebp + 0x14]
mov ecx, dword [ebp + 0x10]
mov edx, dword [esp + 0x6c]
push eax
push ecx
push edx
call dword [sym.imp.GDI32.dll_CreateCompatibleBitmap]
mov dword [ebx + 0x984], eax
mov eax, dword [ebx + 0x984]
test eax, eax
je 0x5122db
push eax
push esi
call dword [sym.imp.GDI32.dll_SelectObject]
mov dword [esp + 0xc0], eax
mov eax, dword [ebx + 0x960]
test eax, eax
je 0x51228a
push eax
push edi
call dword [sym.imp.GDI32.dll_SelectObject]
mov ecx, dword [ebp + 0x10]
push 0xcc0020
push 0
push 0
push edi
mov dword [esp + 0x64], eax
mov eax, dword [ebp + 0x14]
push eax
push ecx
push 0
push 0
push esi
call dword [sym.imp.GDI32.dll_BitBlt]
mov edx, dword [esp + 0x54]
push edx
push edi
call dword [sym.imp.GDI32.dll_SelectObject]
mov dword [esp + 0x40], 1
jmp 0x5122db
mov ecx, dword [0x5c9d38]
call fcn.00435dc0
mov eax, dword [eax*4 + 0x5c8f18]
push eax
push esi
call dword [sym.imp.GDI32.dll_SetBkColor]
mov ecx, dword [ebp + 0x10]
mov edx, dword [ebp + 0x14]
xor eax, eax
push eax
push eax
push 0x5a4bec
mov dword [esp + 0x38], ecx
lea ecx, [esp + 0x30]
push ecx
push 6
push eax
push eax
push esi
mov dword [esp + 0x44], eax
mov dword [esp + 0x48], eax
mov dword [esp + 0x50], edx
call dword [sym.imp.GDI32.dll_ExtTextOutA]
mov dword [esp + 0x40], 2
push edi
call dword [sym.imp.GDI32.dll_DeleteDC]
mov eax, dword [esp + 0x40]
test eax, eax
jne 0x5122fd
push esi
call dword [sym.imp.GDI32.dll_DeleteDC]
mov esi, dword [esp + 0x6c]
mov dword [esp + 0x6c], 0
mov eax, dword [ebx + 0x6cc]
test eax, eax
je 0x512595
mov eax, dword [ebx + 0x710]
sub eax, dword [ebx + 0x714]
mov dword [esp + 0x70], eax
jmp 0x512320
mov ecx, dword [ebx + 0x6cc]
mov edi, dword [ecx + 0x44]
test edi, edi
mov edx, dword [ebx + 0xa04]
mov dword [esp + 0x3c], edx
mov dword [esp + 0x14], edi
je 0x512595
nop
test eax, eax
jle 0x512359
cmp edi, ecx
je 0x512359
mov edi, dword [edi + 0x44]
dec eax
test edi, edi
mov dword [esp + 0x14], edi
jne 0x512340
jmp 0x512595
test edi, edi
je 0x512595
mov eax, dword [0x5c9f24]
cmp dword [ebx], eax
je 0x512435
mov eax, dword [ebx + 0x71c]
test eax, eax
je 0x51238b
cmp eax, 1
je 0x51238b
cmp eax, 2
je 0x51238b
cmp eax, 9
jne 0x512435
mov edx, dword [ebp + 0x14]
mov ecx, dword [esp + 0x3c]
mov eax, edx
sub eax, ecx
mov ecx, dword [edi + 0x14]
dec eax
cmp ecx, dword [ebp + 0x10]
mov dword [esp + 0x54], edi
jne 0x5123d1
mov ecx, dword [ebx + 0xa00]
cmp dword [edi + 0x18], ecx
jne 0x5123d1
cmp edi, dword [ebx + 0x6cc]
je 0x51242b
mov edi, dword [edi + 0x44]
test edi, edi
je 0x51242b
mov ecx, dword [esp + 0x3c]
sub eax, ecx
neg ecx
cmp eax, ecx
jl 0x51242b
mov ecx, dword [edi + 0x14]
cmp ecx, dword [ebp + 0x10]
je 0x5123a3
mov edx, dword [ebp + 0x10]
push edx
push edi
mov edx, ebx
mov ecx, esi
call fcn.005111c0
test eax, eax
je 0x512428
mov edi, dword [esp + 0x70]
test edi, edi
mov ecx, ebx
jne 0x5123f4
mov edx, 1
jmp 0x5123f6
xor edx, edx
call fcn.00563270
mov eax, dword [ebx + 0x714]
cmp eax, dword [ebx + 0x718]
jge 0x512417
mov ecx, dword [ebx + 0x710]
sub ecx, edi
mov dword [ebx + 0x714], ecx
mov eax, dword [ebx + 0x710]
sub eax, dword [ebx + 0x714]
jmp 0x512320
mov edx, dword [ebp + 0x14]
mov edi, dword [esp + 0x54]
mov dword [esp + 0x14], edi
jmp 0x512438
mov edx, dword [ebp + 0x14]
test edi, edi
je 0x512595
mov eax, dword [edi + 8]
mov ecx, dword [esp + 0x3c]
sub edx, ecx
mov dword [esp + 0x7c], eax
mov eax, dword [ebx + 0x6cc]
dec edx
cmp edi, eax
mov dword [esp + 0xc], edx
je 0x51254d
mov edx, dword [ebx + 0x76c]
mov dword [esp + 0x54], edx
lea ebx, [ebx]
mov eax, dword [esp + 0xc]
sub eax, ecx
cmp edx, 1
mov dword [esp + 0xc], eax
je 0x51248d
cmp edx, 2
jne 0x512491
cmp dword [0x5f1964], 1
jne 0x512491
sub dword [esp + 0xc], ecx
mov edi, dword [edi + 0x44]
test edi, edi
je 0x512591
mov eax, dword [edi + 8]
cmp eax, dword [esp + 0x7c]
je 0x51257f
cmp edx, 3
mov dword [esp + 0x7c], eax
je 0x5124bf
cmp edx, 2
jne 0x5124e5
cmp dword [0x5f1964], edx
jne 0x5124e5
mov ecx, dword [esp + 0x3c]
mov eax, 0x55555555
imul ecx
sub edx, ecx
sar edx, 1
mov eax, edx
shr eax, 0x1f
add edx, eax
mov eax, dword [esp + 0xc]
add eax, edx
mov edx, dword [esp + 0x54]
mov dword [esp + 0xc], eax
jmp 0x5124e9
mov ecx, dword [esp + 0x3c]
mov eax, ecx
neg eax
cmp dword [esp + 0xc], eax
jge 0x512583
mov eax, dword [esp + 0xc]
add eax, ecx
cmp edx, 1
mov dword [esp + 0x14], edi
mov dword [esp + 0xc], eax
je 0x512518
cmp edx, 2
jne 0x51251c
cmp dword [0x5f1964], 1
jne 0x51251c
add dword [esp + 0xc], ecx
cmp edx, 3
je 0x51252e
cmp edx, 2
jne 0x512546
cmp dword [0x5f1964], edx
jne 0x512546
mov eax, 0x55555556
imul ecx
mov eax, dword [esp + 0xc]
mov ecx, edx
shr ecx, 0x1f
add edx, ecx
add eax, edx
mov dword [esp + 0xc], eax
mov edi, dword [edi + 0x40]
mov dword [esp + 0x14], edi
test edi, edi
je 0x512595
mov edx, dword [ebx + 0x98c]
push edx
push esi
call dword [sym.imp.GDI32.dll_SelectObject]
mov dword [esp + 0x68], eax
mov eax, dword [ebx + 0xdd4]
test eax, eax
je 0x512604
xor eax, eax
mov dword [esp + 0xa8], eax
jmp 0x512632
mov ecx, dword [esp + 0x3c]
cmp edi, dword [ebx + 0x6cc]
jne 0x512470
jmp 0x512549
mov dword [esp + 0x14], edi
mov edx, dword [ebx + 0x98c]
push edx
push esi
call dword [sym.imp.GDI32.dll_SelectObject]
push 0
add ebx, 0xa04
push ebx
xor edx, edx
mov ecx, esi
mov edi, eax
call fcn.0048de20
push edi
push esi
call dword [sym.imp.GDI32.dll_SelectObject]
mov eax, dword [esp + 0x40]
test eax, eax
jne 0x513a8c
mov ecx, dword [0x5c9d38]
call fcn.00435dc0
mov eax, dword [eax*4 + 0x5c8f18]
push eax
push esi
call dword [sym.imp.GDI32.dll_SetBkColor]
push 0
push 0
push 0x5a4bec
lea ecx, [ebp + 8]
push ecx
push 6
push 0
push 0
push esi
call dword [sym.imp.GDI32.dll_ExtTextOutA]
jmp 0x513ac9
mov eax, dword [0x5c00ec]
test eax, eax
jne 0x512622
mov eax, dword [ebx + 0xa0c]
test eax, eax
mov dword [esp + 0xa8], 0
je 0x51262d
mov dword [esp + 0xa8], 1
mov eax, dword [0x5f6594]
test eax, eax
mov dword [esp + 0xa0], eax
mov dword [esp + 0x54], 0xffffffff
je 0x512656
mov edx, dword [ebx + 0x9fc]
mov ecx, esi
call fcn.0048fb50
mov dword [esp + 0x54], eax
mov ecx, dword [edi + 0x1c]
call fcn.00435dc0
mov ecx, dword [0x5c9d38]
mov dword [esp + 0x4c], eax
call fcn.00435dc0
mov dword [esp + 0x5c], eax
mov eax, dword [esp + 0x4c]
mov ecx, dword [eax*4 + 0x5c8f18]
push ecx
push esi
call dword [sym.imp.GDI32.dll_SetTextColor]
mov edx, dword [esp + 0x5c]
mov eax, dword [edx*4 + 0x5c8f18]
push eax
push esi
call dword [sym.imp.GDI32.dll_SetBkColor]
push 1
push esi
call dword [sym.imp.GDI32.dll_SetBkMode]
mov dword [esp + 0xdc], eax
cmp dword [esp + 0x40], 1
jne 0x5126bb
mov dword [esp + 0x64], 4
jmp 0x512738
mov eax, dword [esp + 0xc]
test eax, eax
mov dword [esp + 0x64], 6
jl 0x512701
mov ecx, dword [ebp + 0x10]
mov edx, dword [esp + 0xc]
xor eax, eax
push eax
push eax
mov dword [esp + 0x34], ecx
mov ecx, dword [esp + 0x44]
add edx, ecx
push 0x5a4bec
mov dword [esp + 0x3c], edx
lea edx, [esp + 0x30]
push edx
push 6
push eax
push eax
push esi
mov dword [esp + 0x44], eax
mov dword [esp + 0x48], eax
call dword [sym.imp.GDI32.dll_ExtTextOutA]
mov eax, dword [ebp + 0x14]
mov ecx, dword [ebp + 0x10]
push 0
push 0
push 0x5a4bec
lea edx, [esp + 0x30]
push edx
push 6
dec eax
push 0
mov dword [esp + 0x40], eax
push 0
inc eax
push esi
mov dword [esp + 0x44], 0
mov dword [esp + 0x4c], ecx
mov dword [esp + 0x50], eax
call dword [sym.imp.GDI32.dll_ExtTextOutA]
xor eax, eax
push eax
push eax
push eax
push eax
mov dword [esp + 0x94], eax
mov dword [esp + 0xa8], eax
mov dword [esp + 0x88], eax
mov dword [esp + 0x70], eax
mov dword [esp + 0xac], eax
mov dword [esp + 0x9c], eax
mov dword [esp + 0xc0], eax
lea eax, [esp + 0x180]
push eax
call dword [sym.imp.USER32.dll_SetRect]
mov ecx, dword [edi + 8]
xor eax, eax
mov dword [esp + 0x7c], ecx
mov dword [esp + 0x38], eax
mov dword [esp + 0xb4], eax
mov dword [esp + 0xb8], eax
jmp 0x5127a0
mov eax, dword [esp + 0xb4]
test eax, eax
je 0x51287f
mov eax, dword [esp + 0x84]
test eax, eax
mov dword [esp + 0xb4], 0
je 0x5127fc
mov edx, dword [esp + 0x68]
push edx
push esi
call dword [sym.imp.GDI32.dll_SelectObject]
mov eax, dword [esp + 0x84]
push eax
call dword [sym.imp.GDI32.dll_DeleteObject]
mov ecx, dword [ebx + 0x98c]
push ecx
push esi
mov dword [esp + 0x8c], 0
call dword [sym.imp.GDI32.dll_SelectObject]
mov dword [esp + 0x68], eax
mov ecx, dword [edi + 0x1c]
xor eax, eax
mov dword [esp + 0x98], eax
mov dword [esp + 0x78], eax
mov dword [esp + 0x60], eax
mov dword [esp + 0x9c], eax
mov dword [esp + 0x8c], eax
mov dword [esp + 0xb0], eax
call fcn.00435dc0
mov ecx, dword [0x5c9d38]
mov dword [esp + 0x4c], eax
call fcn.00435dc0
mov edx, dword [esp + 0x4c]
mov dword [esp + 0x5c], eax
mov eax, dword [edx*4 + 0x5c8f18]
push eax
push esi
call dword [sym.imp.GDI32.dll_SetTextColor]
mov ecx, dword [esp + 0x5c]
mov edx, dword [ecx*4 + 0x5c8f18]
push edx
push esi
call dword [sym.imp.GDI32.dll_SetBkColor]
mov ecx, dword [esp + 0x40]
xor eax, eax
cmp ecx, 1
setne al
mov dword [esp + 0x38], 0
lea eax, [eax + eax + 4]
mov dword [esp + 0x64], eax
lea ecx, [esp + 0x1f0]
xor eax, eax
push ecx
push esi
mov dword [esp + 0xc4], eax
mov dword [esp + 0x58], eax
mov dword [esp + 0x4c], eax
call dword [sym.imp.GDI32.dll_GetTextMetricsA]
mov eax, dword [esp + 0xc]
mov edx, dword [esp + 0x3c]
mov ecx, dword [ebp + 0x10]
mov dword [esp + 0x28], eax
add eax, edx
mov dword [esp + 0x30], eax
mov eax, dword [ebx + 0x76c]
cmp eax, 1
mov dword [esp + 0x24], 2
mov dword [esp + 0x2c], ecx
mov dword [esp + 0xa4], 0
je 0x512916
cmp eax, 2
mov edx, dword [0x5f1964]
jne 0x5128e6
cmp edx, 1
je 0x512916
cmp eax, 3
je 0x5128f4
cmp eax, 2
jne 0x512921
cmp edx, eax
jne 0x512921
mov eax, dword [edi + 0x40]
test eax, eax
je 0x512921
mov edx, dword [esp + 0x7c]
cmp dword [eax + 8], edx
je 0x512921
mov eax, 0x55555556
imul dword [esp + 0x3c]
mov eax, edx
shr eax, 0x1f
add edx, eax
jmp 0x51291a
mov edx, dword [esp + 0x3c]
mov dword [esp + 0xa4], edx
cmp dword [ebx + 0x6f8], edi
jne 0x512aa0
cmp dword [edi + 0x20], 2
jne 0x512aa0
mov eax, dword [esp + 0x40]
push eax
lea ecx, [esp + 0x28]
push ecx
mov edx, esi
mov ecx, ebx
call fcn.00422fc0
mov ebx, dword [esp + 0x14]
mov edi, dword [esp + 0xc]
mov edx, dword [esp + 0x10]
cmp dword [edx + 0x6f8], ebx
jne 0x51299f
mov eax, dword [0x5f92f4]
test eax, eax
je 0x51299f
mov eax, edx
mov ecx, dword [eax]
push ecx
call dword [sym.imp.USER32.dll_IsIconic]
test eax, eax
jne 0x51299f
mov edx, dword [esp + 0x10]
mov eax, dword [edx]
push eax
call dword [sym.imp.USER32.dll_IsWindowVisible]
test eax, eax
je 0x51299f
mov eax, dword [esp + 0x10]
mov ecx, dword [eax]
cmp ecx, dword [0x5f92f8]
jne 0x51299f
mov dword [eax + 0x700], 1
mov eax, dword [esp + 0x10]
cmp dword [eax + 0x708], ebx
jne 0x5129b5
mov dword [eax + 0x708], 0
mov ebx, dword [ebx + 0x40]
test ebx, ebx
mov dword [esp + 0x14], ebx
je 0x513a46
mov eax, dword [esp + 0x3c]
mov edx, dword [esp + 0xb8]
mov ecx, dword [esp + 0x7c]
add edi, eax
mov eax, dword [ebx + 8]
inc edx
cmp eax, ecx
mov dword [esp + 0xc], edi
mov dword [esp + 0xb8], edx
je 0x5129f7
mov dword [esp + 0x7c], eax
mov dword [esp + 0xb4], 1
mov ebx, dword [esp + 0xa4]
test ebx, ebx
je 0x512a5d
cmp dword [esp + 0x40], 1
je 0x512a57
mov edx, dword [ebp + 8]
mov eax, dword [ebp + 0x10]
lea ecx, [ebx + edi]
mov dword [esp + 0x30], ecx
mov ecx, dword [0x5c9d38]
mov dword [esp + 0x24], edx
mov dword [esp + 0x2c], eax
mov dword [esp + 0x28], edi
call fcn.00435dc0
mov edx, dword [eax*4 + 0x5c8f18]
push edx
push esi
call dword [sym.imp.GDI32.dll_SetBkColor]
push 0
push 0
push 0x5a4bec
lea eax, [esp + 0x30]
push eax
push 6
push 0
push 0
push esi
call dword [sym.imp.GDI32.dll_ExtTextOutA]
add edi, ebx
mov dword [esp + 0xc], edi
mov ecx, dword [ebp + 0x14]
sub ecx, dword [esp + 0x3c]
dec ecx
cmp edi, ecx
jg 0x513a46
mov edx, dword [esp + 0x4c]
mov eax, dword [edx*4 + 0x5c8f18]
push eax
push esi
call dword [sym.imp.GDI32.dll_SetTextColor]
mov ecx, dword [esp + 0x5c]
mov edx, dword [ecx*4 + 0x5c8f18]
push edx
push esi
call dword [sym.imp.GDI32.dll_SetBkColor]
mov ebx, dword [esp + 0x10]
mov edi, dword [esp + 0x14]
jmp 0x5127a0
xor eax, eax
mov dword [esp + 0x34], eax
mov dword [esp + 0x1c], eax
mov dword [esp + 0x20], eax
mov eax, dword [edi]
lea ebx, [eax + 1]
mov dl, byte [eax]
inc eax
test dl, dl
jne 0x512ab3
sub eax, ebx
mov dword [esp + 0x70], eax
mov eax, dword [edi + 0x10]
test eax, eax
jle 0x512beb
mov eax, dword [esp + 0x28]
mov edx, dword [esp + 0x24]
mov dword [esp + 0xf4], eax
mov eax, dword [esp + 0x70]
test eax, eax
mov dword [esp + 0xf8], ecx
mov ecx, dword [esp + 0x30]
mov dword [esp + 0xf0], edx
mov dword [esp + 0xfc], ecx
jle 0x512b83
mov edi, dword [esp + 0x34]
mov ebx, dword [esp + 0x14]
cmp edi, dword [ebx + 0x10]
jge 0x512b83
mov ecx, dword [ebx]
cmp byte [ecx + edi], 0x20
jne 0x512b83
mov eax, dword [esp + 0xa8]
test eax, eax
je 0x512b2a
mov edx, edi
call fcn.0055a010
test eax, eax
jg 0x512b83
mov eax, dword [esp + 0xa0]
test eax, eax
je 0x512b46
mov edx, dword [ebx]
push edi
push edx
call fcn.005946b3
add esp, 8
cmp eax, 1
je 0x512b83
mov eax, dword [ebx]
lea ecx, [esp + 0x120]
push ecx
push 1
add eax, edi
push eax
push esi
call dword [sym.imp.GDI32.dll_GetTextExtentPointA]
mov edx, dword [esp + 0x120]
mov ecx, dword [esp + 0x210]
mov eax, dword [esp + 0x24]
sub edx, ecx
add eax, edx
mov dword [esp + 0x24], eax
mov eax, dword [esp + 0x70]
inc edi
cmp edi, eax
mov dword [esp + 0x34], edi
jl 0x512b07
mov eax, dword [esp + 0x34]
mov dword [esp + 0x1c], eax
mov dword [esp + 0x20], eax
mov eax, dword [esp + 0x24]
mov dword [esp + 0xf8], eax
mov eax, dword [esp + 0x40]
test eax, eax
jne 0x512beb
mov ecx, dword [0x5c9d38]
call fcn.00435dc0
mov ecx, dword [eax*4 + 0x5c8f18]
mov ebx, dword [sym.imp.GDI32.dll_SetBkColor]
push ecx
push esi
call ebx
mov ecx, dword [esp + 0xf0]
push 0
push 0
push 0x5a4bec
lea edx, [esp + 0xfc]
push edx
push 6
mov edi, eax
mov eax, dword [esp + 0x20]
push eax
push ecx
push esi
call dword [sym.imp.GDI32.dll_ExtTextOutA]
push edi
push esi
call ebx
xor eax, eax
mov dword [esp + 0x88], eax
mov dword [esp + 0xac], eax
mov dword [esp + 0x94], eax
mov dword [esp + 0x80], eax
mov edi, dword [esp + 0x34]
mov ebx, dword [esp + 0x14]
cmp edi, dword [esp + 0x70]
jge 0x512ef2
mov eax, dword [esp + 0xa8]
test eax, eax
je 0x512c9f
mov ecx, dword [ebx]
mov edx, edi
call fcn.0055a010
test eax, eax
mov dword [esp + 0xac], eax
jle 0x512c4a
mov dword [esp + 0x94], 1
jmp case.0x512d3c.4
cmp eax, 0xffffffff
jne 0x512c73
mov edx, dword [esp + 0x10]
mov eax, dword [edx]
cmp eax, dword [0x5c9f24]
mov dword [esp + 0x94], 1
je case.0x512d3c.4
inc edi
mov dword [esp + 0x34], edi
jmp 0x512c11
cmp eax, 0xfffffffe
jne 0x512c9f
mov ecx, dword [esp + 0x10]
mov edx, dword [ecx]
cmp edx, dword [0x5c9f24]
mov dword [esp + 0x94], 1
je case.0x512d3c.4
inc edi
mov dword [esp + 0x34], edi
jmp 0x512c11
mov eax, dword [esp + 0xa0]
test eax, eax
je 0x512d13
mov eax, dword [ebx]
push edi
push eax
call fcn.005946b3
add esp, 8
cmp eax, 1
mov dword [esp + 0x88], eax
jne 0x512cf2
mov eax, dword [ebx]
mov cl, byte [eax + edi + 1]
inc edi
test cl, cl
jne 0x512cd6
mov dword [esp + 0x34], edi
jmp 0x512c11
push edi
push eax
call fcn.005946b3
add esp, 8
cmp eax, 2
je case.0x512d3c.4
mov dword [esp + 0x34], edi
jmp 0x512c11
cmp eax, 2
jne 0x512d13
mov ecx, dword [esp + 0x10]
mov edx, dword [ecx]
cmp edx, dword [0x5c9f24]
je case.0x512d3c.4
inc edi
mov dword [esp + 0x34], edi
jmp 0x512c11
mov eax, dword [ebx]
movzx eax, byte [eax + edi]
xor ecx, ecx
add eax, 0xfffffffe
cmp eax, 0x1d
mov dword [esp + 0x88], ecx
mov dword [esp + 0xac], ecx
ja case.0x512d3c.4
movzx edx, byte [eax + 0x513b94]
jmp dword [edx*4 + 0x513b78]
cmp dword [esp + 0x44], ecx
je 0x512d56
mov dword [esp + 0x50], 1
jmp case.0x512d3c.4
cmp dword [esp + 0x38], ecx
jne 0x512d69
dec edi
mov dword [esp + 0x38], 1
mov dword [esp + 0x1c], edi
mov edx, dword [esp + 0x8c]
xor eax, eax
cmp edx, ecx
sete al
mov dword [esp + 0x8c], eax
jmp 0x51396d
cmp dword [esp + 0x44], ecx
je 0x512d96
mov dword [esp + 0x50], 1
jmp case.0x512d3c.4
cmp dword [esp + 0x38], ecx
jne 0x512da9
dec edi
mov dword [esp + 0x38], 1
mov dword [esp + 0x1c], edi
mov eax, dword [esp + 0x60]
xor edx, edx
cmp eax, ecx
sete dl
mov dword [esp + 0x60], edx
jmp 0x51396d
cmp dword [esp + 0x44], ecx
je 0x512dd0
mov dword [esp + 0x50], 1
jmp case.0x512d3c.4
cmp dword [esp + 0x38], ecx
jne 0x512de3
dec edi
mov dword [esp + 0x38], 1
mov dword [esp + 0x1c], edi
mov edx, dword [esp + 0x98]
xor eax, eax
cmp edx, ecx
sete al
mov dword [esp + 0x98], eax
jmp 0x51396d
cmp dword [esp + 0x44], ecx
je 0x512e10
mov dword [esp + 0x50], 1
jmp case.0x512d3c.4
cmp dword [esp + 0x38], ecx
jne 0x512e25
lea ecx, [edi - 1]
mov dword [esp + 0x38], 1
mov dword [esp + 0x1c], ecx
mov ecx, dword [0x5c9d38]
call fcn.00435dc0
mov ecx, dword [ebx + 0x1c]
push eax
call fcn.00435dc0
mov ecx, dword [ebx]
push eax
lea edx, [esp + 0x64]
push edx
add ecx, edi
lea edx, [esp + 0x58]
call fcn.005101c0
add edi, eax
mov dword [esp + 0x34], edi
jmp 0x51396d
cmp dword [esp + 0x38], ecx
jne 0x512e6a
dec edi
mov dword [esp + 0x38], 1
mov dword [esp + 0x1c], edi
cmp dword [esp + 0x44], ecx
je 0x512e7d
mov dword [esp + 0x50], 1
jmp case.0x512d3c.4
mov ecx, dword [ebx + 0x1c]
xor eax, eax
mov dword [esp + 0x98], eax
mov dword [esp + 0x60], eax
mov dword [esp + 0x8c], eax
call fcn.00435dc0
mov ecx, dword [0x5c9d38]
mov dword [esp + 0x4c], eax
call fcn.00435dc0
mov dword [esp + 0x5c], eax
jmp 0x51396d
mov eax, dword [esp + 0x10]
cmp dword [eax + 0x71c], 9
jne case.0x512d3c.4
cmp dword [esp + 0x38], ecx
je 0x512ed4
cmp dword [esp + 0x44], ecx
jne 0x512ee1
mov dword [esp + 0x50], 1
jmp case.0x512d3c.4
dec edi
mov dword [esp + 0x38], 1
mov dword [esp + 0x1c], edi
inc dword [esp + 0x44]
jmp 0x51396d
mov ebx, dword [esp + 0x14]
mov edi, dword [esp + 0x34]
mov eax, dword [esp + 0x80]
test eax, eax
jne 0x5139b4
mov eax, dword [esp + 0x38]
test eax, eax
je 0x512f16
mov dword [esp + 0x80], 1
jmp case.0x512d3c.4
mov eax, dword [esp + 0x70]
cmp edi, eax
mov dword [esp + 0x1c], edi
jl 0x512f27
dec eax
mov dword [esp + 0x1c], eax
mov eax, 1
mov dword [esp + 0x80], eax
mov dword [esp + 0x38], eax
cmp dword [esp + 0x20], 0xffffffff
jne 0x512f46
mov ecx, dword [esp + 0x1c]
mov dword [esp + 0x20], ecx
mov eax, dword [esp + 0x38]
test eax, eax
je 0x51396d
mov ecx, dword [esp + 0x20]
test ecx, ecx
mov dword [esp + 0x38], 0
jl 0x513610
mov eax, dword [esp + 0x1c]
test eax, eax
jl 0x513610
cmp eax, ecx
jl 0x513610
sub eax, ecx
inc eax
test eax, eax
mov dword [esp + 0x18], eax
jle 0x513610
mov eax, dword [esp + 0x80]
test eax, eax
jne 0x512fb9
mov eax, dword [esp + 0xac]
test eax, eax
je 0x512fa5
jle 0x513610
mov eax, dword [esp + 0x88]
test eax, eax
je 0x512fb9
cmp eax, 1
jne 0x513610
mov eax, dword [esp + 0x94]
test eax, eax
je 0x512fe0
mov eax, dword [esp + 0x14]
mov ecx, dword [eax]
lea edx, [esp + 0x18]
push edx
lea edx, [esp + 0x24]
call fcn.0055ad60
test eax, eax
je 0x513610
mov eax, dword [esp + 0xa0]
test eax, eax
je 0x513027
mov eax, dword [esp + 0x20]
test eax, eax
jle 0x513027
mov edi, dword [esp + 0x14]
mov ecx, dword [edi]
push eax
push ecx
call fcn.005946b3
add esp, 8
cmp eax, 2
jne 0x51302b
mov ecx, dword [esp + 0x20]
mov eax, dword [esp + 0x18]
dec ecx
inc eax
mov dword [esp + 0x88], 1
mov dword [esp + 0x20], ecx
mov dword [esp + 0x18], eax
jmp 0x513036
mov edi, dword [esp + 0x14]
mov eax, dword [esp + 0x88]
test eax, eax
je 0x51309a
mov edx, dword [esp + 0x20]
mov eax, dword [edi]
push edx
push eax
call fcn.005946b3
add esp, 8
cmp eax, 1
jne 0x51308f
mov eax, dword [esp + 0x18]
cmp eax, 1
jne 0x51305e
mov dword [esp + 0x18], 2
jmp 0x513063
cmp eax, 2
jne 0x51309a
mov eax, dword [edi]
mov ecx, dword [esp + 0x20]
mov dl, byte [eax + ecx + 1]
test dl, dl
je 0x513610
inc ecx
push ecx
push eax
call fcn.005946b3
add esp, 8
cmp eax, 2
jne 0x513610
mov edi, dword [esp + 0x14]
jmp 0x51309a
mov dword [esp + 0x88], 0
mov eax, dword [esp + 0x94]
xor ebx, ebx
test eax, eax
je 0x5130c9
mov edx, dword [esp + 0x20]
mov ecx, dword [edi]
add ecx, edx
mov edx, dword [esp + 0x18]
call fcn.005585f0
mov ebx, eax
test ebx, ebx
je 0x5130c9
push ebx
call dword [sym.imp.KERNEL32.dll_lstrlenW]
mov dword [esp + 0x18], eax
xor eax, eax
test ebx, ebx
mov ecx, 0xe
lea edi, [esp + 0x138]
rep stosd dword es:[edi], eax
je 0x5130ec
lea ecx, [esp + 0x138]
push ecx
push esi
call dword [sym.imp.GDI32.dll_GetTextMetricsA]
xor eax, eax
cmp ebx, eax
mov dword [esp + 0x90], eax
mov dword [esp + 0x48], eax
je 0x513130
mov edx, dword [esp + 0x18]
push eax
push str.print_start
push eax
push edx
mov edx, ebx
mov ecx, esi
call fcn.0048cff0
test eax, eax
jle 0x513130
mov ecx, dword [esp + 0x18]
mov dword [esp + 0x90], ebx
mov dword [esp + 0x48], ecx
mov dword [esp + 0x18], eax
lea esp, [esp]
mov edi, dword [sym.imp.GDI32.dll_GetTextMetricsA]
lea edx, [esp + 0x180]
push edx
push esi
call edi
mov eax, dword [esp + 0x90]
test eax, eax
mov dword [esp + 0x1c], 0
je 0x51319e
lea eax, [esp + 0x1b8]
push eax
push esi
call edi
mov edi, dword [esp + 0x138]
mov edx, dword [esp + 0x1b8]
cmp edi, edx
jle 0x51319e
mov eax, dword [esp + 0x13c]
mov ecx, dword [esp + 0x1bc]
cmp eax, ecx
jle 0x51319e
sub eax, ecx
test eax, eax
mov dword [esp + 0x1c], eax
jle 0x51319e
lea ecx, [edx + eax]
cmp ecx, edi
jle 0x51319a
dec eax
dec ecx
test eax, eax
jg 0x513190
mov dword [esp + 0x1c], eax
test ebx, ebx
mov eax, dword [esp + 0x18]
je 0x5131cc
cmp eax, 0xffffffff
jne 0x5131b2
push ebx
call dword [sym.imp.KERNEL32.dll_lstrlenW]
lea ecx, [esp + 0x118]
push ecx
push eax
push ebx
push esi
call dword [sym.imp.GDI32.dll_GetTextExtentPointW]
mov edi, dword [esp + 0x118]
jmp 0x513201
mov edx, dword [esp + 0x14]
mov edi, dword [edx]
add edi, dword [esp + 0x20]
cmp eax, 0xffffffff
jne 0x5131e9
mov eax, edi
lea edx, [eax + 1]
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x5131e0
sub eax, edx
lea ecx, [esp + 0x110]
push ecx
push eax
push edi
push esi
call dword [sym.imp.GDI32.dll_GetTextExtentPointA]
mov edi, dword [esp + 0x110]
mov ecx, dword [esp + 0x10]
mov eax, dword [esp + 0x1a0]
mov edx, dword [ecx]
sub edi, eax
cmp edx, dword [0x5c9f24]
jne 0x5132ba
mov edx, dword [esp + 0x90]
push edx
lea edx, [esp + 0xd0]
push edx
mov edx, dword [esp + 0xc0]
push edx
mov edx, dword [esp + 0xf8]
push eax
mov eax, dword [esp + 0xb4]
push eax
mov eax, dword [esp + 0xf8]
push edx
mov edx, dword [esp + 0xf8]
push eax
mov eax, dword [esp + 0x104]
push edx
push eax
mov eax, dword [esp + 0x48]
sub esp, 0x10
mov edx, esp
mov dword [edx], eax
mov eax, dword [esp + 0x5c]
mov dword [edx + 4], eax
mov eax, dword [esp + 0x60]
mov dword [edx + 8], eax
mov eax, dword [esp + 0x64]
mov dword [edx + 0xc], eax
mov edx, dword [esp + 0x4c]
mov eax, dword [esp + 0x54]
push edx
mov edx, dword [esp + 0x4c]
push eax
push ebx
push edx
mov edx, esi
call fcn.00511bd0
test eax, eax
jne 0x5132ba
push 0xffffd8f1
push 0xffffd8f1
push 0x270f
push 0x270f
lea eax, [esp + 0xdc]
push eax
call dword [sym.imp.USER32.dll_SetRect]
mov eax, dword [esp + 0x24]
mov ecx, dword [esp + 0x78]
add edi, eax
test ecx, ecx
mov dword [esp + 0x2c], edi
je 0x513384
mov ecx, dword [0x5c9d38]
call fcn.00435dc0
mov ecx, dword [eax*4 + 0x5c8f18]
push ecx
push esi
call dword [sym.imp.GDI32.dll_SetTextColor]
mov ecx, dword [0x5c9d4c]
mov dword [esp + 0x58], eax
call fcn.00435dc0
mov edx, dword [eax*4 + 0x5c8f18]
push edx
push esi
call dword [sym.imp.GDI32.dll_SetBkColor]
test ebx, ebx
mov dword [esp + 0x74], eax
push 0
je 0x513339
mov edx, dword [esp + 0x1c]
mov eax, dword [esp + 0x10]
mov ecx, dword [esp + 0x20]
push edx
push ebx
lea edi, [ecx + eax]
mov ecx, dword [esp + 0x30]
lea eax, [esp + 0x30]
push eax
push 6
push edi
push ecx
push esi
call dword [sym.imp.GDI32.dll_ExtTextOutW]
jmp 0x51336a
mov edx, dword [esp + 0x10]
mov eax, dword [esp + 0x20]
mov ecx, dword [esp + 0x1c]
lea edi, [eax + edx]
mov edx, dword [esp + 0x18]
mov eax, dword [edx]
mov edx, dword [esp + 0x24]
push ecx
add eax, edx
mov edx, dword [esp + 0x2c]
push eax
lea ecx, [esp + 0x30]
push ecx
push 6
push edi
push edx
push esi
call dword [sym.imp.GDI32.dll_ExtTextOutA]
mov eax, dword [esp + 0x58]
push eax
push esi
call dword [sym.imp.GDI32.dll_SetTextColor]
mov ecx, dword [esp + 0x74]
push ecx
push esi
call dword [sym.imp.GDI32.dll_SetBkColor]
jmp 0x5133de
test ebx, ebx
push 0
je 0x5133b0
mov edx, dword [esp + 0x10]
mov ecx, dword [esp + 0x20]
lea edi, [ecx + edx]
mov edx, dword [esp + 0x1c]
push edx
mov edx, dword [esp + 0x6c]
push ebx
lea ecx, [esp + 0x30]
push ecx
push edx
push edi
push eax
push esi
call dword [sym.imp.GDI32.dll_ExtTextOutW]
jmp 0x5133de
mov ecx, dword [esp + 0x10]
mov edx, dword [esp + 0x20]
lea edi, [edx + ecx]
mov ecx, dword [esp + 0x1c]
mov edx, dword [esp + 0x18]
push ecx
mov ecx, dword [edx]
add ecx, dword [esp + 0x28]
push ecx
mov ecx, dword [esp + 0x70]
lea edx, [esp + 0x30]
push edx
push ecx
push edi
push eax
push esi
call dword [sym.imp.GDI32.dll_ExtTextOutA]
mov edx, dword [esp + 0x10]
mov eax, dword [edx]
cmp eax, dword [0x5c9f24]
jne 0x51359c
mov edx, dword [esp + 0xd0]
cmp edx, 0x270f
je 0x51357a
cmp dword [esp + 0xd8], 0xffffd8f1
je 0x51357a
mov ecx, dword [esp + 0xcc]
cmp ecx, 0x270f
je 0x51357a
mov eax, dword [esp + 0xd4]
cmp eax, 0xffffd8f1
je 0x51357a
push dword [esp + 0xd8]
mov dword [esp + 0xcc], 1
push eax
push edx
push ecx
push esi
call dword [sym.imp.GDI32.dll_IntersectClipRect]
mov eax, dword [esp + 0x78]
test eax, eax
je 0x5134dc
mov ecx, dword [0x5c9d4c]
call fcn.00435dc0
mov ecx, dword [eax*4 + 0x5c8f18]
push ecx
push esi
call dword [sym.imp.GDI32.dll_SetTextColor]
mov ecx, dword [0x5c9d38]
mov dword [esp + 0x58], eax
call fcn.00435dc0
mov edx, dword [eax*4 + 0x5c8f18]
push edx
push esi
call dword [sym.imp.GDI32.dll_SetBkColor]
test ebx, ebx
mov dword [esp + 0x74], eax
mov eax, dword [esp + 0x18]
push 0
push eax
je 0x5134c2
mov edx, dword [esp + 0x2c]
push ebx
lea ecx, [esp + 0x30]
push ecx
push 6
push edi
push edx
push esi
call dword [sym.imp.GDI32.dll_ExtTextOutW]
jmp 0x513559
mov ecx, dword [esp + 0x1c]
mov edx, dword [ecx]
add edx, dword [esp + 0x28]
mov ecx, dword [esp + 0x2c]
push edx
lea eax, [esp + 0x30]
push eax
push 6
push edi
push ecx
jmp 0x513552
mov ecx, dword [0x5c9d38]
call fcn.00435dc0
mov edx, dword [eax*4 + 0x5c8f18]
push edx
push esi
call dword [sym.imp.GDI32.dll_SetTextColor]
mov ecx, dword [0x5c9d4c]
mov dword [esp + 0x58], eax
call fcn.00435dc0
mov eax, dword [eax*4 + 0x5c8f18]
push eax
push esi
call dword [sym.imp.GDI32.dll_SetBkColor]
test ebx, ebx
mov ecx, dword [esp + 0x18]
push 0
mov dword [esp + 0x78], eax
push ecx
je 0x51353a
mov eax, dword [esp + 0x2c]
push ebx
lea edx, [esp + 0x30]
push edx
push 6
push edi
push eax
push esi
call dword [sym.imp.GDI32.dll_ExtTextOutW]
jmp 0x513559
mov edx, dword [esp + 0x1c]
mov eax, dword [edx]
add eax, dword [esp + 0x28]
mov edx, dword [esp + 0x2c]
push eax
lea ecx, [esp + 0x30]
push ecx
push 6
push edi
push edx
push esi
call dword [sym.imp.GDI32.dll_ExtTextOutA]
mov eax, dword [esp + 0x58]
push eax
push esi
call dword [sym.imp.GDI32.dll_SetTextColor]
mov ecx, dword [esp + 0x74]
push ecx
push esi
call dword [sym.imp.GDI32.dll_SetBkColor]
push 0
push esi
call dword [sym.imp.GDI32.dll_SelectClipRgn]
push 0xffffd8f1
push 0xffffd8f1
push 0x270f
push 0x270f
lea edx, [esp + 0xdc]
push edx
call dword [sym.imp.USER32.dll_SetRect]
mov eax, dword [esp + 0x2c]
mov dword [esp + 0x24], eax
mov eax, dword [esp + 0x90]
test eax, eax
je 0x513603
mov eax, dword [esp + 0x18]
mov ecx, dword [esp + 0x48]
sub ecx, eax
mov dword [esp + 0x48], ecx
test ecx, ecx
lea ebx, [ebx + eax*2]
push 0
mov ecx, esi
jle 0x5135ec
mov edi, dword [esp + 0x4c]
push str.print_next
push 1
push edi
mov edx, ebx
call fcn.0048cff0
test eax, eax
jg 0x513125
mov dword [esp + 0x18], edi
jmp 0x513130
push str.print_end
push 2
push 0
xor edx, edx
call fcn.0048cff0
mov ebx, dword [esp + 0x90]
test ebx, ebx
je 0x513610
push ebx
call fcn.0059112a
add esp, 4
mov ecx, dword [esp + 0x4c]
mov edx, dword [ecx*4 + 0x5c8f18]
push edx
push esi
call dword [sym.imp.GDI32.dll_SetTextColor]
mov edi, dword [esp + 0x5c]
mov eax, dword [edi*4 + 0x5c8f18]
push eax
push esi
call dword [sym.imp.GDI32.dll_SetBkColor]
cmp dword [esp + 0x40], 1
jne 0x513657
mov ecx, dword [0x5c9d38]
call fcn.00435dc0
xor ecx, ecx
cmp edi, eax
setne cl
lea ecx, [ecx + ecx + 4]
mov dword [esp + 0x64], ecx
mov ecx, dword [esp + 0x44]
test ecx, ecx
mov ebx, dword [esp + 0x10]
je 0x513870
mov edx, dword [esp + 0x2c]
mov eax, dword [esp + 0x24]
mov dword [esp + 0x58], edx
mov dword [esp + 0x2c], eax
jle 0x5136d0
mov edx, dword [esp + 0xbc]
lea edi, [ebx + edx*4 + 0x794]
mov dword [esp + 0x48], ecx
jmp 0x513690
test ebx, ebx
je 0x5136bf
test edx, edx
jl 0x5136b1
cmp edx, 0x32
jge 0x5136b1
mov ecx, dword [edi]
test ecx, ecx
jle 0x5136b1
mov eax, dword [ebx + 0xa08]
imul eax, ecx
add eax, 2
jmp 0x5136bb
mov ecx, dword [ebx + 0xa08]
lea eax, [ecx + eax + 2]
inc edx
add edi, 4
dec dword [esp + 0x48]
jne 0x513690
mov dword [esp + 0x2c], eax
mov dword [esp + 0xbc], edx
cmp eax, dword [esp + 0x58]
mov edi, dword [sym.imp.GDI32.dll_ExtTextOutA]
mov dword [esp + 0x44], 0
jge 0x513739
mov edx, dword [esp + 0x24]
mov ecx, dword [esp + 0x28]
mov dword [esp + 0x100], edx
mov edx, dword [esp + 0x30]
push 0
push 0
mov dword [esp + 0x114], edx
mov edx, dword [esp + 0x60]
push 0x5a4bec
mov dword [esp + 0x114], eax
mov dword [esp + 0x114], edx
lea edx, [esp + 0x10c]
push edx
mov edx, dword [esp + 0x74]
push edx
push ecx
push eax
push esi
mov dword [esp + 0x124], ecx
mov dword [esp + 0x120], eax
call edi
mov eax, dword [esp + 0x78]
test eax, eax
je 0x5137b5
mov ecx, dword [0x5c9d38]
call fcn.00435dc0
mov eax, dword [eax*4 + 0x5c8f18]
push eax
push esi
call dword [sym.imp.GDI32.dll_SetTextColor]
mov ecx, dword [0x5c9d4c]
mov ebx, eax
call fcn.00435dc0
mov ecx, dword [eax*4 + 0x5c8f18]
push ecx
push esi
call dword [sym.imp.GDI32.dll_SetBkColor]
mov ecx, dword [esp + 0x24]
push 0
push 0
push 0x5a4bec
lea edx, [esp + 0x30]
push edx
push 6
mov dword [esp + 0x88], eax
mov eax, dword [esp + 0x20]
push eax
push ecx
push esi
call edi
push ebx
push esi
call dword [sym.imp.GDI32.dll_SetTextColor]
mov edx, dword [esp + 0x74]
push edx
push esi
call dword [sym.imp.GDI32.dll_SetBkColor]
mov ebx, dword [esp + 0x10]
jmp 0x5137d5
mov ecx, dword [esp + 0x64]
mov edx, dword [esp + 0xc]
push 0
push 0
push 0x5a4bec
lea eax, [esp + 0x30]
push eax
mov eax, dword [esp + 0x34]
push ecx
push edx
push eax
push esi
call edi
mov eax, dword [esp + 0x9c]
test eax, eax
je 0x513868
mov eax, dword [esp + 0x78]
test eax, eax
je 0x513801
mov ecx, dword [0x5c9d38]
call fcn.00435dc0
mov ecx, dword [eax*4 + 0x5c8f18]
push ecx
jmp 0x51380d
mov edx, dword [esp + 0x4c]
mov eax, dword [edx*4 + 0x5c8f18]
push eax
push 1
push 0
call dword [sym.imp.GDI32.dll_CreatePen]
mov edi, eax
test edi, edi
je 0x513868
push edi
push esi
call dword [sym.imp.GDI32.dll_SelectObject]
mov ecx, dword [esp + 0xc]
mov edx, dword [esp + 0x3c]
push 0
lea ebx, [ecx + edx - 2]
mov dword [esp + 0x4c], eax
mov eax, dword [esp + 0x28]
push ebx
push eax
push esi
call dword [sym.imp.GDI32.dll_MoveToEx]
mov ecx, dword [esp + 0x2c]
push ebx
push ecx
push esi
call dword [sym.imp.GDI32.dll_LineTo]
mov edx, dword [esp + 0x48]
push edx
push esi
call dword [sym.imp.GDI32.dll_SelectObject]
push edi
call dword [sym.imp.GDI32.dll_DeleteObject]
mov ebx, dword [esp + 0x10]
mov eax, dword [esp + 0x2c]
mov dword [esp + 0x24], eax
mov edi, dword [esp + 0x8c]
cmp dword [esp + 0xb0], edi
mov ecx, dword [esp + 0x98]
mov dword [esp + 0x78], ecx
jne 0x51389c
mov edx, dword [esp + 0x9c]
cmp edx, dword [esp + 0x60]
je 0x513957
mov eax, dword [esp + 0x60]
mov dword [esp + 0x9c], eax
mov eax, dword [esp + 0x68]
test eax, eax
mov dword [esp + 0xb0], edi
je 0x5138be
push eax
push esi
call dword [sym.imp.GDI32.dll_SelectObject]
mov eax, dword [esp + 0x84]
test eax, eax
je 0x5138d0
push eax
call dword [sym.imp.GDI32.dll_DeleteObject]
test edi, edi
mov eax, dword [ebx + 0x9f8]
je 0x5138f3
xor ecx, ecx
cmp eax, 0x190
setne cl
dec ecx
and ecx, 0x12c
add ecx, 0x190
mov eax, ecx
mov ecx, dword [ebx + 0x9fc]
lea edx, [ebx + 0x990]
push edx
mov edx, dword [esp + 0x64]
push 0
push 0
push 0
push 0
push ecx
push 0
push edx
push 0
push eax
mov eax, dword [ebx + 0x9f4]
push 0
push 0
push 0
neg eax
push eax
call dword [sym.imp.GDI32.dll_CreateFontA]
test eax, eax
mov dword [esp + 0x84], eax
je 0x513936
push eax
jmp 0x51393d
mov ecx, dword [ebx + 0x98c]
push ecx
push esi
call dword [sym.imp.GDI32.dll_SelectObject]
lea edx, [esp + 0x228]
push edx
push esi
mov dword [esp + 0x70], eax
call dword [sym.imp.GDI32.dll_GetTextMetricsA]
mov eax, dword [esp + 0x34]
mov ecx, dword [esp + 0x50]
mov dword [esp + 0x20], eax
xor eax, eax
cmp ecx, eax
mov dword [esp + 0x1c], eax
jne 0x5139a3
mov ecx, dword [ebp + 0x10]
mov eax, dword [esp + 0x24]
add ecx, 0xfffffffe
cmp eax, ecx
jl 0x51398b
mov dword [esp + 0x80], 1
jmp 0x512eea
mov eax, dword [esp + 0x80]
test eax, eax
jne 0x512eea
inc dword [esp + 0x34]
jmp 0x512c09
mov dword [esp + 0x50], eax
mov dword [esp + 0x20], 0xffffffff
jmp 0x512c09
cmp dword [esp + 0x40], 1
je 0x51294e
mov ecx, dword [0x5c9d38]
call fcn.00435dc0
mov edx, dword [eax*4 + 0x5c8f18]
push edx
push esi
call dword [sym.imp.GDI32.dll_SetBkColor]
mov edi, dword [esp + 0xc]
mov edx, dword [esp + 0x24]
mov eax, dword [ebp + 0x10]
push 0
push 0
push 0x5a4bec
lea ecx, [esp + 0x30]
push ecx
push 6
push edi
push edx
push esi
mov dword [esp + 0x4c], eax
call dword [sym.imp.GDI32.dll_ExtTextOutA]
mov eax, dword [esp + 0x10]
cmp dword [eax + 0x6f8], ebx
jne 0x513a17
cmp dword [ebx + 0x20], 2
je 0x512952
push 0
push 0
push 0x5a4bec
lea ecx, [esp + 0x30]
push ecx
push 6
push edi
push 0
push esi
mov dword [esp + 0x44], 0
mov dword [esp + 0x4c], 2
call dword [sym.imp.GDI32.dll_ExtTextOutA]
jmp 0x512952
mov eax, dword [esp + 0xdc]
push eax
push esi
call dword [sym.imp.GDI32.dll_SetBkMode]
mov eax, dword [esp + 0x54]
test eax, eax
jl 0x513a66
push eax
call fcn.00594506
add esp, 4
mov ecx, dword [esp + 0x68]
push ecx
push esi
call dword [sym.imp.GDI32.dll_SelectObject]
mov eax, dword [esp + 0x84]
test eax, eax
je 0x513a84
push eax
call dword [sym.imp.GDI32.dll_DeleteObject]
mov eax, dword [esp + 0x40]
test eax, eax
je 0x513ac9
mov eax, dword [ebp + 8]
mov edx, dword [ebp + 0x14]
mov ecx, dword [ebp + 0x10]
mov edi, dword [esp + 0x6c]
push 0xcc0020
push 0
push 0
push esi
push edx
sub ecx, eax
push ecx
push 0
push eax
push edi
call dword [sym.imp.GDI32.dll_BitBlt]
mov edx, dword [esp + 0xc0]
push edx
push esi
call dword [sym.imp.GDI32.dll_SelectObject]
push esi
call dword [sym.imp.GDI32.dll_DeleteDC]
mov esi, edi
mov eax, dword [esp + 0xc4]
test eax, eax
je case.0x5120e9.4
mov eax, dword [esp + 0x10]
mov ecx, dword [eax + 0x87c]
push esi
push ecx
call dword [sym.imp.USER32.dll_ReleaseDC]
mov esi, dword [esp + 0x10]
mov eax, dword [esi + 0x984]
xor edi, edi
cmp eax, edi
je 0x513b03
push eax
call dword [sym.imp.GDI32.dll_DeleteObject]
mov dword [esi + 0x984], edi
mov edx, dword [esi]
mov dword [esi + 0x988], edi
cmp edx, dword [0x5c9f24]
jne 0x513b41
cmp dword [esp + 0xc8], edi
je 0x513b3b
push 0x7f01
push edi
mov dword [esi + 0xdb0], 1
call dword [sym.imp.USER32.dll_LoadCursorA]
push eax
call dword [sym.imp.USER32.dll_SetCursor]
jmp 0x513b41
mov dword [esi + 0xdb0], edi
mov eax, dword [esi + 0x714]
mov dword [esi + 0x718], eax
mov dword [0x5f3214], edi
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 0x10