Function at 0x4f0a47
Capabilities:
Capture screenshot

Disassembly:
push ebp
mov ebp, esp
add esp, 0xffffff14
push ebx
push esi
push edi
mov ebx, dword [ebp + 8]
cmp dword [0x56cd4c], 0
jne 0x4f2286
mov dword [0x56cd4c], 1
xor eax, eax
mov dword [ebp - 0x50], eax
xor edx, edx
mov dword [ebp - 0xa8], edx
xor ecx, ecx
mov dword [ebp - 0x98], ecx
xor eax, eax
mov dword [ebp - 0x94], eax
xor edx, edx
mov dword [ebp - 0x18], edx
mov ecx, dword [ebx + 0xd1c]
mov dword [ebp - 4], ecx
mov eax, dword [ebx + 0xd20]
mov dword [ebp - 8], eax
mov edx, dword [ebx + 0xd24]
mov dword [ebp - 0xc], edx
mov ecx, dword [ebx + 0xd28]
mov dword [ebp - 0x10], ecx
push 0xffffffffffffffff
push 0xffffffffffffffff
push 0xffffffffffffffff
push 0xffffffffffffffff
lea eax, [ebx + 0xd2c]
push eax
call sub.USER32.dll_SetRect
push dword [ebx]
call sub.USER32.dll_IsIconic
test eax, eax
jne 0x4f21c0
push dword [ebx]
call sub.USER32.dll_IsWindowVisible
test eax, eax
je 0x4f21c0
push dword [ebx]
call fcn.0051fe9d
test eax, eax
je 0x4f0b1e
push dword [0x56f01c]
call sub.USER32.dll_GetTopWindow
mov dword [ebp - 0xbc], eax
push dword [ebp - 0xbc]
call sub.USER32.dll_IsZoomed
test eax, eax
je 0x4f0b1e
mov edx, dword [ebx]
cmp edx, dword [ebp - 0xbc]
jne 0x4f21c0
mov ecx, dword [ebx + 0x6bc]
sub ecx, 3
je 0x4f0b41
dec ecx
je 0x4f21c0
sub ecx, 4
je 0x4f21c0
dec ecx
je 0x4f0bb2
jmp 0x4f0bd3
cmp dword [ebx + 0x6c0], 1
jne 0x4f0b7e
push dword [ebx]
call fcn.0050366f
mov dword [ebp - 0xc0], eax
cmp dword [ebp - 0xc0], 0
je 0x4f21c0
push 0
push 1
push 1
push 1
push 1
push dword [ebp - 0xc0]
call fcn.00518a45
jmp 0x4f21c0
push dword [ebx]
call fcn.0048ba7c
mov dword [ebp - 0xc4], eax
cmp dword [ebp - 0xc4], 0
je 0x4f21c0
push 0
push 1
push 1
push 1
push 1
push dword [ebp - 0xc4]
call fcn.005191c5
jmp 0x4f21c0
cmp dword [ebx + 0x6c0], 1
je 0x4f21c0
cmp dword [ebx + 0x6f8], 0
je 0x4f0bd3
push ebx
call fcn.00472184
jmp 0x4f21c0
cmp dword [ebx + 0x810], 0
je 0x4f21c0
cmp dword [ebp + 0xc], 0
jne 0x4f0c08
push dword [ebx + 0x810]
call sub.USER32.dll_GetDC
mov dword [ebp + 0xc], eax
cmp dword [ebp + 0xc], 0
je 0x4f21c0
mov dword [ebp - 0x94], 1
mov eax, dword [ebx]
cmp eax, dword [0x566768]
jne 0x4f0c19
push 1
call fcn.00493b84
cmp dword [ebx + 0x8f4], 0
jne 0x4f0c39
mov edx, dword [ebx]
cmp edx, dword [0x562c3c]
je 0x4f0c39
cmp dword [ebx + 0x920], 0
je 0x4f0da9
cmp dword [ebx + 0x8f4], 0
je 0x4f0c4b
push 0
push dword [ebx]
call fcn.00429e92
mov ecx, dword [ebp + 0xc]
mov dword [ebp - 0xa8], ecx
push dword [ebp - 0xa8]
call sub.GDI32.dll_CreateCompatibleDC
mov dword [ebp + 0xc], eax
cmp dword [ebp + 0xc], 0
je 0x4f0d8c
push dword [ebp - 0xa8]
call sub.GDI32.dll_CreateCompatibleDC
mov dword [ebp - 0xac], eax
cmp dword [ebp - 0xac], 0
je 0x4f0d8c
cmp dword [ebx + 0x91c], 0
jne 0x4f0caa
push dword [ebp + 0x1c]
push dword [ebp + 0x18]
push dword [ebp - 0xa8]
call sub.GDI32.dll_CreateCompatibleBitmap
mov dword [ebx + 0x91c], eax
cmp dword [ebx + 0x91c], 0
je 0x4f0d81
push dword [ebx + 0x91c]
push dword [ebp + 0xc]
call sub.GDI32.dll_SelectObject
mov dword [ebp - 0x98], eax
cmp dword [ebx + 0x8f4], 0
je 0x4f0d26
push dword [ebx + 0x8f4]
push dword [ebp - 0xac]
call sub.GDI32.dll_SelectObject
mov dword [ebp - 0x9c], eax
push 0xcc0020
push 0
push 0
push dword [ebp - 0xac]
push dword [ebp + 0x1c]
push dword [ebp + 0x18]
push 0
push 0
push dword [ebp + 0xc]
call sub.GDI32.dll_BitBlt
push dword [ebp - 0x9c]
push dword [ebp - 0xac]
call sub.GDI32.dll_SelectObject
mov dword [ebp - 0x50], 1
jmp 0x4f0d81
mov eax, dword [0x5618dc]
push dword [eax*4 + 0x57f828]
push dword [ebp + 0xc]
call sub.GDI32.dll_SetBkColor
xor edx, edx
mov dword [ebp - 0xdc], edx
xor ecx, ecx
mov dword [ebp - 0xd8], ecx
mov eax, dword [ebp + 0x18]
mov dword [ebp - 0xd4], eax
mov edx, dword [ebp + 0x1c]
mov dword [ebp - 0xd0], edx
push 0
push 0
push 0x56cd56
lea ecx, [ebp - 0xdc]
push ecx
push 6
push 0
push 0
push dword [ebp + 0xc]
call sub.GDI32.dll_ExtTextOutA
mov dword [ebp - 0x50], 2
push dword [ebp - 0xac]
call sub.GDI32.dll_DeleteDC
cmp dword [ebp - 0x50], 0
jne 0x4f0da9
cmp dword [ebp + 0xc], 0
je 0x4f0da0
push dword [ebp + 0xc]
call sub.GDI32.dll_DeleteDC
mov eax, dword [ebp - 0xa8]
mov dword [ebp + 0xc], eax
cmp dword [ebx + 0x684], 0
jne 0x4f0df1
cmp dword [ebp - 0x50], 0
jne 0x4f21c0
mov edx, dword [0x5618dc]
push dword [edx*4 + 0x57f828]
push dword [ebp + 0xc]
call sub.GDI32.dll_SetBkColor
push 0
push 0
push 0x56cd5a
lea ecx, [ebp + 0x10]
push ecx
push 6
push 0
push 0
push dword [ebp + 0xc]
call sub.GDI32.dll_ExtTextOutA
jmp 0x4f21c0
mov eax, dword [ebx + 0x99c]
mov dword [ebp - 0x64], eax
mov edx, dword [ebx + 0x6b4]
sub edx, dword [ebx + 0x6b8]
mov dword [ebp - 0x5c], edx
mov edi, edx
mov eax, dword [ebx + 0x684]
mov esi, dword [eax + 0x44]
test edi, edi
jle 0x4f0e28
cmp esi, dword [ebx + 0x684]
je 0x4f0e28
mov esi, dword [esi + 0x44]
dec edi
test edi, edi
jg 0x4f0e18
test esi, esi
je 0x4f0db2
mov eax, dword [ebx]
cmp eax, dword [0x562c3c]
je 0x4f0ee4
cmp dword [ebx + 0x6bc], 0
je 0x4f0e62
cmp dword [ebx + 0x6bc], 1
je 0x4f0e62
cmp dword [ebx + 0x6bc], 2
je 0x4f0e62
cmp dword [ebx + 0x6bc], 9
jne 0x4f0ee4
mov dword [ebp - 0xb0], esi
mov edx, dword [ebp - 0x64]
inc edx
mov ecx, dword [ebp + 0x1c]
sub ecx, edx
mov dword [ebp - 0x60], ecx
mov eax, dword [ebp + 0x18]
cmp eax, dword [esi + 0x14]
jne 0x4f0e87
mov edx, dword [esi + 0x18]
cmp edx, dword [ebx + 0x998]
je 0x4f0ec3
push dword [ebp + 0x18]
push esi
push ebx
push dword [ebp + 0xc]
call fcn.004f0295
mov esi, eax
test esi, esi
je 0x4f0ede
cmp dword [ebp - 0x5c], 0
jne 0x4f0eaa
push 1
push ebx
call fcn.0052227d
jmp 0x4f0eb2
push 0
push ebx
call fcn.0052227d
mov edi, dword [ebx + 0x6b4]
sub edi, dword [ebx + 0x6b8]
jmp 0x4f0e0b
cmp esi, dword [ebx + 0x684]
je 0x4f0ece
mov esi, dword [esi + 0x44]
mov eax, dword [ebp - 0x64]
sub dword [ebp - 0x60], eax
mov edx, dword [ebp - 0x64]
neg edx
cmp edx, dword [ebp - 0x60]
jle 0x4f0e74
mov esi, dword [ebp - 0xb0]
mov eax, dword [esi + 8]
mov dword [ebp - 0x68], eax
mov edx, dword [ebp - 0x64]
inc edx
mov ecx, dword [ebp + 0x1c]
sub ecx, edx
mov dword [ebp - 0x60], ecx
cmp esi, dword [ebx + 0x684]
je 0x4f0fc0
mov eax, dword [ebp - 0x64]
sub dword [ebp - 0x60], eax
cmp dword [ebx + 0x70c], 1
je 0x4f0f23
cmp dword [ebx + 0x70c], 2
jne 0x4f0f29
cmp dword [0x56c29c], 1
jne 0x4f0f29
mov edx, dword [ebp - 0x64]
sub dword [ebp - 0x60], edx
mov esi, dword [esi + 0x44]
mov ecx, dword [esi + 8]
cmp ecx, dword [ebp - 0x68]
je 0x4f0ef6
mov eax, dword [esi + 8]
mov dword [ebp - 0x68], eax
cmp dword [ebx + 0x70c], 3
je 0x4f0f55
cmp dword [ebx + 0x70c], 2
jne 0x4f0f63
cmp dword [0x56c29c], 2
jne 0x4f0f63
mov eax, dword [ebp - 0x64]
mov ecx, 3
cdq
idiv ecx
sub dword [ebp - 0x60], eax
mov eax, dword [ebp - 0x64]
neg eax
cmp eax, dword [ebp - 0x60]
jle 0x4f0ef6
mov edx, dword [ebp - 0x64]
add dword [ebp - 0x60], edx
cmp dword [ebx + 0x70c], 1
je 0x4f0f8e
cmp dword [ebx + 0x70c], 2
jne 0x4f0f94
cmp dword [0x56c29c], 1
jne 0x4f0f94
mov ecx, dword [ebp - 0x64]
add dword [ebp - 0x60], ecx
cmp dword [ebx + 0x70c], 3
je 0x4f0faf
cmp dword [ebx + 0x70c], 2
jne 0x4f0fbd
cmp dword [0x56c29c], 2
jne 0x4f0fbd
mov eax, dword [ebp - 0x64]
mov ecx, 3
cdq
idiv ecx
add dword [ebp - 0x60], eax
mov esi, dword [esi + 0x40]
push dword [ebx + 0x924]
push dword [ebp + 0xc]
call sub.GDI32.dll_SelectObject
mov dword [ebp - 0xa4], eax
mov eax, dword [esi + 0x1c]
mov dword [ebp - 0x48], eax
mov edx, dword [0x5618dc]
mov dword [ebp - 0x4c], edx
mov ecx, dword [ebp - 0x48]
push dword [ecx*4 + 0x57f828]
push dword [ebp + 0xc]
call sub.GDI32.dll_SetTextColor
mov eax, dword [ebp - 0x4c]
push dword [eax*4 + 0x57f828]
push dword [ebp + 0xc]
call sub.GDI32.dll_SetBkColor
push 1
push dword [ebp + 0xc]
call sub.GDI32.dll_SetBkMode
mov dword [ebp - 0x90], eax
cmp dword [ebp - 0x50], 1
jne 0x4f102c
mov dword [ebp - 0xb8], 4
jmp 0x4f10c5
mov dword [ebp - 0xb8], 6
cmp dword [ebp - 0x60], 0
jl 0x4f107f
xor edx, edx
mov dword [ebp - 0xdc], edx
xor ecx, ecx
mov dword [ebp - 0xd8], ecx
mov eax, dword [ebp + 0x18]
mov dword [ebp - 0xd4], eax
mov edx, dword [ebp - 0x60]
add edx, dword [ebp - 0x64]
mov dword [ebp - 0xd0], edx
push 0
push 0
push 0x56cd5e
lea ecx, [ebp - 0xdc]
push ecx
push 6
push 0
push 0
push dword [ebp + 0xc]
call sub.GDI32.dll_ExtTextOutA
xor eax, eax
mov dword [ebp - 0xdc], eax
mov edx, dword [ebp + 0x1c]
dec edx
mov dword [ebp - 0xd8], edx
mov ecx, dword [ebp + 0x18]
mov dword [ebp - 0xd4], ecx
mov eax, dword [ebp - 0xd8]
inc eax
mov dword [ebp - 0xd0], eax
push 0
push 0
push 0x56cd62
lea edx, [ebp - 0xdc]
push edx
push 6
push 0
push 0
push dword [ebp + 0xc]
call sub.GDI32.dll_ExtTextOutA
xor ecx, ecx
mov dword [ebp - 0xa0], ecx
xor eax, eax
mov dword [ebp - 0x44], eax
mov dword [ebp - 0x40], eax
mov dword [ebp - 0x3c], eax
mov dword [ebp - 0x38], eax
mov dword [ebp - 0x34], eax
mov dword [ebp - 0x30], eax
xor edx, edx
mov dword [ebp - 0x80], edx
mov dword [ebp - 0x7c], edx
xor eax, eax
mov dword [ebp - 0x28], eax
mov dword [ebp - 0x1c], eax
mov dword [ebp - 0x24], eax
mov dword [ebp - 0x14], eax
push 0
push 0
push 0
push 0
lea edx, [ebp - 0xec]
push edx
call sub.USER32.dll_SetRect
mov ecx, dword [esi + 8]
mov dword [ebp - 0x68], ecx
xor eax, eax
mov dword [ebp - 0x70], eax
xor edx, edx
mov dword [ebp - 0x6c], edx
test esi, esi
je 0x4f2190
cmp dword [ebp - 0x6c], 0
je 0x4f11e0
xor ecx, ecx
mov dword [ebp - 0x6c], ecx
cmp dword [ebp - 0xa0], 0
je 0x4f1170
push dword [ebp - 0xa4]
push dword [ebp + 0xc]
call sub.GDI32.dll_SelectObject
push dword [ebp - 0xa0]
call sub.GDI32.dll_DeleteObject
xor eax, eax
mov dword [ebp - 0xa0], eax
push dword [ebx + 0x924]
push dword [ebp + 0xc]
call sub.GDI32.dll_SelectObject
mov dword [ebp - 0xa4], eax
xor edx, edx
mov dword [ebp - 0x44], edx
mov dword [ebp - 0x40], edx
mov dword [ebp - 0x3c], edx
mov dword [ebp - 0x38], edx
mov dword [ebp - 0x34], edx
mov dword [ebp - 0x30], edx
xor eax, eax
mov dword [ebp - 0x80], eax
mov dword [ebp - 0x7c], eax
mov edx, dword [esi + 0x1c]
mov dword [ebp - 0x48], edx
mov ecx, dword [0x5618dc]
mov dword [ebp - 0x4c], ecx
mov eax, dword [ebp - 0x48]
push dword [eax*4 + 0x57f828]
push dword [ebp + 0xc]
call sub.GDI32.dll_SetTextColor
mov edx, dword [ebp - 0x4c]
push dword [edx*4 + 0x57f828]
push dword [ebp + 0xc]
call sub.GDI32.dll_SetBkColor
xor ecx, ecx
mov dword [ebp - 0x70], ecx
cmp dword [ebp - 0x50], 1
jne 0x4f11d6
mov dword [ebp - 0xb8], 4
jmp 0x4f11e0
mov dword [ebp - 0xb8], 6
push dword [ebp + 0xc]
call fcn.004ef1fa
mov dword [ebp - 0x84], eax
mov dword [ebp - 0xdc], 2
mov eax, dword [ebp + 0x18]
mov dword [ebp - 0xd4], eax
mov edx, dword [ebp - 0x60]
mov dword [ebp - 0xd8], edx
mov ecx, dword [ebp - 0x60]
add ecx, dword [ebp - 0x64]
mov dword [ebp - 0xd0], ecx
xor eax, eax
mov dword [ebp - 0x20], eax
cmp dword [ebx + 0x70c], 1
je 0x4f1236
cmp dword [ebx + 0x70c], 2
jne 0x4f123e
cmp dword [0x56c29c], 1
jne 0x4f123e
mov edx, dword [ebp - 0x64]
mov dword [ebp - 0x20], edx
jmp 0x4f1278
cmp dword [ebx + 0x70c], 3
je 0x4f1259
cmp dword [ebx + 0x70c], 2
jne 0x4f1278
cmp dword [0x56c29c], 2
jne 0x4f1278
cmp dword [esi + 0x40], 0
je 0x4f1278
mov ecx, dword [esi + 0x40]
mov eax, dword [ecx + 8]
cmp eax, dword [ebp - 0x68]
je 0x4f1278
mov eax, dword [ebp - 0x64]
mov ecx, 3
cdq
idiv ecx
mov dword [ebp - 0x20], eax
cmp esi, dword [ebx + 0x69c]
jne 0x4f129e
cmp dword [esi + 0x20], 2
jne 0x4f129e
push dword [ebp - 0x50]
lea eax, [ebp - 0xdc]
push eax
push dword [ebp + 0xc]
push ebx
call fcn.0042f2f2
jmp 0x4f206e
xor edx, edx
mov edi, edx
mov dword [ebp - 0x8c], edx
mov dword [ebp - 0x88], edx
push dword [esi]
call fcn.0054e28c
pop ecx
mov dword [ebp - 0x5c], eax
mov dword [ebp - 0x2c], 1
xor eax, eax
mov dword [ebp - 0x58], eax
xor ecx, ecx
mov dword [ebp - 0x78], ecx
cmp edi, dword [ebp - 0x5c]
jge 0x4f1e6f
cmp dword [0x55f2bc], 0
je 0x4f12f9
push edi
push dword [esi]
call fcn.00559214
add esp, 8
cmp eax, 1
je case.0x4f130f.0
cmp eax, 2
je case.0x4f130f.0
mov eax, dword [esi]
xor edx, edx
mov dl, byte [eax + edi]
cmp edx, 0x1f
ja case.0x4f130f.0
mov dl, byte [edx + 0x4f1316]
jmp dword [edx*4 + 0x4f1336]
cmp dword [ebp - 0x7c], 0
je 0x4f1364
mov dword [ebp - 0x80], 1
jmp case.0x4f130f.0
cmp dword [ebp - 0x70], 0
jne 0x4f137a
mov dword [ebp - 0x70], 1
lea ecx, [edi - 1]
mov dword [ebp - 0x8c], ecx
mov eax, dword [ebp - 0x34]
cmp eax, 1
sbb edx, edx
neg edx
mov dword [ebp - 0x34], edx
mov dword [ebp - 0x78], edi
jmp 0x4f1e60
cmp dword [ebp - 0x7c], 0
je 0x4f13a1
mov dword [ebp - 0x80], 1
jmp case.0x4f130f.0
cmp dword [ebp - 0x70], 0
jne 0x4f13b7
mov dword [ebp - 0x70], 1
lea ecx, [edi - 1]
mov dword [ebp - 0x8c], ecx
mov eax, dword [ebp - 0x3c]
cmp eax, 1
sbb edx, edx
neg edx
mov dword [ebp - 0x3c], edx
mov dword [ebp - 0x78], edi
jmp 0x4f1e60
cmp dword [ebp - 0x7c], 0
je 0x4f13de
mov dword [ebp - 0x80], 1
jmp case.0x4f130f.0
cmp dword [ebp - 0x70], 0
jne 0x4f13f4
mov dword [ebp - 0x70], 1
lea ecx, [edi - 1]
mov dword [ebp - 0x8c], ecx
mov eax, dword [ebp - 0x44]
cmp eax, 1
sbb edx, edx
neg edx
mov dword [ebp - 0x44], edx
mov dword [ebp - 0x78], edi
jmp 0x4f1e60
cmp dword [ebp - 0x7c], 0
je 0x4f141b
mov dword [ebp - 0x80], 1
jmp case.0x4f130f.0
cmp dword [ebp - 0x70], 0
jne 0x4f1431
mov dword [ebp - 0x70], 1
lea ecx, [edi - 1]
mov dword [ebp - 0x8c], ecx
push dword [0x5618dc]
push dword [esi + 0x1c]
lea eax, [ebp - 0x4c]
push eax
lea edx, [ebp - 0x48]
push edx
mov ecx, dword [esi]
add ecx, edi
push ecx
call fcn.004ef010
add edi, eax
mov dword [ebp - 0x78], edi
jmp 0x4f1e60
cmp dword [ebp - 0x70], 0
jne 0x4f146c
mov dword [ebp - 0x70], 1
lea eax, [edi - 1]
mov dword [ebp - 0x8c], eax
cmp dword [ebp - 0x7c], 0
je 0x4f147b
mov dword [ebp - 0x80], 1
jmp case.0x4f130f.0
xor edx, edx
mov dword [ebp - 0x44], edx
mov dword [ebp - 0x3c], edx
mov dword [ebp - 0x34], edx
mov eax, dword [esi + 0x1c]
mov dword [ebp - 0x48], eax
mov ecx, dword [0x5618dc]
mov dword [ebp - 0x4c], ecx
mov dword [ebp - 0x78], edi
jmp 0x4f1e60
cmp dword [ebx + 0x6bc], 9
jne case.0x4f130f.0
cmp dword [ebp - 0x70], 0
je 0x4f14bb
cmp dword [ebp - 0x7c], 0
jne 0x4f14bb
mov dword [ebp - 0x80], 1
jmp case.0x4f130f.0
cmp dword [ebp - 0x70], 0
jne 0x4f14d1
mov dword [ebp - 0x70], 1
lea eax, [edi - 1]
mov dword [ebp - 0x8c], eax
inc dword [ebp - 0x7c]
mov dword [ebp - 0x78], edi
jmp 0x4f1e60
mov edx, dword [ebx]
cmp edx, dword [0x562c3c]
jne 0x4f16fd
cmp dword [ebp - 0x70], 0
je 0x4f1519
mov dword [ebp - 0x70], 3
mov ecx, dword [esi]
cmp byte [ecx + edi + 1], 0
jne 0x4f16fd
cmp edi, dword [ebp - 0x78]
jne 0x4f16fd
mov dword [ebp - 0x58], 1
jmp 0x4f16fd
cmp dword [ebp - 0x2c], 0
je 0x4f16fd
push esi
push edi
lea esi, [ebp - 0xdc]
lea edi, [ebp - 0xec]
mov ecx, 4
rep movsd dword es:[edi], dword [esi]
pop edi
pop esi
push 1
mov eax, dword [esi]
add eax, edi
push eax
push dword [ebp + 0xc]
call fcn.004ef215
sub eax, dword [ebp - 0x84]
add eax, dword [ebp - 0xec]
mov dword [ebp - 0xe4], eax
xor edx, edx
mov dword [ebp - 0x2c], edx
mov ecx, dword [ebp - 8]
cmp ecx, dword [ebp - 0x10]
jge 0x4f156d
mov eax, dword [ebp - 8]
jmp 0x4f1570
mov eax, dword [ebp - 0x10]
mov edx, dword [ebp - 0x64]
add edx, dword [ebp - 0x20]
sub eax, edx
cmp eax, dword [ebp - 0xe8]
jg 0x4f15ba
mov ecx, dword [ebp - 0x64]
add ecx, dword [ebp - 0x20]
mov eax, dword [ebp - 8]
cmp eax, dword [ebp - 0x10]
jle 0x4f1593
mov edx, dword [ebp - 8]
jmp 0x4f1596
mov edx, dword [ebp - 0x10]
add ecx, edx
cmp ecx, dword [ebp - 0xe0]
jl 0x4f15ba
mov dword [ebp - 0x2c], 1
mov dword [ebp - 0x70], 2
mov dword [ebp - 0x8c], edi
mov dword [ebp - 0x88], edi
cmp dword [ebp - 0x70], 0
je 0x4f16c9
cmp dword [ebp - 0x14], 0
jne 0x4f161c
mov eax, dword [ebp - 8]
cmp eax, dword [ebp - 0xe8]
jl 0x4f161c
mov ecx, dword [ebp - 0xe0]
add ecx, dword [ebp - 0x20]
cmp ecx, dword [ebp - 8]
jle 0x4f161c
mov eax, dword [ebp - 4]
cmp eax, dword [ebp - 0xec]
jl 0x4f161c
mov edx, dword [ebp - 4]
cmp edx, dword [ebp - 0xe4]
jge 0x4f161c
mov dword [ebp - 0x24], 1
xor ecx, ecx
mov dword [ebx + 0xd30], ecx
xor eax, eax
mov dword [ebx + 0xd38], eax
mov dword [ebx + 0xd2c], edi
mov dword [ebx + 0xd34], edi
cmp dword [ebp - 0x14], 0
jne 0x4f16fd
cmp dword [ebx + 0xd18], 0
je 0x4f16fd
mov edx, dword [ebp - 0x10]
cmp edx, dword [ebp - 0xe8]
jl 0x4f168c
mov ecx, dword [ebp - 0xe0]
add ecx, dword [ebp - 0x20]
cmp ecx, dword [ebp - 0x10]
jle 0x4f168c
mov eax, dword [ebp - 0xc]
cmp eax, dword [ebp - 0xec]
jl 0x4f168c
mov edx, dword [ebp - 0xc]
cmp edx, dword [ebp - 0xe4]
jge 0x4f168c
mov dword [ebp - 0x24], 1
mov dword [ebp - 0x28], 1
xor ecx, ecx
mov dword [ebx + 0xd30], ecx
xor eax, eax
mov dword [ebx + 0xd38], eax
mov dword [ebx + 0xd2c], edi
mov dword [ebx + 0xd34], edi
mov edx, dword [ebp - 0x10]
cmp edx, dword [ebp - 0xe8]
jge 0x4f16fd
mov dword [ebp - 0x24], 1
mov dword [ebp - 0x28], 1
xor ecx, ecx
mov dword [ebx + 0xd30], ecx
xor eax, eax
mov dword [ebx + 0xd38], eax
xor edx, edx
mov dword [ebx + 0xd2c], edx
mov dword [ebx + 0xd34], 0x3e7
jmp 0x4f16fd
cmp dword [ebp - 0x14], 1
jne 0x4f16fd
cmp dword [ebp - 0x1c], 0
jne 0x4f16fd
cmp dword [ebx + 0xd18], 0
je 0x4f16fd
mov ecx, 2
mov dword [ebp - 0x24], ecx
mov dword [ebp - 0x14], ecx
mov dword [ebx + 0xd38], 1
mov dword [ebx + 0xd34], 0x3e7
cmp dword [ebp - 0x88], 0xffffffff
jne 0x4f1712
mov eax, dword [ebp - 0x8c]
mov dword [ebp - 0x88], eax
cmp dword [ebp - 0x70], 0
je 0x4f1e60
cmp dword [ebp - 0x88], 0
jl 0x4f1936
cmp dword [ebp - 0x8c], 0
jl 0x4f1936
mov edx, dword [ebp - 0x8c]
cmp edx, dword [ebp - 0x88]
jl 0x4f1936
mov eax, dword [ebp - 0x8c]
sub eax, dword [ebp - 0x88]
inc eax
mov dword [ebp - 0x74], eax
cmp dword [ebp - 0x70], 2
jne 0x4f1848
mov edx, dword [ebp - 0x14]
cmp edx, dword [ebp - 0x24]
je 0x4f1848
cmp dword [ebp - 0x74], 1
jle 0x4f1842
dec dword [ebp - 0x74]
push dword [ebp - 0x74]
mov ecx, dword [esi]
add ecx, dword [ebp - 0x88]
push ecx
push dword [ebp + 0xc]
call fcn.004ef215
sub eax, dword [ebp - 0x84]
add eax, dword [ebp - 0xdc]
mov dword [ebp - 0xd4], eax
cmp dword [ebp - 0x40], 0
je 0x4f17fa
mov eax, dword [0x5618dc]
push dword [eax*4 + 0x57f828]
push dword [ebp + 0xc]
call sub.GDI32.dll_SetTextColor
mov edx, dword [0x5618f0]
push dword [edx*4 + 0x57f828]
push dword [ebp + 0xc]
call sub.GDI32.dll_SetBkColor
push 0
push dword [ebp - 0x74]
mov ecx, dword [esi]
add ecx, dword [ebp - 0x88]
push ecx
lea eax, [ebp - 0xdc]
push eax
push 6
push dword [ebp - 0x60]
push dword [ebp - 0xdc]
push dword [ebp + 0xc]
call sub.GDI32.dll_ExtTextOutA
jmp 0x4f1826
push 0
push dword [ebp - 0x74]
mov edx, dword [esi]
add edx, dword [ebp - 0x88]
push edx
lea ecx, [ebp - 0xdc]
push ecx
push dword [ebp - 0xb8]
push dword [ebp - 0x60]
push dword [ebp - 0xdc]
push dword [ebp + 0xc]
call sub.GDI32.dll_ExtTextOutA
mov eax, dword [ebp - 0xd4]
mov dword [ebp - 0xdc], eax
mov edx, dword [ebp - 0x74]
add dword [ebp - 0x88], edx
mov dword [ebp - 0x74], 1
mov ecx, dword [ebp - 0x24]
mov dword [ebp - 0x14], ecx
cmp dword [ebp - 0x74], 0
jle 0x4f1936
push dword [ebp - 0x74]
mov eax, dword [esi]
add eax, dword [ebp - 0x88]
push eax
push dword [ebp + 0xc]
call fcn.004ef215
sub eax, dword [ebp - 0x84]
add eax, dword [ebp - 0xdc]
mov dword [ebp - 0xd4], eax
cmp dword [ebp - 0x14], 1
jne 0x4f1892
mov edx, dword [ebp - 0x40]
cmp edx, 1
sbb ecx, ecx
neg ecx
mov dword [ebp - 0x40], ecx
mov dword [ebp - 0x18], 1
cmp dword [ebp - 0x40], 0
je 0x4f18eb
mov eax, dword [0x5618dc]
push dword [eax*4 + 0x57f828]
push dword [ebp + 0xc]
call sub.GDI32.dll_SetTextColor
mov edx, dword [0x5618f0]
push dword [edx*4 + 0x57f828]
push dword [ebp + 0xc]
call sub.GDI32.dll_SetBkColor
push 0
push dword [ebp - 0x74]
mov ecx, dword [esi]
add ecx, dword [ebp - 0x88]
push ecx
lea eax, [ebp - 0xdc]
push eax
push 6
push dword [ebp - 0x60]
push dword [ebp - 0xdc]
push dword [ebp + 0xc]
call sub.GDI32.dll_ExtTextOutA
jmp 0x4f1917
push 0
push dword [ebp - 0x74]
mov edx, dword [esi]
add edx, dword [ebp - 0x88]
push edx
lea ecx, [ebp - 0xdc]
push ecx
push dword [ebp - 0xb8]
push dword [ebp - 0x60]
push dword [ebp - 0xdc]
push dword [ebp + 0xc]
call sub.GDI32.dll_ExtTextOutA
cmp dword [ebp - 0x14], 1
jne 0x4f192a
mov eax, dword [ebp - 0x40]
cmp eax, 1
sbb edx, edx
neg edx
mov dword [ebp - 0x40], edx
mov ecx, dword [ebp - 0xd4]
mov dword [ebp - 0xdc], ecx
mov eax, dword [ebp - 0x48]
push dword [eax*4 + 0x57f828]
push dword [ebp + 0xc]
call sub.GDI32.dll_SetTextColor
mov edx, dword [ebp - 0x4c]
push dword [edx*4 + 0x57f828]
push dword [ebp + 0xc]
call sub.GDI32.dll_SetBkColor
cmp dword [ebp - 0x50], 1
jne 0x4f1981
mov ecx, dword [ebp - 0x4c]
cmp ecx, dword [0x5618dc]
je 0x4f1977
mov dword [ebp - 0xb8], 6
jmp 0x4f1981
mov dword [ebp - 0xb8], 4
cmp dword [ebp - 0x7c], 0
je 0x4f1b23
mov eax, dword [ebp - 0xdc]
mov dword [ebp - 0xd4], eax
cmp dword [ebp - 0x7c], 0
jle 0x4f19ba
push dword [ebp - 0xd4]
push 2
push ebx
call fcn.004ef1a7
mov dword [ebp - 0xd4], eax
dec dword [ebp - 0x7c]
cmp dword [ebp - 0x7c], 0
jg 0x4f199d
xor edx, edx
mov dword [ebp - 0x7c], edx
cmp dword [ebp - 0x14], 1
jne 0x4f19d9
mov ecx, dword [ebp - 0x40]
cmp ecx, 1
sbb eax, eax
neg eax
mov dword [ebp - 0x40], eax
mov dword [ebp - 0x18], 1
cmp dword [ebp - 0x40], 0
je 0x4f1a2e
mov edx, dword [0x5618dc]
push dword [edx*4 + 0x57f828]
push dword [ebp + 0xc]
call sub.GDI32.dll_SetTextColor
mov ecx, dword [0x5618f0]
push dword [ecx*4 + 0x57f828]
push dword [ebp + 0xc]
call sub.GDI32.dll_SetBkColor
push 0
push 0
push 0x56cd66
lea eax, [ebp - 0xdc]
push eax
push 6
push dword [ebp - 0x60]
push dword [ebp - 0xdc]
push dword [ebp + 0xc]
call sub.GDI32.dll_ExtTextOutA
jmp 0x4f1a55
push 0
push 0
push 0x56cd6a
lea edx, [ebp - 0xdc]
push edx
push dword [ebp - 0xb8]
push dword [ebp - 0x60]
push dword [ebp - 0xdc]
push dword [ebp + 0xc]
call sub.GDI32.dll_ExtTextOutA
cmp dword [ebp - 0x38], 0
je 0x4f1b04
cmp dword [ebp - 0x40], 0
je 0x4f1a83
mov ecx, dword [0x5618dc]
push dword [ecx*4 + 0x57f828]
push 1
push 0
call sub.GDI32.dll_CreatePen
mov dword [ebp - 0xc8], eax
jmp 0x4f1a9c
mov eax, dword [ebp - 0x48]
push dword [eax*4 + 0x57f828]
push 1
push 0
call sub.GDI32.dll_CreatePen
mov dword [ebp - 0xc8], eax
cmp dword [ebp - 0xc8], 0
je 0x4f1b04
push dword [ebp - 0xc8]
push dword [ebp + 0xc]
call sub.GDI32.dll_SelectObject
mov dword [ebp - 0xcc], eax
push 0
mov edx, dword [ebp - 0x60]
add edx, dword [ebp - 0x64]
add edx, 0xfffffffe
push edx
push dword [ebp - 0xdc]
push dword [ebp + 0xc]
call sub.GDI32.dll_MoveToEx
mov ecx, dword [ebp - 0x60]
add ecx, dword [ebp - 0x64]
add ecx, 0xfffffffe
push ecx
push dword [ebp - 0xd4]
push dword [ebp + 0xc]
call sub.GDI32.dll_LineTo
push dword [ebp - 0xcc]
push dword [ebp + 0xc]
call sub.GDI32.dll_SelectObject
push dword [ebp - 0xc8]
call sub.GDI32.dll_DeleteObject
cmp dword [ebp - 0x14], 1
jne 0x4f1b17
mov eax, dword [ebp - 0x40]
cmp eax, 1
sbb edx, edx
neg edx
mov dword [ebp - 0x40], edx
mov ecx, dword [ebp - 0xd4]
mov dword [ebp - 0xdc], ecx
mov eax, dword [ebp - 0x40]
cmp eax, dword [ebp - 0x44]
je 0x4f1b31
mov edx, dword [ebp - 0x44]
mov dword [ebp - 0x40], edx
mov ecx, dword [ebp - 0x30]
cmp ecx, dword [ebp - 0x34]
jne 0x4f1b45
mov eax, dword [ebp - 0x38]
cmp eax, dword [ebp - 0x3c]
je 0x4f1c43
push dword [ebp - 0xa4]
push dword [ebp + 0xc]
call sub.GDI32.dll_SelectObject
cmp dword [ebp - 0xa0], 0
je 0x4f1b67
push dword [ebp - 0xa0]
call sub.GDI32.dll_DeleteObject
mov edx, dword [ebp - 0x34]
mov dword [ebp - 0x30], edx
mov ecx, dword [ebp - 0x3c]
mov dword [ebp - 0x38], ecx
cmp dword [ebp - 0x30], 0
jne 0x4f1b83
cmp dword [ebp - 0x38], 0
je 0x4f1c19
mov eax, dword [ebx + 0x990]
mov dword [ebp - 0x54], eax
cmp dword [ebp - 0x30], 0
je 0x4f1bab
cmp dword [ebp - 0x54], 0x190
jle 0x4f1ba4
mov dword [ebp - 0x54], 0x190
jmp 0x4f1bab
mov dword [ebp - 0x54], 0x2bc
lea edx, [ebx + 0x928]
push edx
push 0
push 0
push 0
push 0
push dword [ebx + 0x994]
push 0
push dword [ebp - 0x38]
push 0
push dword [ebp - 0x54]
push 0
push 0
push 0
mov ecx, dword [ebx + 0x98c]
neg ecx
push ecx
call sub.GDI32.dll_CreateFontA
mov dword [ebp - 0xa0], eax
cmp dword [ebp - 0xa0], 0
je 0x4f1c03
push dword [ebp - 0xa0]
push dword [ebp + 0xc]
call sub.GDI32.dll_SelectObject
mov dword [ebp - 0xa4], eax
jmp 0x4f1c35
push dword [ebx + 0x924]
push dword [ebp + 0xc]
call sub.GDI32.dll_SelectObject
mov dword [ebp - 0xa4], eax
jmp 0x4f1c35
xor eax, eax
mov dword [ebp - 0xa0], eax
push dword [ebx + 0x924]
push dword [ebp + 0xc]
call sub.GDI32.dll_SelectObject
mov dword [ebp - 0xa4], eax
push dword [ebp + 0xc]
call fcn.004ef1fa
mov dword [ebp - 0x84], eax
mov edx, dword [ebp - 0x24]
mov dword [ebp - 0x14], edx
mov ecx, dword [ebp - 0x28]
mov dword [ebp - 0x1c], ecx
mov dword [ebp - 0x88], edi
xor eax, eax
mov dword [ebp - 0x8c], eax
cmp dword [ebp - 0x58], 0
jne 0x4f1c6d
cmp dword [ebp - 0x70], 2
jne 0x4f1e2c
lea edx, [edi + 1]
mov dword [ebp - 0x88], edx
cmp dword [ebp - 0x14], 0
jne 0x4f1cee
cmp dword [ebx + 0xd18], 0
je 0x4f1cee
mov ecx, dword [ebp - 0x10]
cmp ecx, dword [ebp - 0xe8]
jl 0x4f1cee
mov eax, dword [ebp - 0xe0]
add eax, dword [ebp - 0x20]
cmp eax, dword [ebp - 0x10]
jle 0x4f1cee
mov edx, dword [esi]
cmp byte [edx + edi + 1], 0
jne 0x4f1cee
mov ecx, dword [ebp - 0xc]
cmp ecx, dword [ebp - 0xe4]
jl 0x4f1cee
mov eax, 1
mov dword [ebp - 0x28], eax
mov dword [ebp - 0x1c], eax
mov edx, 1
mov dword [ebp - 0x24], edx
mov dword [ebp - 0x14], edx
mov dword [ebx + 0xd30], 0xffffffff
mov dword [ebx + 0xd38], 0xffffffff
xor eax, eax
mov dword [ebx + 0xd2c], eax
mov dword [ebx + 0xd34], 0x3e7
cmp dword [ebp - 0x14], 1
jne 0x4f1e2c
cmp dword [ebp - 0x1c], 0
je 0x4f1d5b
mov ecx, dword [ebp - 8]
cmp ecx, dword [ebp - 0xe8]
jl 0x4f1e2c
mov eax, dword [ebp - 0xe0]
add eax, dword [ebp - 0x20]
cmp eax, dword [ebp - 8]
jle 0x4f1e2c
mov edx, dword [ebp - 4]
cmp edx, dword [ebp - 0xec]
jl 0x4f1e2c
mov ecx, dword [ebp - 4]
cmp ecx, dword [ebp - 0xe4]
jge 0x4f1e2c
mov eax, 2
mov dword [ebp - 0x24], eax
mov dword [ebp - 0x14], eax
xor edx, edx
mov dword [ebx + 0xd38], edx
mov dword [ebx + 0xd34], edi
jmp 0x4f1e2c
mov ecx, dword [ebp - 0x10]
cmp ecx, dword [ebp - 0xe8]
jl 0x4f1dd3
mov eax, dword [ebp - 0xe0]
add eax, dword [ebp - 0x20]
cmp eax, dword [ebp - 0x10]
jle 0x4f1dd3
mov edx, dword [ebp - 0xc]
cmp edx, dword [ebp - 0xec]
jl 0x4f1da5
mov ecx, dword [ebp - 0xc]
cmp ecx, dword [ebp - 0xe4]
jge 0x4f1da5
mov eax, 2
mov dword [ebp - 0x24], eax
mov dword [ebp - 0x14], eax
xor edx, edx
mov dword [ebx + 0xd38], edx
mov dword [ebx + 0xd34], edi
jmp 0x4f1de6
mov ecx, dword [ebp - 0xc]
cmp ecx, dword [ebp - 4]
jge 0x4f1de6
mov eax, dword [ebp - 8]
cmp eax, dword [ebp - 0xe8]
jl 0x4f1de6
mov edx, dword [ebp - 0xe0]
add edx, dword [ebp - 0x20]
cmp edx, dword [ebp - 8]
jle 0x4f1de6
mov ecx, 2
mov dword [ebp - 0x24], ecx
mov dword [ebp - 0x14], ecx
jmp 0x4f1de6
mov eax, dword [ebp - 0x10]
cmp eax, dword [ebp - 8]
jge 0x4f1de6
mov edx, 2
mov dword [ebp - 0x24], edx
mov dword [ebp - 0x14], edx
mov eax, dword [esi]
cmp byte [eax + edi + 1], 0
jne 0x4f1e2c
mov ecx, dword [ebp - 0x10]
cmp ecx, dword [ebp - 0xe8]
jl 0x4f1e2c
mov eax, dword [ebp - 0xe0]
add eax, dword [ebp - 0x20]
cmp eax, dword [ebp - 0x10]
jle 0x4f1e2c
mov edx, dword [ebp - 0xc]
cmp edx, dword [ebp - 0xe4]
jl 0x4f1e2c
mov ecx, 2
mov dword [ebp - 0x24], ecx
mov dword [ebp - 0x14], ecx
xor eax, eax
mov dword [ebx + 0xd38], eax
mov dword [ebx + 0xd34], edi
xor edx, edx
mov dword [ebp - 0x58], edx
cmp dword [ebp - 0x70], 3
jne 0x4f1e41
xor eax, eax
mov dword [ebp - 0x70], eax
jmp 0x4f12ca
xor edx, edx
mov dword [ebp - 0x70], edx
cmp dword [ebp - 0x80], 0
je 0x4f1e60
xor ecx, ecx
mov dword [ebp - 0x80], ecx
mov dword [ebp - 0x88], 0xffffffff
jmp 0x4f12ca
cmp edi, dword [ebp - 0x5c]
jge 0x4f1e6f
inc edi
cmp edi, dword [ebp - 0x5c]
jl 0x4f12d3
cmp dword [ebp - 0x70], 0
je 0x4f1e97
mov eax, dword [ebx]
cmp eax, dword [0x562c3c]
jne case.0x4f130f.0
mov edx, dword [ebp - 0x78]
inc edx
cmp edi, edx
jne case.0x4f130f.0
mov dword [ebp - 0x78], edi
jmp case.0x4f130f.0
cmp dword [ebp - 0x88], 0xffffffff
jne 0x4f1eac
mov ecx, dword [ebp - 0x8c]
mov dword [ebp - 0x88], ecx
mov eax, dword [ebp - 0x8c]
cmp eax, dword [ebp - 0x88]
jle 0x4f1ec0
mov edi, dword [ebp - 0x8c]
cmp dword [ebp - 0x88], 0
jl 0x4f1fe0
cmp edi, dword [ebp - 0x88]
jle 0x4f1fe0
mov eax, edi
sub eax, dword [ebp - 0x88]
push eax
mov edx, dword [esi]
add edx, dword [ebp - 0x88]
push edx
push dword [ebp + 0xc]
call fcn.004ef215
sub eax, dword [ebp - 0x84]
add eax, dword [ebp - 0xdc]
mov dword [ebp - 0xd4], eax
cmp dword [ebp - 0x14], 1
jne 0x4f1f1f
mov ecx, dword [ebp - 0x40]
cmp ecx, 1
sbb eax, eax
neg eax
mov dword [ebp - 0x40], eax
mov dword [ebp - 0x18], 1
cmp dword [ebp - 0x40], 0
je 0x4f1f91
mov edx, dword [0x5618dc]
push dword [edx*4 + 0x57f828]
push dword [ebp + 0xc]
call sub.GDI32.dll_SetTextColor
mov dword [ebp - 0xb4], eax
mov ecx, dword [0x5618f0]
push dword [ecx*4 + 0x57f828]
push dword [ebp + 0xc]
call sub.GDI32.dll_SetBkColor
push 0
sub edi, dword [ebp - 0x88]
push edi
mov eax, dword [esi]
add eax, dword [ebp - 0x88]
push eax
lea edx, [ebp - 0xdc]
push edx
push 6
push dword [ebp - 0x60]
push dword [ebp - 0xdc]
push dword [ebp + 0xc]
call sub.GDI32.dll_ExtTextOutA
push dword [ebp - 0xb4]
push dword [ebp + 0xc]
call sub.GDI32.dll_SetTextColor
jmp 0x4f1fc1
push 0
sub edi, dword [ebp - 0x88]
push edi
mov ecx, dword [esi]
add ecx, dword [ebp - 0x88]
push ecx
lea eax, [ebp - 0xdc]
push eax
push dword [ebp - 0xb8]
push dword [ebp - 0x60]
push dword [ebp - 0xdc]
push dword [ebp + 0xc]
call sub.GDI32.dll_ExtTextOutA
cmp dword [ebp - 0x14], 1
jne 0x4f1fd4
mov edx, dword [ebp - 0x40]
cmp edx, 1
sbb ecx, ecx
neg ecx
mov dword [ebp - 0x40], ecx
mov eax, dword [ebp - 0xd4]
mov dword [ebp - 0xdc], eax
cmp dword [ebp - 0x50], 1
je 0x4f206e
mov edx, dword [0x5618dc]
push dword [edx*4 + 0x57f828]
push dword [ebp + 0xc]
call sub.GDI32.dll_SetBkColor
mov ecx, dword [ebp + 0x18]
mov dword [ebp - 0xd4], ecx
push 0
push 0
push 0x56cd6e
lea eax, [ebp - 0xdc]
push eax
push 6
push dword [ebp - 0x60]
push dword [ebp - 0xdc]
push dword [ebp + 0xc]
call sub.GDI32.dll_ExtTextOutA
cmp esi, dword [ebx + 0x69c]
jne 0x4f2039
cmp dword [esi + 0x20], 2
je 0x4f206e
xor edx, edx
mov dword [ebp - 0xdc], edx
mov dword [ebp - 0xd4], 2
push 0
push 0
push 0x56cd72
lea ecx, [ebp - 0xdc]
push ecx
push 6
push dword [ebp - 0x60]
push dword [ebp - 0xdc]
push dword [ebp + 0xc]
call sub.GDI32.dll_ExtTextOutA
cmp esi, dword [ebx + 0x69c]
jne 0x4f20a9
cmp dword [0x56f020], 0
je 0x4f20a9
push dword [ebx]
call sub.USER32.dll_IsIconic
test eax, eax
jne 0x4f20a9
push dword [ebx]
call sub.USER32.dll_IsWindowVisible
test eax, eax
je 0x4f20a9
mov eax, dword [ebx]
cmp eax, dword [0x56f024]
jne 0x4f20a9
mov dword [ebx + 0x6a4], 1
cmp esi, dword [ebx + 0x6ac]
jne 0x4f20b9
xor edx, edx
mov dword [ebx + 0x6ac], edx
mov esi, dword [esi + 0x40]
test esi, esi
je 0x4f2190
mov ecx, dword [ebp - 0x64]
add dword [ebp - 0x60], ecx
mov eax, dword [esi + 8]
cmp eax, dword [ebp - 0x68]
je 0x4f20df
mov edx, dword [esi + 8]
mov dword [ebp - 0x68], edx
mov dword [ebp - 0x6c], 1
cmp dword [ebp - 0x20], 0
je 0x4f214a
cmp dword [ebp - 0x50], 1
je 0x4f2144
mov ecx, dword [ebp + 0x10]
mov dword [ebp - 0xdc], ecx
mov eax, dword [ebp + 0x18]
mov dword [ebp - 0xd4], eax
mov edx, dword [ebp - 0x60]
mov dword [ebp - 0xd8], edx
mov ecx, dword [ebp - 0x60]
add ecx, dword [ebp - 0x20]
mov dword [ebp - 0xd0], ecx
mov eax, dword [0x5618dc]
push dword [eax*4 + 0x57f828]
push dword [ebp + 0xc]
call sub.GDI32.dll_SetBkColor
push 0
push 0
push 0x56cd76
lea edx, [ebp - 0xdc]
push edx
push 6
push 0
push 0
push dword [ebp + 0xc]
call sub.GDI32.dll_ExtTextOutA
mov ecx, dword [ebp - 0x20]
add dword [ebp - 0x60], ecx
mov eax, dword [ebp - 0x64]
inc eax
mov edx, dword [ebp + 0x1c]
sub edx, eax
cmp edx, dword [ebp - 0x60]
jl 0x4f2190
inc dword [ebx + 0xd30]
inc dword [ebx + 0xd38]
mov ecx, dword [ebp - 0x48]
push dword [ecx*4 + 0x57f828]
push dword [ebp + 0xc]
call sub.GDI32.dll_SetTextColor
mov eax, dword [ebp - 0x4c]
push dword [eax*4 + 0x57f828]
push dword [ebp + 0xc]
call sub.GDI32.dll_SetBkColor
test esi, esi
jne 0x4f1123
push dword [ebp - 0x90]
push dword [ebp + 0xc]
call sub.GDI32.dll_SetBkMode
push dword [ebp - 0xa4]
push dword [ebp + 0xc]
call sub.GDI32.dll_SelectObject
cmp dword [ebp - 0xa0], 0
je 0x4f21c0
push dword [ebp - 0xa0]
call sub.GDI32.dll_DeleteObject
cmp dword [ebp - 0x50], 0
je 0x4f220b
push 0xcc0020
push 0
push 0
push dword [ebp + 0xc]
push dword [ebp + 0x1c]
mov edx, dword [ebp + 0x18]
sub edx, dword [ebp + 0x10]
push edx
push 0
push dword [ebp + 0x10]
push dword [ebp - 0xa8]
call sub.GDI32.dll_BitBlt
push dword [ebp - 0x98]
push dword [ebp + 0xc]
call sub.GDI32.dll_SelectObject
push dword [ebp + 0xc]
call sub.GDI32.dll_DeleteDC
mov ecx, dword [ebp - 0xa8]
mov dword [ebp + 0xc], ecx
cmp dword [ebp - 0x94], 0
je 0x4f2222
push dword [ebp + 0xc]
push dword [ebx + 0x810]
call sub.USER32.dll_ReleaseDC
cmp dword [ebx + 0x91c], 0
je 0x4f223e
push dword [ebx + 0x91c]
call sub.GDI32.dll_DeleteObject
xor eax, eax
mov dword [ebx + 0x91c], eax
xor edx, edx
mov dword [ebx + 0x920], edx
mov ecx, dword [ebx]
cmp ecx, dword [0x562c3c]
jne 0x4f227f
cmp dword [ebp - 0x18], 0
je 0x4f2274
mov dword [ebx + 0xd18], 1
push 0x7f01
push 0
call sub.USER32.dll_LoadCursorA
push eax
call sub.USER32.dll_SetCursor
jmp 0x4f227f
push dword [0x562c38]
call fcn.0045a8e6
xor eax, eax
mov dword [0x56cd4c], eax
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 0x18