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

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0x17c
push ebx
push esi
mov esi, ecx
mov ecx, dword [0x59c6b4]
xor eax, eax
cmp ecx, eax
push edi
mov dword [esp + 0x10], edx
jne 0x4fb5b9
mov ecx, dword [esi + 0xd68]
mov edx, dword [esi + 0xd6c]
push 0xffffffffffffffff
push 0xffffffffffffffff
mov dword [esp + 0x58], eax
mov dword [esp + 0xbc], eax
mov dword [esp + 0xe0], eax
mov dword [esp + 0xdc], eax
mov dword [esp + 0xcc], eax
mov eax, dword [esi + 0xd64]
push 0xffffffffffffffff
mov dword [esp + 0x88], ecx
mov dword [esp + 0xdc], eax
mov eax, dword [esi + 0xd70]
push 0xffffffffffffffff
lea ecx, [esi + 0xd74]
push ecx
mov dword [0x59c6b4], 1
mov dword [esp + 0xd4], edx
mov dword [esp + 0xbc], eax
call dword [sym.imp.USER32.dll_SetRect]
mov edx, dword [esi]
push edx
call dword [sym.imp.USER32.dll_IsIconic]
test eax, eax
jne case.0x4f9ad9.4
mov eax, dword [esi]
push eax
call dword [sym.imp.USER32.dll_IsWindowVisible]
test eax, eax
je case.0x4f9ad9.4
mov ecx, dword [esi]
call fcn.00536a40
test eax, eax
je 0x4f9ac7
mov ecx, dword [0x5a1b04]
push ecx
call dword [sym.imp.USER32.dll_GetTopWindow]
mov edi, eax
push edi
call dword [sym.imp.USER32.dll_IsZoomed]
test eax, eax
je 0x4f9ac7
cmp dword [esi], edi
jne case.0x4f9ad9.4
mov eax, dword [esi + 0x700]
add eax, 0xfffffffd
cmp eax, 6
ja case.0x4f9ad9.5
jmp dword [eax*4 + 0x4fb5c4]
cmp dword [esi + 0x704], 1
mov ecx, dword [esi]
jne 0x4f9b11
call fcn.0050d190
test eax, eax
je case.0x4f9ad9.4
push 0
push 1
push 1
push 1
mov edx, 1
mov ecx, eax
call fcn.00529eb0
jmp case.0x4f9ad9.4
call fcn.0048a790
test eax, eax
je case.0x4f9ad9.4
push 0
push 1
push 1
push 1
mov edx, 1
mov ecx, eax
call fcn.0052a6c0
jmp case.0x4f9ad9.4
cmp dword [esi + 0x704], 1
je case.0x4f9ad9.4
mov eax, dword [esi + 0x73c]
test eax, eax
je case.0x4f9ad9.5
mov ecx, esi
call fcn.0046e790
jmp case.0x4f9ad9.4
mov eax, dword [esi + 0x85c]
test eax, eax
je case.0x4f9ad9.4
mov edi, dword [esp + 0x10]
test edi, edi
jne 0x4f9b90
push eax
call dword [sym.imp.USER32.dll_GetDC]
test eax, eax
mov dword [esp + 0x10], eax
je case.0x4f9ad9.4
mov dword [esp + 0xd4], 1
mov edi, eax
mov edx, dword [esi]
cmp edx, dword [0x597b80]
jne 0x4f9ba4
mov ecx, 1
call fcn.004939a0
mov eax, dword [esi + 0x940]
test eax, eax
jne 0x4f9bca
mov ecx, dword [esi]
cmp ecx, dword [0x59426c]
je 0x4f9bc6
mov ecx, dword [esi + 0x968]
test ecx, ecx
je 0x4f9d09
test eax, eax
je 0x4f9bd3
mov ecx, dword [esi]
xor edx, edx
call fcn.00419c50
mov ebx, dword [sym.imp.GDI32.dll_CreateCompatibleDC]
push edi
mov dword [esp + 0xb8], edi
call ebx
mov edi, eax
test edi, edi
mov dword [esp + 0x10], edi
je 0x4f9cfe
mov edx, dword [esp + 0xb4]
push edx
call ebx
mov ebx, eax
test ebx, ebx
je 0x4f9cf7
mov eax, dword [esi + 0x964]
test eax, eax
jne 0x4f9c2b
mov eax, dword [ebp + 0x14]
mov ecx, dword [ebp + 0x10]
mov edx, dword [esp + 0xb4]
push eax
push ecx
push edx
call dword [sym.imp.GDI32.dll_CreateCompatibleBitmap]
mov dword [esi + 0x964], eax
mov eax, dword [esi + 0x964]
test eax, eax
je 0x4f9ce8
push eax
push edi
call dword [sym.imp.GDI32.dll_SelectObject]
mov dword [esp + 0xd8], eax
mov eax, dword [esi + 0x940]
test eax, eax
je 0x4f9c97
push eax
push ebx
call dword [sym.imp.GDI32.dll_SelectObject]
mov ecx, dword [ebp + 0x10]
push 0xcc0020
push 0
push 0
push ebx
mov dword [esp + 0x90], eax
mov eax, dword [ebp + 0x14]
push eax
push ecx
push 0
push 0
push edi
call dword [sym.imp.GDI32.dll_BitBlt]
mov edx, dword [esp + 0x80]
push edx
push ebx
call dword [sym.imp.GDI32.dll_SelectObject]
mov dword [esp + 0x50], 1
jmp 0x4f9ce8
mov ecx, dword [0x594088]
call fcn.00431e50
mov eax, dword [eax*4 + 0x593350]
push eax
push edi
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 0x574b10
mov dword [esp + 0x44], ecx
lea ecx, [esp + 0x3c]
push ecx
push 6
push eax
push eax
push edi
mov dword [esp + 0x50], eax
mov dword [esp + 0x54], eax
mov dword [esp + 0x5c], edx
call dword [sym.imp.GDI32.dll_ExtTextOutA]
mov dword [esp + 0x50], 2
push ebx
call dword [sym.imp.GDI32.dll_DeleteDC]
mov eax, dword [esp + 0x50]
test eax, eax
jne 0x4f9d09
push edi
call dword [sym.imp.GDI32.dll_DeleteDC]
mov edi, dword [esp + 0xb4]
mov dword [esp + 0x10], edi
mov eax, dword [esi + 0x6c8]
test eax, eax
je 0x4f9e1c
mov eax, dword [esi + 0x6f8]
mov ecx, dword [esi + 0x6fc]
mov edx, dword [esi + 0x9e4]
sub eax, ecx
mov dword [esp + 0x54], edx
mov dword [esp + 0x94], eax
jmp 0x4f9d40
test eax, eax
mov ecx, dword [esi + 0x6c8]
mov ebx, dword [ecx + 0x44]
mov dword [esp + 0x14], ebx
jle 0x4f9d61
cmp ebx, ecx
je 0x4f9d5d
mov ebx, dword [ebx + 0x44]
dec eax
test eax, eax
jg 0x4f9d51
mov dword [esp + 0x14], ebx
test ebx, ebx
je 0x4f9e1c
mov eax, dword [0x59426c]
cmp dword [esi], eax
je 0x4f9e71
mov eax, dword [esi + 0x700]
test eax, eax
je 0x4f9d93
cmp eax, 1
je 0x4f9d93
cmp eax, 2
je 0x4f9d93
cmp eax, 9
jne 0x4f9e71
mov edx, dword [ebp + 0x14]
mov ecx, dword [esp + 0x54]
mov eax, edx
sub eax, ecx
mov ecx, dword [ebx + 0x14]
dec eax
cmp ecx, dword [ebp + 0x10]
mov dword [esp + 0x80], ebx
jne 0x4f9dde
mov edi, edi
mov ecx, dword [esi + 0x9e0]
cmp dword [ebx + 0x18], ecx
jne 0x4f9dde
cmp ebx, dword [esi + 0x6c8]
je 0x4f9dc6
mov ebx, dword [ebx + 0x44]
mov ecx, dword [esp + 0x54]
sub eax, ecx
neg ecx
cmp eax, ecx
jl 0x4f9e64
mov ecx, dword [ebx + 0x14]
cmp ecx, dword [ebp + 0x10]
je 0x4f9db0
mov edx, dword [ebp + 0x10]
push edx
push ebx
mov edx, esi
mov ecx, edi
call fcn.004f9170
test eax, eax
je 0x4f9e61
mov eax, dword [esp + 0x94]
test eax, eax
mov ecx, esi
jne 0x4f9e04
mov edx, 1
jmp 0x4f9e06
xor edx, edx
call fcn.005385e0
mov eax, dword [esi + 0x6f8]
sub eax, dword [esi + 0x6fc]
jmp 0x4f9d40
mov eax, dword [esp + 0x50]
test eax, eax
jne 0x4fb4ec
mov ecx, dword [0x594088]
call fcn.00431e50
mov eax, dword [eax*4 + 0x593350]
push eax
push edi
call dword [sym.imp.GDI32.dll_SetBkColor]
push 0
push 0
push 0x574b10
lea ecx, [ebp + 8]
push ecx
push 6
push 0
push 0
push edi
call dword [sym.imp.GDI32.dll_ExtTextOutA]
jmp 0x4fb532
mov edx, dword [ebp + 0x14]
mov ebx, dword [esp + 0x80]
mov dword [esp + 0x14], ebx
jmp 0x4f9e74
mov edx, dword [ebp + 0x14]
mov eax, dword [ebx + 8]
mov ecx, dword [esp + 0x54]
sub edx, ecx
mov dword [esp + 0x9c], eax
mov eax, dword [esi + 0x6c8]
dec edx
cmp ebx, eax
mov dword [esp + 0x18], edx
je 0x4f9f70
mov edx, dword [esi + 0x750]
mov dword [esp + 0x6c], edx
jmp 0x4f9ea7
mov edx, dword [esp + 0x6c]
mov eax, dword [esp + 0x18]
sub eax, ecx
cmp edx, 1
mov dword [esp + 0x18], eax
je 0x4f9ec4
cmp edx, 2
jne 0x4f9ec8
cmp dword [0x59b4dc], 1
jne 0x4f9ec8
sub dword [esp + 0x18], ecx
mov ebx, dword [ebx + 0x44]
mov edx, dword [ebx + 8]
cmp edx, dword [esp + 0x9c]
je 0x4f9f17
mov eax, dword [esp + 0x6c]
cmp eax, 3
mov dword [esp + 0x9c], edx
je 0x4f9ef5
cmp eax, 2
jne 0x4f9f0b
cmp dword [0x59b4dc], 2
jne 0x4f9f0b
mov eax, 0x55555555
imul ecx
sub edx, ecx
sar edx, 1
mov eax, edx
shr eax, 0x1f
add edx, eax
add dword [esp + 0x18], edx
mov eax, dword [esp + 0x18]
mov edx, ecx
neg edx
cmp eax, edx
jl 0x4f9f21
cmp ebx, dword [esi + 0x6c8]
jne 0x4f9ea3
jmp 0x4f9f6c
add dword [esp + 0x18], ecx
mov eax, dword [esp + 0x6c]
cmp eax, 1
mov dword [esp + 0x14], ebx
je 0x4f9f40
cmp eax, 2
jne 0x4f9f44
cmp dword [0x59b4dc], 1
jne 0x4f9f44
add dword [esp + 0x18], ecx
cmp eax, 3
je 0x4f9f57
cmp eax, 2
jne 0x4f9f69
cmp dword [0x59b4dc], 2
jne 0x4f9f69
mov eax, 0x55555556
imul ecx
mov eax, edx
shr eax, 0x1f
add edx, eax
add dword [esp + 0x18], edx
mov ebx, dword [ebx + 0x40]
mov dword [esp + 0x14], ebx
mov ecx, dword [esi + 0x96c]
push ecx
push edi
call dword [sym.imp.GDI32.dll_SelectObject]
mov ecx, dword [ebx + 0x1c]
mov dword [esp + 0x74], eax
call fcn.00431e50
mov ecx, dword [0x594088]
mov dword [esp + 0x64], eax
call fcn.00431e50
mov edx, dword [esp + 0x64]
mov dword [esp + 0x78], eax
mov eax, dword [edx*4 + 0x593350]
push eax
push edi
call dword [sym.imp.GDI32.dll_SetTextColor]
mov ecx, dword [esp + 0x78]
mov edx, dword [ecx*4 + 0x593350]
push edx
push edi
call dword [sym.imp.GDI32.dll_SetBkColor]
push 1
push edi
call dword [sym.imp.GDI32.dll_SetBkMode]
mov dword [esp + 0xdc], eax
cmp dword [esp + 0x50], 1
jne 0x4f9fea
mov dword [esp + 0xa0], 4
jmp 0x4fa06a
mov eax, dword [esp + 0x18]
test eax, eax
mov dword [esp + 0xa0], 6
jl 0x4fa033
mov ecx, dword [ebp + 0x10]
mov edx, dword [esp + 0x18]
xor eax, eax
push eax
push eax
mov dword [esp + 0x40], ecx
mov ecx, dword [esp + 0x5c]
add edx, ecx
push 0x574b10
mov dword [esp + 0x48], edx
lea edx, [esp + 0x3c]
push edx
push 6
push eax
push eax
push edi
mov dword [esp + 0x50], eax
mov dword [esp + 0x54], eax
call dword [sym.imp.GDI32.dll_ExtTextOutA]
mov eax, dword [ebp + 0x14]
mov ecx, dword [ebp + 0x10]
push 0
push 0
push 0x574b10
lea edx, [esp + 0x3c]
push edx
push 6
dec eax
push 0
mov dword [esp + 0x4c], eax
push 0
inc eax
push edi
mov dword [esp + 0x50], 0
mov dword [esp + 0x58], ecx
mov dword [esp + 0x5c], eax
call dword [sym.imp.GDI32.dll_ExtTextOutA]
xor eax, eax
push eax
push eax
push eax
push eax
mov dword [esp + 0x80], eax
mov dword [esp + 0xb4], eax
mov dword [esp + 0x38], eax
mov dword [esp + 0xa8], eax
mov dword [esp + 0xcc], eax
mov dword [esp + 0xc8], eax
mov dword [esp + 0xdc], eax
mov dword [esp + 0x70], eax
mov dword [esp + 0x68], eax
mov dword [esp + 0x7c], eax
mov dword [esp + 0x78], eax
mov dword [esp + 0x5c], eax
mov dword [esp + 0x3c], eax
lea eax, [esp + 0x94]
push eax
call dword [sym.imp.USER32.dll_SetRect]
mov ecx, dword [ebx + 8]
xor eax, eax
mov dword [esp + 0x9c], ecx
mov dword [esp + 0x20], eax
mov dword [esp + 0x80], eax
jmp 0x4fa0e0
mov eax, dword [esp + 0x80]
test eax, eax
je 0x4fa1c4
mov eax, dword [esp + 0x70]
test eax, eax
mov dword [esp + 0x80], 0
je 0x4fa133
mov edx, dword [esp + 0x74]
push edx
push edi
call dword [sym.imp.GDI32.dll_SelectObject]
mov eax, dword [esp + 0x70]
push eax
call dword [sym.imp.GDI32.dll_DeleteObject]
mov ecx, dword [esi + 0x96c]
push ecx
push edi
mov dword [esp + 0x78], 0
call dword [sym.imp.GDI32.dll_SelectObject]
mov dword [esp + 0x74], eax
mov ecx, dword [ebx + 0x1c]
xor eax, eax
mov dword [esp + 0xa4], eax
mov dword [esp + 0x28], eax
mov dword [esp + 0x98], eax
mov dword [esp + 0xbc], eax
mov dword [esp + 0xb8], eax
mov dword [esp + 0xcc], eax
mov dword [esp + 0x60], eax
mov dword [esp + 0x58], eax
call fcn.00431e50
mov ecx, dword [0x594088]
mov dword [esp + 0x64], eax
call fcn.00431e50
mov edx, dword [esp + 0x64]
mov dword [esp + 0x78], eax
mov eax, dword [edx*4 + 0x593350]
push eax
push edi
call dword [sym.imp.GDI32.dll_SetTextColor]
mov ecx, dword [esp + 0x78]
mov edx, dword [ecx*4 + 0x593350]
push edx
push edi
call dword [sym.imp.GDI32.dll_SetBkColor]
mov ecx, dword [esp + 0x50]
xor eax, eax
cmp ecx, 1
setne al
mov dword [esp + 0x20], 0
lea eax, [eax + eax + 4]
mov dword [esp + 0xa0], eax
lea ecx, [esp + 0x118]
push ecx
push edi
call dword [sym.imp.GDI32.dll_GetTextMetricsA]
mov eax, dword [ebp + 0x10]
mov ecx, dword [esp + 0x54]
mov edx, dword [esp + 0x138]
mov dword [esp + 0x38], eax
mov eax, dword [esp + 0x18]
mov dword [esp + 0x34], eax
add eax, ecx
mov dword [esp + 0x3c], eax
mov eax, dword [esi + 0x750]
cmp eax, 1
mov dword [esp + 0xb0], edx
mov dword [esp + 0x30], 2
mov dword [esp + 0x48], 0
je 0x4fa25e
cmp eax, 2
mov ecx, dword [0x59b4dc]
jne 0x4fa225
cmp ecx, 1
je 0x4fa25e
cmp eax, 3
je 0x4fa233
cmp eax, 2
jne 0x4fa266
cmp ecx, eax
jne 0x4fa266
mov eax, dword [ebx + 0x40]
xor ecx, ecx
cmp eax, ecx
je 0x4fa268
mov edx, dword [esp + 0x9c]
cmp dword [eax + 8], edx
je 0x4fa268
mov eax, 0x55555556
imul dword [esp + 0x54]
mov eax, edx
shr eax, 0x1f
add edx, eax
mov dword [esp + 0x48], edx
jmp 0x4fa268
mov ecx, dword [esp + 0x54]
mov dword [esp + 0x48], ecx
xor ecx, ecx
cmp dword [esi + 0x6e0], ebx
jne 0x4fa3f0
cmp dword [ebx + 0x20], 2
jne 0x4fa3f0
mov edx, dword [esp + 0x50]
push edx
lea eax, [esp + 0x34]
push eax
mov edx, edi
mov ecx, esi
call fcn.0041fd90
mov edi, dword [esp + 0x10]
mov ebx, dword [esp + 0x18]
mov eax, dword [esi + 0x6e0]
cmp eax, dword [esp + 0x14]
jne 0x4fa2dc
mov eax, dword [0x5a1b08]
test eax, eax
je 0x4fa2dc
mov ecx, dword [esi]
push ecx
call dword [sym.imp.USER32.dll_IsIconic]
test eax, eax
jne 0x4fa2dc
mov edx, dword [esi]
push edx
call dword [sym.imp.USER32.dll_IsWindowVisible]
test eax, eax
je 0x4fa2dc
mov eax, dword [esi]
cmp eax, dword [0x5a1b0c]
jne 0x4fa2dc
mov dword [esi + 0x6e8], 1
mov eax, dword [esp + 0x14]
cmp dword [esi + 0x6f0], eax
jne 0x4fa2f2
mov dword [esi + 0x6f0], 0
mov eax, dword [eax + 0x40]
test eax, eax
mov dword [esp + 0x14], eax
je 0x4fb4ba
mov edx, dword [esp + 0x54]
mov eax, dword [eax + 8]
mov ecx, dword [esp + 0x9c]
add ebx, edx
cmp eax, ecx
mov dword [esp + 0x18], ebx
je 0x4fa32b
mov dword [esp + 0x9c], eax
mov dword [esp + 0x80], 1
mov eax, dword [esp + 0x48]
test eax, eax
je 0x4fa393
cmp dword [esp + 0x50], 1
je 0x4fa38b
mov ecx, dword [ebp + 8]
mov eax, dword [esp + 0x48]
mov edx, dword [ebp + 0x10]
mov dword [esp + 0x30], ecx
mov ecx, dword [0x594088]
add eax, ebx
mov dword [esp + 0x38], edx
mov dword [esp + 0x34], ebx
mov dword [esp + 0x3c], eax
call fcn.00431e50
mov ecx, dword [eax*4 + 0x593350]
push ecx
push edi
call dword [sym.imp.GDI32.dll_SetBkColor]
push 0
push 0
push 0x574b10
lea edx, [esp + 0x3c]
push edx
push 6
push 0
push 0
push edi
call dword [sym.imp.GDI32.dll_ExtTextOutA]
add ebx, dword [esp + 0x48]
mov dword [esp + 0x18], ebx
mov eax, dword [ebp + 0x14]
sub eax, dword [esp + 0x54]
dec eax
cmp ebx, eax
jg 0x4fb4ba
mov edx, dword [esi + 0xd78]
mov ecx, dword [esi + 0xd80]
mov edi, dword [esp + 0x10]
inc edx
inc ecx
mov dword [esi + 0xd80], ecx
mov ecx, dword [esp + 0x64]
mov dword [esi + 0xd78], edx
mov edx, dword [ecx*4 + 0x593350]
push edx
push edi
call dword [sym.imp.GDI32.dll_SetTextColor]
mov eax, dword [esp + 0x78]
mov ecx, dword [eax*4 + 0x593350]
push ecx
push edi
call dword [sym.imp.GDI32.dll_SetBkColor]
mov ebx, dword [esp + 0x14]
jmp 0x4fa0e0
mov eax, dword [ebx]
mov dword [esp + 0x24], ecx
mov dword [esp + 0x44], ecx
mov dword [esp + 0x1c], ecx
lea edi, [eax + 1]
mov dl, byte [eax]
inc eax
test dl, dl
jne 0x4fa401
sub eax, edi
mov dword [esp + 0x94], eax
cmp dword [ebx + 0x10], ecx
mov dword [esp + 0xc8], 1
mov dword [esp + 0xac], ecx
mov dword [esp + 0x5c], ecx
jle 0x4fa54b
mov eax, dword [esp + 0x38]
mov ecx, dword [esp + 0x30]
mov edx, dword [esp + 0x34]
mov dword [esp + 0xe8], eax
mov eax, dword [esp + 0x94]
test eax, eax
mov dword [esp + 0xe0], ecx
mov ecx, dword [esp + 0x3c]
mov dword [esp + 0xe4], edx
mov dword [esp + 0xec], ecx
jle 0x4fa4dd
mov ebx, dword [esp + 0x24]
mov edi, dword [esp + 0x14]
cmp ebx, dword [edi + 0x10]
jge 0x4fa4dd
mov eax, dword [edi]
cmp byte [eax + ebx], 0x20
jne 0x4fa4dd
mov ecx, dword [0x59f66c]
test ecx, ecx
je 0x4fa499
push ebx
push eax
call fcn.00565618
add esp, 8
cmp eax, 1
je 0x4fa4dd
mov eax, dword [edi]
mov ecx, dword [esp + 0x10]
lea edx, [esp + 0x110]
push edx
push 1
add eax, ebx
push eax
push ecx
call dword [sym.imp.GDI32.dll_GetTextExtentPointA]
mov edx, dword [esp + 0x110]
mov ecx, dword [esp + 0x138]
mov eax, dword [esp + 0x30]
sub edx, ecx
add eax, edx
mov dword [esp + 0x30], eax
mov eax, dword [esp + 0x94]
inc ebx
cmp ebx, eax
mov dword [esp + 0x24], ebx
jl 0x4fa473
mov eax, dword [esp + 0x24]
mov dword [esp + 0x44], eax
mov dword [esp + 0x1c], eax
mov eax, dword [esp + 0x30]
mov dword [esp + 0xe8], eax
mov eax, dword [esp + 0x50]
test eax, eax
jne 0x4fa54b
mov ecx, dword [0x594088]
call fcn.00431e50
mov ecx, dword [eax*4 + 0x593350]
mov ebx, dword [esp + 0x10]
push ecx
push ebx
call dword [sym.imp.GDI32.dll_SetBkColor]
mov ecx, dword [esp + 0xe0]
push 0
push 0
push 0x574b10
lea edx, [esp + 0xec]
push edx
push 6
mov edi, eax
mov eax, dword [esp + 0x2c]
push eax
push ecx
push ebx
call dword [sym.imp.GDI32.dll_ExtTextOutA]
push edi
push ebx
call dword [sym.imp.GDI32.dll_SetBkColor]
mov dword [esp + 0x40], 0
mov edi, dword [esp + 0x24]
mov ebx, dword [esp + 0x14]
jmp 0x4fa560
cmp edi, dword [esp + 0x94]
jge 0x4fa658
mov eax, dword [0x59f66c]
test eax, eax
je 0x4fa5d5
mov edx, dword [ebx]
push edi
push edx
call fcn.00565618
add esp, 8
cmp eax, 1
mov dword [esp + 0x40], eax
jne 0x4fa5c7
mov eax, dword [ebx]
mov cl, byte [eax + edi + 1]
test cl, cl
jne 0x4fa59c
inc edi
mov dword [esp + 0x24], edi
jmp 0x4fa560
lea ebx, [edi + 1]
push ebx
push eax
call fcn.00565618
add esp, 8
cmp eax, 2
je 0x4fa5b6
mov edi, ebx
mov dword [esp + 0x24], edi
jmp 0x4fa557
mov ebx, dword [esp + 0x14]
mov dword [esp + 0x40], 1
jmp case.0x4fa5f6.4
cmp dword [esp + 0x40], 2
jne 0x4fa5d5
inc edi
mov dword [esp + 0x24], edi
jmp 0x4fa560
mov eax, dword [ebx]
movzx eax, byte [eax + edi]
add eax, 0xfffffffe
cmp eax, 0x1d
mov dword [esp + 0x40], 0
ja case.0x4fa5f6.4
movzx ecx, byte [eax + 0x4fb5fc]
jmp dword [ecx*4 + 0x4fb5e0]
mov eax, dword [esp + 0x58]
test eax, eax
je 0x4fa60f
mov dword [esp + 0x60], 1
jmp case.0x4fa5f6.4
mov eax, dword [esp + 0x20]
test eax, eax
jne 0x4fa626
lea edx, [edi - 1]
mov dword [esp + 0x20], 1
mov dword [esp + 0x44], edx
mov ecx, dword [esp + 0xb8]
xor eax, eax
test ecx, ecx
sete al
mov dword [esp + 0xb8], eax
mov dword [esp + 0x5c], edi
mov ecx, dword [esp + 0x24]
cmp ecx, dword [esp + 0x94]
mov ebx, dword [esp + 0x14]
jl 0x4fb254
mov edi, dword [esp + 0x24]
mov eax, dword [esp + 0x20]
test eax, eax
je 0x4fb260
mov eax, dword [0x59426c]
cmp dword [esi], eax
jne 0x4faabe
mov ecx, dword [esp + 0x5c]
inc ecx
cmp edi, ecx
jne case.0x4fa5f6.4
mov dword [esp + 0x5c], edi
mov edx, dword [0x59426c]
cmp dword [esi], edx
jne 0x4faabe
mov eax, dword [esp + 0x20]
test eax, eax
je 0x4fa857
mov eax, dword [ebx]
mov cl, byte [eax + edi + 1]
test cl, cl
mov dword [esp + 0x20], 3
jne 0x4faabe
cmp edi, dword [esp + 0x5c]
jne 0x4faabe
mov dword [esp + 0xac], 1
jmp 0x4faabe
mov eax, dword [esp + 0x58]
test eax, eax
je 0x4fa6da
mov dword [esp + 0x60], 1
jmp case.0x4fa5f6.4
mov eax, dword [esp + 0x20]
test eax, eax
jne 0x4fa6f1
lea ecx, [edi - 1]
mov dword [esp + 0x20], 1
mov dword [esp + 0x44], ecx
mov eax, dword [esp + 0x98]
xor edx, edx
test eax, eax
sete dl
mov dword [esp + 0x98], edx
jmp 0x4fa63b
mov eax, dword [esp + 0x58]
test eax, eax
je 0x4fa720
mov dword [esp + 0x60], 1
jmp case.0x4fa5f6.4
mov eax, dword [esp + 0x20]
test eax, eax
jne 0x4fa737
lea eax, [edi - 1]
mov dword [esp + 0x20], 1
mov dword [esp + 0x44], eax
mov eax, dword [esp + 0xa4]
xor ecx, ecx
test eax, eax
sete cl
mov dword [esp + 0xa4], ecx
jmp 0x4fa63b
mov eax, dword [esp + 0x58]
test eax, eax
je 0x4fa766
mov dword [esp + 0x60], 1
jmp case.0x4fa5f6.4
mov eax, dword [esp + 0x20]
test eax, eax
jne 0x4fa77d
lea edx, [edi - 1]
mov dword [esp + 0x20], 1
mov dword [esp + 0x44], edx
mov ecx, dword [0x594088]
call fcn.00431e50
mov ecx, dword [ebx + 0x1c]
push eax
call fcn.00431e50
mov ecx, dword [ebx]
push eax
lea eax, [esp + 0x80]
push eax
add ecx, edi
lea edx, [esp + 0x70]
call fcn.004f8d50
add edi, eax
mov dword [esp + 0x24], edi
jmp 0x4fa63b
mov eax, dword [esp + 0x20]
test eax, eax
jne 0x4fa7c9
lea ecx, [edi - 1]
mov dword [esp + 0x20], 1
mov dword [esp + 0x44], ecx
mov eax, dword [esp + 0x58]
test eax, eax
je 0x4fa7de
mov dword [esp + 0x60], 1
jmp case.0x4fa5f6.4
mov ecx, dword [ebx + 0x1c]
xor eax, eax
mov dword [esp + 0xa4], eax
mov dword [esp + 0x98], eax
mov dword [esp + 0xb8], eax
call fcn.00431e50
mov ecx, dword [0x594088]
mov dword [esp + 0x64], eax
call fcn.00431e50
mov dword [esp + 0x78], eax
jmp 0x4fa63b
cmp dword [esi + 0x700], 9
jne case.0x4fa5f6.4
mov eax, dword [esp + 0x20]
test eax, eax
je 0x4fa83f
mov eax, dword [esp + 0x58]
test eax, eax
jne 0x4fa84e
mov dword [esp + 0x60], 1
jmp case.0x4fa5f6.4
lea edx, [edi - 1]
mov dword [esp + 0x20], 1
mov dword [esp + 0x44], edx
inc dword [esp + 0x58]
jmp 0x4fa63b
mov eax, dword [esp + 0xc8]
test eax, eax
je 0x4faabe
mov ecx, dword [esp + 0x30]
mov eax, dword [esp + 0x38]
mov edx, dword [esp + 0x34]
mov dword [esp + 0x84], ecx
mov ecx, dword [esp + 0x3c]
mov dword [esp + 0x8c], eax
mov eax, dword [esp + 0x40]
mov dword [esp + 0x90], ecx
mov ecx, dword [esp + 0x10]
mov dword [esp + 0x88], edx
test eax, eax
mov eax, dword [ebx]
je 0x4fa8bd
lea edx, [esp + 0x108]
push edx
push 2
add eax, edi
push eax
push ecx
call dword [sym.imp.GDI32.dll_GetTextExtentPointA]
mov eax, dword [esp + 0x108]
jmp 0x4fa8d8
lea edx, [esp + 0xf8]
push edx
push 1
add eax, edi
push eax
push ecx
call dword [sym.imp.GDI32.dll_GetTextExtentPointA]
mov eax, dword [esp + 0xf8]
mov edx, dword [esp + 0xb0]
mov ecx, dword [esp + 0x84]
sub eax, edx
mov edx, dword [esp + 0xa8]
add eax, ecx
mov ecx, dword [esp + 0x7c]
cmp ecx, edx
mov dword [esp + 0x8c], eax
mov dword [esp + 0xc8], 0
jl 0x4fa90d
mov ecx, edx
sub ecx, dword [esp + 0x48]
mov ebx, dword [esp + 0x54]
sub ecx, ebx
cmp dword [esp + 0x88], ecx
jl 0x4faa82
mov ecx, dword [esp + 0x7c]
cmp ecx, edx
jg 0x4fa92e
mov ecx, edx
mov edx, dword [esp + 0x48]
add ecx, edx
mov edx, dword [esp + 0x90]
add ecx, ebx
cmp edx, ecx
jg 0x4faa82
mov edx, dword [esp + 0x40]
test edx, edx
mov ecx, 1
mov dword [esp + 0xc8], ecx
mov dword [esp + 0x20], 2
mov dword [esp + 0x44], edi
mov dword [esp + 0x1c], edi
je 0x4fa970
lea edx, [edi + 1]
mov dword [esp + 0x44], edx
mov edx, dword [esp + 0x2c]
test edx, edx
jne 0x4faabe
mov edx, dword [esp + 0x7c]
cmp edx, dword [esp + 0x88]
jl 0x4fa9df
mov ebx, dword [esp + 0x48]
mov edx, dword [esp + 0x90]
add edx, ebx
cmp dword [esp + 0x7c], edx
jge 0x4fa9df
mov edx, dword [esp + 0xd0]
cmp edx, dword [esp + 0x84]
jl 0x4fa9df
cmp edx, eax
jge 0x4fa9df
mov ebx, dword [esp + 0x40]
xor edx, edx
cmp ebx, edx
mov dword [esp + 0x4c], ecx
mov dword [esi + 0xd78], edx
mov dword [esi + 0xd80], edx
mov dword [esi + 0xd74], edi
mov dword [esi + 0xd7c], edi
je 0x4fa9df
lea edx, [edi + 1]
mov dword [esi + 0xd7c], edx
mov edx, dword [esi + 0xd60]
test edx, edx
je 0x4faabe
mov edx, dword [esp + 0x88]
cmp dword [esp + 0xa8], edx
jl 0x4faa64
mov ebx, dword [esp + 0x48]
mov edx, dword [esp + 0x90]
add edx, ebx
cmp dword [esp + 0xa8], edx
jge 0x4faabe
mov edx, dword [esp + 0xc0]
cmp edx, dword [esp + 0x84]
jl 0x4faabe
cmp edx, eax
jge 0x4faabe
xor eax, eax
mov dword [esp + 0x4c], ecx
mov dword [esp + 0x6c], ecx
cmp dword [esp + 0x40], eax
mov dword [esi + 0xd78], eax
mov dword [esi + 0xd80], eax
mov dword [esi + 0xd74], edi
mov dword [esi + 0xd7c], edi
je 0x4faabe
inc edi
mov dword [esi + 0xd7c], edi
jmp 0x4faabe
xor eax, eax
mov dword [esp + 0x4c], ecx
mov dword [esp + 0x6c], ecx
mov dword [esi + 0xd78], eax
mov dword [esi + 0xd80], eax
mov dword [esi + 0xd74], eax
jmp 0x4faab4
mov eax, dword [esp + 0x2c]
mov ecx, 1
cmp eax, ecx
jne 0x4faabe
mov eax, dword [esp + 0x68]
test eax, eax
jne 0x4faabe
mov eax, dword [esi + 0xd60]
test eax, eax
je 0x4faabe
mov eax, 2
mov dword [esp + 0x4c], eax
mov dword [esp + 0x2c], eax
mov dword [esi + 0xd80], ecx
mov dword [esi + 0xd7c], 0x3e7
cmp dword [esp + 0x1c], 0xffffffff
jne 0x4faacd
mov eax, dword [esp + 0x44]
mov dword [esp + 0x1c], eax
mov eax, dword [esp + 0x20]
test eax, eax
je 0x4fa63f
mov edi, dword [esp + 0x1c]
test edi, edi
jl 0x4fac8d
mov ebx, dword [esp + 0x44]
test ebx, ebx
jl 0x4fac8d
cmp ebx, edi
jl 0x4fac8d
cmp eax, 2
jne 0x4fab0c
mov eax, dword [esp + 0x4c]
cmp dword [esp + 0x2c], eax
je 0x4fab0c
mov dword [esp + 0x2c], eax
sub ebx, edi
inc ebx
test ebx, ebx
jle 0x4fac8d
mov eax, dword [0x59f66c]
test eax, eax
je 0x4fab44
test edi, edi
jle 0x4fab44
mov ecx, dword [esp + 0x14]
mov edx, dword [ecx]
push edi
push edx
call fcn.00565618
add esp, 8
cmp eax, 2
jne 0x4fab44
dec edi
mov dword [esp + 0x40], 1
jmp 0x4fab4c
mov eax, dword [esp + 0x40]
test eax, eax
je 0x4fab85
cmp ebx, 1
jne 0x4fab58
mov ebx, 2
jmp 0x4fab5d
cmp ebx, 2
jne 0x4fab85
mov eax, dword [esp + 0x14]
mov eax, dword [eax]
mov cl, byte [eax + edi + 1]
test cl, cl
je 0x4fac8d
lea ecx, [edi + 1]
push ecx
push eax
call fcn.00565618
add esp, 8
cmp eax, 2
jne 0x4fac8d
mov eax, dword [esp + 0x14]
mov ecx, dword [eax]
lea edx, [esp + 0x100]
push edx
mov edx, dword [esp + 0x14]
push ebx
add ecx, edi
push ecx
push edx
call dword [sym.imp.GDI32.dll_GetTextExtentPointA]
mov eax, dword [esp + 0xb0]
mov ecx, dword [esp + 0x100]
sub ecx, eax
mov eax, dword [esp + 0x30]
add ecx, eax
mov dword [esp + 0x38], ecx
cmp dword [esp + 0x2c], 1
jne 0x4fabdd
mov ecx, dword [esp + 0x28]
xor edx, edx
test ecx, ecx
sete dl
mov dword [esp + 0xc4], 1
mov dword [esp + 0x28], edx
mov ecx, dword [esp + 0x28]
test ecx, ecx
je 0x4fac45
mov ecx, dword [0x594088]
call fcn.00431e50
mov eax, dword [eax*4 + 0x593350]
mov ecx, dword [esp + 0x10]
push eax
push ecx
call dword [sym.imp.GDI32.dll_SetTextColor]
mov ecx, dword [0x59409c]
call fcn.00431e50
mov edx, dword [eax*4 + 0x593350]
mov eax, dword [esp + 0x10]
push edx
push eax
call dword [sym.imp.GDI32.dll_SetBkColor]
mov ecx, dword [esp + 0x14]
mov edx, dword [ecx]
mov ecx, dword [esp + 0x18]
push 0
push ebx
add edx, edi
push edx
mov edx, dword [esp + 0x3c]
lea eax, [esp + 0x3c]
push eax
mov eax, dword [esp + 0x20]
push 6
push ecx
push edx
push eax
jmp 0x4fac69
mov ecx, dword [esp + 0x14]
mov edx, dword [ecx]
push 0
push ebx
add edx, edi
push edx
mov edx, dword [esp + 0xac]
lea ecx, [esp + 0x3c]
push ecx
mov ecx, dword [esp + 0x28]
push edx
mov edx, dword [esp + 0x24]
push ecx
push eax
push edx
call dword [sym.imp.GDI32.dll_ExtTextOutA]
cmp dword [esp + 0x2c], 1
jne 0x4fac85
mov ecx, dword [esp + 0x28]
xor eax, eax
test ecx, ecx
sete al
mov dword [esp + 0x28], eax
mov ecx, dword [esp + 0x38]
mov dword [esp + 0x30], ecx
mov edx, dword [esp + 0x64]
mov eax, dword [edx*4 + 0x593350]
mov ebx, dword [esp + 0x10]
push eax
push ebx
call dword [sym.imp.GDI32.dll_SetTextColor]
mov edi, dword [esp + 0x78]
mov ecx, dword [edi*4 + 0x593350]
push ecx
push ebx
call dword [sym.imp.GDI32.dll_SetBkColor]
cmp dword [esp + 0x50], 1
jne 0x4facdb
mov ecx, dword [0x594088]
call fcn.00431e50
xor edx, edx
cmp edi, eax
setne dl
lea edx, [edx + edx + 4]
mov dword [esp + 0xa0], edx
mov eax, dword [esp + 0x58]
test eax, eax
je 0x4faeaf
mov edi, dword [esp + 0x30]
mov dword [esp + 0x38], edi
jle 0x4fad48
mov dword [esp + 0x68], eax
mov ecx, 2
xor eax, eax
cmp edi, ecx
jl 0x4fad37
mov edx, dword [esi + 0x9e0]
jmp 0x4fad10
test eax, eax
mov ebx, dword [esi + eax*4 + 0x774]
jle 0x4fad22
sub ebx, dword [esi + eax*4 + 0x770]
imul ebx, edx
add ecx, ebx
inc eax
cmp eax, 0x32
jl 0x4fad2f
xor eax, eax
cmp ecx, edi
jle 0x4fad10
mov ebx, dword [esp + 0x10]
mov eax, dword [esp + 0x68]
dec eax
mov edi, ecx
mov dword [esp + 0x68], eax
jne 0x4facf5
mov dword [esp + 0x38], edi
mov ecx, dword [esp + 0x2c]
mov eax, 1
cmp ecx, eax
mov dword [esp + 0x58], 0
jne 0x4fad77
mov edx, dword [esp + 0x28]
xor ecx, ecx
test edx, edx
sete cl
mov dword [esp + 0xc4], eax
mov edi, ecx
mov dword [esp + 0x28], edi
jmp 0x4fad7b
mov edi, dword [esp + 0x28]
test edi, edi
je 0x4fadcf
mov ecx, dword [0x594088]
call fcn.00431e50
mov edx, dword [eax*4 + 0x593350]
push edx
push ebx
call dword [sym.imp.GDI32.dll_SetTextColor]
mov ecx, dword [0x59409c]
call fcn.00431e50
mov eax, dword [eax*4 + 0x593350]
push eax
push ebx
call dword [sym.imp.GDI32.dll_SetBkColor]
mov edx, dword [esp + 0x18]
mov eax, dword [esp + 0x30]
push 0
push 0
push 0x574b10
lea ecx, [esp + 0x3c]
push ecx
push 6
push edx
push eax
jmp 0x4fadef
mov edx, dword [esp + 0xa0]
mov eax, dword [esp + 0x18]
push 0
push 0
push 0x574b10
lea ecx, [esp + 0x3c]
push ecx
mov ecx, dword [esp + 0x40]
push edx
push eax
push ecx
push ebx
call dword [sym.imp.GDI32.dll_ExtTextOutA]
mov eax, dword [esp + 0xbc]
test eax, eax
je 0x4fae91
test edi, edi
je 0x4fae1e
mov ecx, dword [0x594088]
call fcn.00431e50
mov edx, dword [eax*4 + 0x593350]
push edx
jmp 0x4fae2a
mov eax, dword [esp + 0x64]
mov ecx, dword [eax*4 + 0x593350]
push ecx
push 1
push 0
call dword [sym.imp.GDI32.dll_CreatePen]
mov ebx, eax
test ebx, ebx
je 0x4fae91
mov edx, dword [esp + 0x10]
push ebx
push edx
call dword [sym.imp.GDI32.dll_SelectObject]
mov ecx, dword [esp + 0x54]
mov edx, dword [esp + 0x30]
mov dword [esp + 0x68], eax
mov eax, dword [esp + 0x18]
push 0
lea edi, [eax + ecx - 2]
mov eax, dword [esp + 0x14]
push edi
push edx
push eax
call dword [sym.imp.GDI32.dll_MoveToEx]
mov ecx, dword [esp + 0x38]
push edi
mov edi, dword [esp + 0x14]
push ecx
push edi
call dword [sym.imp.GDI32.dll_LineTo]
mov edx, dword [esp + 0x68]
push edx
push edi
call dword [sym.imp.GDI32.dll_SelectObject]
push ebx
call dword [sym.imp.GDI32.dll_DeleteObject]
mov edi, dword [esp + 0x28]
cmp dword [esp + 0x2c], 1
jne 0x4faea5
xor eax, eax
test edi, edi
sete al
mov edi, eax
mov dword [esp + 0x28], edi
mov ecx, dword [esp + 0x38]
mov dword [esp + 0x30], ecx
jmp 0x4faeb3
mov edi, dword [esp + 0x28]
mov eax, dword [esp + 0xa4]
cmp edi, eax
je 0x4faec2
mov dword [esp + 0x28], eax
mov ebx, dword [esp + 0xb8]
cmp dword [esp + 0xcc], ebx
mov edi, dword [esp + 0x98]
jne 0x4faee2
cmp dword [esp + 0xbc], edi
je 0x4faf5a
mov edx, dword [esp + 0x74]
mov eax, dword [esp + 0x10]
push edx
push eax
call dword [sym.imp.GDI32.dll_SelectObject]
mov eax, dword [esp + 0x70]
test eax, eax
je 0x4faf01
push eax
call dword [sym.imp.GDI32.dll_DeleteObject]
test ebx, ebx
mov dword [esp + 0xcc], ebx
mov dword [esp + 0xbc], edi
jne 0x4fb036
test edi, edi
jne 0x4fb036
mov dword [esp + 0x70], edi
mov ecx, dword [esi + 0x96c]
mov edx, dword [esp + 0x10]
push ecx
push edx
call dword [sym.imp.GDI32.dll_SelectObject]
mov ecx, dword [esp + 0x10]
mov dword [esp + 0x74], eax
lea eax, [esp + 0x150]
push eax
push ecx
call dword [sym.imp.GDI32.dll_GetTextMetricsA]
mov edx, dword [esp + 0x170]
mov dword [esp + 0xb0], edx
mov edi, dword [esp + 0xac]
test edi, edi
mov eax, dword [esp + 0x4c]
mov edx, dword [esp + 0x6c]
mov ecx, dword [esp + 0x24]
mov dword [esp + 0x2c], eax
mov dword [esp + 0x68], edx
mov dword [esp + 0x1c], ecx
mov dword [esp + 0x44], 0
jne 0x4faf90
cmp dword [esp + 0x20], 2
jne 0x4fb220
test eax, eax
mov ebx, dword [esp + 0x88]
lea edi, [ecx + 1]
mov dword [esp + 0x1c], edi
mov edi, dword [esp + 0x90]
jne 0x4fb0a1
mov eax, dword [esi + 0xd60]
test eax, eax
je 0x4fb220
mov eax, dword [esp + 0xa8]
cmp eax, ebx
jl 0x4fb220
mov edx, dword [esp + 0x48]
add edx, edi
cmp eax, edx
jge 0x4fb220
mov eax, dword [esp + 0x14]
mov edx, dword [eax]
mov al, byte [edx + ecx + 1]
test al, al
jne 0x4fb220
mov eax, dword [esp + 0x8c]
cmp dword [esp + 0xc0], eax
jl 0x4fb220
mov eax, 1
mov dword [esp + 0x6c], eax
mov dword [esp + 0x68], eax
mov dword [esp + 0x4c], eax
mov dword [esp + 0x2c], eax
or eax, 0xffffffff
xor edx, edx
mov dword [esi + 0xd78], eax
mov dword [esi + 0xd80], eax
mov dword [esi + 0xd74], edx
mov dword [esi + 0xd7c], 0x3e7
jmp 0x4fb0b0
test ebx, ebx
mov eax, dword [esi + 0x9d8]
je 0x4fb059
xor ecx, ecx
cmp eax, 0x190
setle cl
dec ecx
and ecx, 0xfffffed4
add ecx, 0x2bc
mov eax, ecx
mov ecx, dword [esi + 0x9dc]
lea edx, [esi + 0x970]
push edx
mov edx, dword [esi + 0x9d4]
push 0
push 0
push 0
push 0
push ecx
push 0
push edi
push 0
push eax
push 0
push 0
push 0
neg edx
push edx
call dword [sym.imp.GDI32.dll_CreateFontA]
test eax, eax
mov dword [esp + 0x70], eax
je 0x4faf23
push eax
mov eax, dword [esp + 0x14]
push eax
jmp 0x4faf2f
cmp eax, 1
jne 0x4fb220
test edx, edx
je 0x4fb11d
xor edx, edx
mov eax, dword [esp + 0x7c]
cmp eax, ebx
jl 0x4fb222
mov ebx, dword [esp + 0x48]
add edi, ebx
cmp eax, edi
jge 0x4fb222
mov eax, dword [esp + 0xd0]
cmp eax, dword [esp + 0x84]
jl 0x4fb222
cmp eax, dword [esp + 0x8c]
jge 0x4fb222
mov eax, 2
mov dword [esp + 0x4c], eax
mov dword [esp + 0x2c], eax
cmp dword [esp + 0x40], edx
mov dword [esi + 0xd80], edx
mov dword [esi + 0xd7c], ecx
je 0x4fb222
mov eax, dword [esp + 0x1c]
mov dword [esi + 0xd7c], eax
jmp 0x4fb222
mov edi, dword [esp + 0xa8]
cmp edi, dword [esp + 0x88]
jl 0x4fb1a6
mov edx, dword [esp + 0x90]
mov eax, dword [esp + 0x48]
add eax, edx
cmp edi, eax
jge 0x4fb1a6
mov edx, dword [esp + 0xc0]
cmp edx, dword [esp + 0x84]
jl 0x4fb18c
cmp edx, dword [esp + 0x8c]
jge 0x4fb18c
mov eax, 2
mov dword [esp + 0x4c], eax
mov dword [esp + 0x2c], eax
mov eax, dword [esp + 0x40]
test eax, eax
mov dword [esi + 0xd80], 0
mov dword [esi + 0xd7c], ecx
je 0x4fb1b9
mov edx, dword [esp + 0x1c]
mov dword [esi + 0xd7c], edx
jmp 0x4fb1b9
cmp edx, dword [esp + 0xd0]
jge 0x4fb1b9
mov edx, dword [esp + 0x7c]
cmp edx, dword [esp + 0x88]
jl 0x4fb1b9
cmp edx, eax
jmp 0x4fb1aa
cmp edi, dword [esp + 0x7c]
jge 0x4fb1b9
mov eax, 2
mov dword [esp + 0x4c], eax
mov dword [esp + 0x2c], eax
mov eax, dword [esp + 0x14]
mov edx, dword [eax]
mov al, byte [edx + ecx + 1]
test al, al
jne 0x4fb220
cmp edi, dword [esp + 0x88]
jl 0x4fb220
mov eax, dword [esp + 0x90]
mov edx, dword [esp + 0x48]
add eax, edx
cmp edi, eax
jge 0x4fb220
mov eax, dword [esp + 0x8c]
cmp dword [esp + 0xc0], eax
jl 0x4fb220
mov eax, 2
mov dword [esp + 0x4c], eax
mov dword [esp + 0x2c], eax
mov eax, dword [esp + 0x40]
test eax, eax
mov dword [esi + 0xd80], 0
mov dword [esi + 0xd7c], ecx
je 0x4fb220
mov edx, dword [esp + 0x1c]
mov dword [esi + 0xd7c], edx
xor edx, edx
cmp dword [esp + 0x20], 3
mov dword [esp + 0xac], edx
mov dword [esp + 0x20], edx
je 0x4fa553
cmp dword [esp + 0x60], edx
jne 0x4fb243
jmp 0x4fa643
mov dword [esp + 0x60], edx
mov dword [esp + 0x1c], 0xffffffff
jmp 0x4fa553
inc ecx
mov dword [esp + 0x24], ecx
mov edi, ecx
jmp 0x4fa560
mov eax, dword [esp + 0x1c]
cmp eax, 0xffffffff
jne 0x4fb273
mov eax, dword [esp + 0x44]
mov dword [esp + 0x1c], eax
jmp 0x4fb27d
mov ecx, dword [esp + 0x44]
cmp ecx, eax
jle 0x4fb27d
mov edi, ecx
test eax, eax
jl 0x4fb422
mov eax, dword [esp + 0x1c]
cmp edi, eax
jle 0x4fb422
mov ecx, eax
mov eax, dword [0x59f66c]
sub edi, ecx
test eax, eax
mov ebx, edi
je 0x4fb2c1
mov eax, ecx
test eax, eax
jle 0x4fb2c1
mov ecx, dword [esp + 0x14]
mov edx, dword [ecx]
push eax
push edx
call fcn.00565618
add esp, 8
cmp eax, 2
jne 0x4fb2c1
inc dword [esp + 0x1c]
jmp 0x4fb2c9
mov eax, dword [esp + 0x40]
test eax, eax
je 0x4fb304
cmp ebx, 1
jne 0x4fb2d5
mov ebx, 2
jmp 0x4fb2da
cmp ebx, 2
jne 0x4fb304
mov eax, dword [esp + 0x14]
mov eax, dword [eax]
mov ecx, dword [esp + 0x1c]
mov dl, byte [eax + ecx + 1]
test dl, dl
je 0x4fb422
inc ecx
push ecx
push eax
call fcn.00565618
add esp, 8
cmp eax, 2
jne 0x4fb422
mov edx, dword [esp + 0x14]
mov eax, dword [edx]
mov edi, dword [esp + 0x1c]
lea ecx, [esp + 0xf0]
push ecx
push ebx
add eax, edi
mov edi, dword [esp + 0x18]
push eax
push edi
call dword [sym.imp.GDI32.dll_GetTextExtentPointA]
mov eax, dword [esp + 0xb0]
mov ecx, dword [esp + 0xf0]
sub ecx, eax
mov eax, dword [esp + 0x30]
add ecx, eax
mov dword [esp + 0x38], ecx
cmp dword [esp + 0x2c], 1
jne 0x4fb360
mov ecx, dword [esp + 0x28]
xor edx, edx
test ecx, ecx
sete dl
mov dword [esp + 0xc4], 1
mov dword [esp + 0x28], edx
mov ecx, dword [esp + 0x28]
test ecx, ecx
je 0x4fb3dc
mov ecx, dword [0x594088]
call fcn.00431e50
mov eax, dword [eax*4 + 0x593350]
push eax
push edi
call dword [sym.imp.GDI32.dll_SetTextColor]
mov ecx, dword [0x59409c]
mov dword [esp + 0xac], eax
call fcn.00431e50
mov ecx, dword [eax*4 + 0x593350]
push ecx
push edi
call dword [sym.imp.GDI32.dll_SetBkColor]
mov edx, dword [esp + 0x14]
mov eax, dword [edx]
mov ecx, dword [esp + 0x1c]
mov edx, dword [esp + 0x18]
push 0
push ebx
add eax, ecx
push eax
mov eax, dword [esp + 0x3c]
lea ecx, [esp + 0x3c]
push ecx
push 6
push edx
push eax
push edi
call dword [sym.imp.GDI32.dll_ExtTextOutA]
mov ecx, dword [esp + 0xac]
push ecx
push edi
call dword [sym.imp.GDI32.dll_SetTextColor]
jmp 0x4fb404
mov edx, dword [esp + 0x14]
mov ecx, dword [edx]
push 0
push ebx
add ecx, dword [esp + 0x24]
push ecx
mov ecx, dword [esp + 0xac]
lea edx, [esp + 0x3c]
push edx
mov edx, dword [esp + 0x28]
push ecx
push edx
push eax
push edi
call dword [sym.imp.GDI32.dll_ExtTextOutA]
cmp dword [esp + 0x2c], 1
jne 0x4fb41a
mov ecx, dword [esp + 0x28]
xor eax, eax
test ecx, ecx
sete al
mov dword [esp + 0x28], eax
mov ecx, dword [esp + 0x38]
mov dword [esp + 0x30], ecx
cmp dword [esp + 0x50], 1
je 0x4fa291
mov ecx, dword [0x594088]
call fcn.00431e50
mov edx, dword [eax*4 + 0x593350]
mov edi, dword [esp + 0x10]
push edx
push edi
call dword [sym.imp.GDI32.dll_SetBkColor]
mov ebx, dword [esp + 0x18]
mov edx, dword [esp + 0x30]
mov eax, dword [ebp + 0x10]
push 0
push 0
push 0x574b10
lea ecx, [esp + 0x3c]
push ecx
push 6
push ebx
push edx
push edi
mov dword [esp + 0x58], eax
call dword [sym.imp.GDI32.dll_ExtTextOutA]
mov eax, dword [esp + 0x14]
cmp dword [esi + 0x6e0], eax
jne 0x4fb48b
mov ecx, eax
cmp dword [ecx + 0x20], 2
je 0x4fa299
push 0
push 0
push 0x574b10
lea edx, [esp + 0x3c]
push edx
push 6
push ebx
push 0
push edi
mov dword [esp + 0x50], 0
mov dword [esp + 0x58], 2
call dword [sym.imp.GDI32.dll_ExtTextOutA]
jmp 0x4fa299
mov edx, dword [esp + 0xdc]
push edx
push edi
call dword [sym.imp.GDI32.dll_SetBkMode]
mov eax, dword [esp + 0x74]
push eax
push edi
call dword [sym.imp.GDI32.dll_SelectObject]
mov eax, dword [esp + 0x70]
test eax, eax
je 0x4fb4e4
push eax
call dword [sym.imp.GDI32.dll_DeleteObject]
mov eax, dword [esp + 0x50]
test eax, eax
je 0x4fb532
mov edi, dword [esp + 0x10]
mov eax, dword [ebp + 8]
mov ecx, dword [ebp + 0x14]
mov edx, dword [ebp + 0x10]
mov ebx, dword [esp + 0xb4]
push 0xcc0020
push 0
push 0
push edi
push ecx
sub edx, eax
push edx
push 0
push eax
push ebx
call dword [sym.imp.GDI32.dll_BitBlt]
mov eax, dword [esp + 0xd8]
push eax
push edi
call dword [sym.imp.GDI32.dll_SelectObject]
push edi
call dword [sym.imp.GDI32.dll_DeleteDC]
mov dword [esp + 0x10], ebx
mov eax, dword [esp + 0xd4]
test eax, eax
je case.0x4f9ad9.4
mov ecx, dword [esp + 0x10]
mov edx, dword [esi + 0x85c]
push ecx
push edx
call dword [sym.imp.USER32.dll_ReleaseDC]
mov eax, dword [esi + 0x964]
xor edi, edi
cmp eax, edi
je 0x4fb568
push eax
call dword [sym.imp.GDI32.dll_DeleteObject]
mov dword [esi + 0x964], edi
mov eax, dword [esi]
mov dword [esi + 0x968], edi
cmp eax, dword [0x59426c]
jne 0x4fb5b3
cmp dword [esp + 0xc4], edi
je 0x4fb5ad
push 0x7f01
push edi
mov dword [esi + 0xd60], 1
call dword [sym.imp.USER32.dll_LoadCursorA]
push eax
call dword [sym.imp.USER32.dll_SetCursor]
mov dword [0x59c6b4], edi
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 0x10
mov dword [esi + 0xd60], edi
mov dword [0x59c6b4], edi
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 0x10