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

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0x184
push ebx
push esi
mov esi, ecx
mov ecx, dword [0x5ae258]
xor eax, eax
cmp ecx, eax
push edi
mov dword [esp + 0x10], edx
mov dword [esp + 0x40], esi
jne 0x502aa2
mov ecx, dword [esi + 0xd80]
mov edx, dword [esi + 0xd84]
push 0xffffffffffffffff
push 0xffffffffffffffff
mov dword [esp + 0x50], eax
mov dword [esp + 0xc0], eax
mov dword [esp + 0xe8], eax
mov dword [esp + 0xe4], eax
mov dword [esp + 0xcc], eax
mov eax, dword [esi + 0xd7c]
push 0xffffffffffffffff
mov dword [esp + 0x70], ecx
mov dword [esp + 0xe4], eax
mov eax, dword [esi + 0xd88]
push 0xffffffffffffffff
lea ecx, [esi + 0xd8c]
push ecx
mov dword [0x5ae258], 1
mov dword [esp + 0xd0], edx
mov dword [esp + 0x9c], 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.0x500ecc.4
mov eax, esi
mov ecx, dword [eax]
push ecx
call dword [sym.imp.USER32.dll_IsWindowVisible]
test eax, eax
je case.0x500ecc.4
mov ecx, dword [esi]
call fcn.00543010
test eax, eax
je 0x500eba
mov edx, dword [0x5b4318]
push edx
call dword [sym.imp.USER32.dll_GetTopWindow]
mov edi, eax
push edi
call dword [sym.imp.USER32.dll_IsZoomed]
test eax, eax
je 0x500eba
cmp dword [esi], edi
jne case.0x500ecc.4
mov eax, dword [esi + 0x708]
add eax, 0xfffffffd
cmp eax, 6
ja case.default.0x500ecc
jmp dword [eax*4 + 0x502aac]
mov eax, dword [esp + 0x40]
cmp dword [eax + 0x70c], 1
mov ecx, dword [eax]
jne 0x500f08
call fcn.00514aa0
test eax, eax
je case.0x500ecc.4
push 0
push 1
push 1
push 1
mov edx, 1
mov ecx, eax
call fcn.00536580
jmp case.0x500ecc.4
call fcn.0048f6b0
test eax, eax
je case.0x500ecc.4
push 0
push 1
push 1
push 1
mov edx, 1
mov ecx, eax
call fcn.00536d90
jmp case.0x500ecc.4
mov eax, dword [esp + 0x40]
cmp dword [eax + 0x70c], 1
je case.0x500ecc.4
mov esi, eax
mov eax, dword [esi + 0x744]
test eax, eax
je case.default.0x500ecc
mov ecx, esi
call fcn.00471dd0
jmp case.0x500ecc.4
mov esi, dword [esp + 0x40]
mov esi, dword [esi + 0x864]
test esi, esi
je case.0x500ecc.4
mov edi, dword [esp + 0x10]
test edi, edi
jne 0x500f91
push esi
call dword [sym.imp.USER32.dll_GetDC]
test eax, eax
mov dword [esp + 0x10], eax
je case.0x500ecc.4
mov dword [esp + 0xdc], 1
mov edi, eax
mov ebx, dword [esp + 0x40]
mov ecx, dword [ebx]
cmp ecx, dword [0x5a90d0]
jne 0x500fa9
mov ecx, 1
call fcn.00498a10
mov eax, dword [ebx + 0x948]
test eax, eax
jne 0x500fcf
mov edx, dword [ebx]
cmp edx, dword [0x5a56dc]
je 0x500fcb
mov ecx, dword [ebx + 0x970]
test ecx, ecx
je 0x50110e
test eax, eax
je 0x500fd8
mov ecx, dword [ebx]
xor edx, edx
call fcn.0041a880
mov esi, dword [sym.imp.GDI32.dll_CreateCompatibleDC]
push edi
mov dword [esp + 0xbc], edi
call esi
mov edi, eax
test edi, edi
mov dword [esp + 0x10], edi
je 0x501103
mov eax, dword [esp + 0xb8]
push eax
call esi
mov esi, eax
test esi, esi
je 0x5010fc
mov eax, dword [ebx + 0x96c]
test eax, eax
jne 0x501030
mov ecx, dword [ebp + 0x14]
mov edx, dword [ebp + 0x10]
mov eax, dword [esp + 0xb8]
push ecx
push edx
push eax
call dword [sym.imp.GDI32.dll_CreateCompatibleBitmap]
mov dword [ebx + 0x96c], eax
mov eax, dword [ebx + 0x96c]
test eax, eax
je 0x5010ed
push eax
push edi
call dword [sym.imp.GDI32.dll_SelectObject]
mov dword [esp + 0xe0], eax
mov eax, dword [ebx + 0x948]
test eax, eax
je 0x50109c
push eax
push esi
call dword [sym.imp.GDI32.dll_SelectObject]
mov ecx, dword [ebp + 0x14]
mov edx, dword [ebp + 0x10]
push 0xcc0020
push 0
push 0
push esi
push ecx
push edx
push 0
push 0
push edi
mov dword [esp + 0xcc], eax
call dword [sym.imp.GDI32.dll_BitBlt]
mov eax, dword [esp + 0xa8]
push eax
push esi
call dword [sym.imp.GDI32.dll_SelectObject]
mov dword [esp + 0x48], 1
jmp 0x5010ed
mov ecx, dword [0x5a54f8]
call fcn.004336b0
mov ecx, dword [eax*4 + 0x5a47c0]
push ecx
push edi
call dword [sym.imp.GDI32.dll_SetBkColor]
mov edx, dword [ebp + 0x10]
mov ecx, dword [ebp + 0x14]
xor eax, eax
push eax
push eax
push 0x583b74
mov dword [esp + 0x40], edx
lea edx, [esp + 0x38]
push edx
push 6
push eax
push eax
push edi
mov dword [esp + 0x4c], eax
mov dword [esp + 0x50], eax
mov dword [esp + 0x58], ecx
call dword [sym.imp.GDI32.dll_ExtTextOutA]
mov dword [esp + 0x48], 2
push esi
call dword [sym.imp.GDI32.dll_DeleteDC]
mov eax, dword [esp + 0x48]
test eax, eax
jne 0x50110e
push edi
call dword [sym.imp.GDI32.dll_DeleteDC]
mov edi, dword [esp + 0xb8]
mov dword [esp + 0x10], edi
mov eax, dword [ebx + 0x6cc]
test eax, eax
je 0x50123c
mov eax, dword [ebx + 0x9ec]
mov ecx, dword [ebx + 0x700]
mov dword [esp + 0x50], eax
mov eax, dword [ebx + 0x6fc]
sub eax, ecx
mov dword [esp + 0xa0], eax
jmp 0x501140
test eax, eax
mov ecx, dword [ebx + 0x6cc]
mov esi, dword [ecx + 0x44]
mov dword [esp + 0x18], esi
jle 0x501161
cmp esi, ecx
je 0x50115d
mov esi, dword [esi + 0x44]
dec eax
test eax, eax
jg 0x501151
mov dword [esp + 0x18], esi
test esi, esi
je 0x50123c
mov ecx, dword [0x5a56dc]
cmp dword [ebx], ecx
je 0x501291
mov eax, dword [ebx + 0x708]
test eax, eax
je 0x501194
cmp eax, 1
je 0x501194
cmp eax, 2
je 0x501194
cmp eax, 9
jne 0x501291
mov edx, dword [ebp + 0x14]
mov ecx, dword [esp + 0x50]
mov eax, edx
sub eax, ecx
mov ecx, dword [esi + 0x14]
dec eax
cmp ecx, dword [ebp + 0x10]
mov dword [esp + 0xa8], esi
jne 0x5011de
nop
mov ecx, dword [ebx + 0x9e8]
cmp dword [esi + 0x18], ecx
jne 0x5011de
cmp esi, dword [ebx + 0x6cc]
je 0x5011c6
mov esi, dword [esi + 0x44]
mov ecx, dword [esp + 0x50]
sub eax, ecx
neg ecx
cmp eax, ecx
jl 0x501284
mov ecx, dword [esi + 0x14]
cmp ecx, dword [ebp + 0x10]
je 0x5011b0
mov edx, dword [ebp + 0x10]
push edx
push esi
mov edx, ebx
mov ecx, edi
call fcn.00500540
test eax, eax
je 0x501281
mov esi, dword [esp + 0xa0]
test esi, esi
mov ecx, ebx
jne 0x501208
mov edx, 1
jmp 0x50120a
xor edx, edx
call fcn.00544bb0
mov eax, dword [ebx + 0x700]
cmp eax, dword [ebx + 0x704]
jge 0x50122b
mov ecx, dword [ebx + 0x6fc]
sub ecx, esi
mov dword [ebx + 0x700], ecx
mov eax, dword [ebx + 0x6fc]
sub eax, dword [ebx + 0x700]
jmp 0x501140
mov eax, dword [esp + 0x48]
test eax, eax
jne 0x5029ce
mov ecx, dword [0x5a54f8]
call fcn.004336b0
mov edx, dword [eax*4 + 0x5a47c0]
push edx
push edi
call dword [sym.imp.GDI32.dll_SetBkColor]
push 0
push 0
push 0x583b74
lea eax, [ebp + 8]
push eax
push 6
push 0
push 0
push edi
call dword [sym.imp.GDI32.dll_ExtTextOutA]
jmp 0x502a14
mov edx, dword [ebp + 0x14]
mov esi, dword [esp + 0xa8]
mov dword [esp + 0x18], esi
jmp 0x501294
mov edx, dword [ebp + 0x14]
mov ecx, dword [esi + 8]
mov eax, dword [ebx + 0x6cc]
mov dword [esp + 0x9c], ecx
mov ecx, dword [esp + 0x50]
sub edx, ecx
dec edx
cmp esi, eax
mov dword [esp + 0x1c], edx
je 0x501390
mov edx, dword [ebx + 0x758]
mov dword [esp + 0x70], edx
jmp 0x5012c7
mov edx, dword [esp + 0x70]
mov eax, dword [esp + 0x1c]
sub eax, ecx
cmp edx, 1
mov dword [esp + 0x1c], eax
je 0x5012e4
cmp edx, 2
jne 0x5012e8
cmp dword [0x5aca44], 1
jne 0x5012e8
sub dword [esp + 0x1c], ecx
mov esi, dword [esi + 0x44]
mov edx, dword [esi + 8]
cmp edx, dword [esp + 0x9c]
je 0x501337
mov eax, dword [esp + 0x70]
cmp eax, 3
mov dword [esp + 0x9c], edx
je 0x501315
cmp eax, 2
jne 0x50132b
cmp dword [0x5aca44], 2
jne 0x50132b
mov eax, 0x55555555
imul ecx
sub edx, ecx
sar edx, 1
mov eax, edx
shr eax, 0x1f
add edx, eax
add dword [esp + 0x1c], edx
mov eax, dword [esp + 0x1c]
mov edx, ecx
neg edx
cmp eax, edx
jl 0x501341
cmp esi, dword [ebx + 0x6cc]
jne 0x5012c3
jmp 0x50138c
add dword [esp + 0x1c], ecx
mov eax, dword [esp + 0x70]
cmp eax, 1
mov dword [esp + 0x18], esi
je 0x501360
cmp eax, 2
jne 0x501364
cmp dword [0x5aca44], 1
jne 0x501364
add dword [esp + 0x1c], ecx
cmp eax, 3
je 0x501377
cmp eax, 2
jne 0x501389
cmp dword [0x5aca44], 2
jne 0x501389
mov eax, 0x55555556
imul ecx
mov eax, edx
shr eax, 0x1f
add edx, eax
add dword [esp + 0x1c], edx
mov esi, dword [esi + 0x40]
mov dword [esp + 0x18], esi
mov ecx, dword [ebx + 0x974]
push ecx
push edi
call dword [sym.imp.GDI32.dll_SelectObject]
mov dword [esp + 0x80], eax
mov eax, dword [0x5b121c]
test eax, eax
mov dword [esp + 0xa8], 0xffffffff
je 0x5013cd
mov edx, dword [ebx + 0x9e4]
mov ecx, edi
call fcn.0048d6d0
mov dword [esp + 0xa8], eax
mov ecx, dword [esi + 0x1c]
call fcn.004336b0
mov ecx, dword [0x5a54f8]
mov dword [esp + 0x6c], eax
call fcn.004336b0
mov edx, dword [esp + 0x6c]
mov dword [esp + 0x74], eax
mov eax, dword [edx*4 + 0x5a47c0]
push eax
push edi
call dword [sym.imp.GDI32.dll_SetTextColor]
mov ecx, dword [esp + 0x74]
mov edx, dword [ecx*4 + 0x5a47c0]
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 + 0xe4], eax
cmp dword [esp + 0x48], 1
jne 0x501435
mov dword [esp + 0x84], 4
jmp 0x5014b5
mov eax, dword [esp + 0x1c]
test eax, eax
mov dword [esp + 0x84], 6
jl 0x50147e
mov ecx, dword [ebp + 0x10]
mov edx, dword [esp + 0x1c]
xor eax, eax
push eax
push eax
mov dword [esp + 0x3c], ecx
mov ecx, dword [esp + 0x58]
add edx, ecx
push 0x583b74
mov dword [esp + 0x44], edx
lea edx, [esp + 0x38]
push edx
push 6
push eax
push eax
push edi
mov dword [esp + 0x4c], eax
mov dword [esp + 0x50], eax
call dword [sym.imp.GDI32.dll_ExtTextOutA]
mov eax, dword [ebp + 0x14]
mov ecx, dword [ebp + 0x10]
push 0
push 0
push 0x583b74
lea edx, [esp + 0x38]
push edx
push 6
dec eax
push 0
mov dword [esp + 0x48], eax
push 0
inc eax
push edi
mov dword [esp + 0x4c], 0
mov dword [esp + 0x54], ecx
mov dword [esp + 0x58], eax
call dword [sym.imp.GDI32.dll_ExtTextOutA]
xor eax, eax
push eax
push eax
push eax
push eax
mov dword [esp + 0x8c], eax
mov dword [esp + 0xc0], eax
mov dword [esp + 0x34], eax
mov dword [esp + 0x88], eax
mov dword [esp + 0xd0], eax
mov dword [esp + 0xbc], eax
mov dword [esp + 0xe0], eax
mov dword [esp + 0x70], eax
mov dword [esp + 0x68], eax
mov dword [esp + 0x80], eax
mov dword [esp + 0xb4], eax
mov dword [esp + 0x5c], eax
mov dword [esp + 0x38], eax
lea eax, [esp + 0x9c]
push eax
call dword [sym.imp.USER32.dll_SetRect]
mov ecx, dword [esi + 8]
xor eax, eax
mov dword [esp + 0x9c], ecx
mov dword [esp + 0x20], eax
mov dword [esp + 0xc8], eax
lea esp, [esp]
mov eax, dword [esp + 0xc8]
test eax, eax
je 0x50161a
mov eax, dword [esp + 0x7c]
test eax, eax
mov dword [esp + 0xc8], 0
je 0x50158c
mov edx, dword [esp + 0x80]
push edx
push edi
call dword [sym.imp.GDI32.dll_SelectObject]
mov eax, dword [esp + 0x7c]
push eax
call dword [sym.imp.GDI32.dll_DeleteObject]
mov ecx, dword [ebx + 0x974]
push ecx
push edi
mov dword [esp + 0x84], 0
call dword [sym.imp.GDI32.dll_SelectObject]
mov dword [esp + 0x80], eax
mov ecx, dword [esi + 0x1c]
xor eax, eax
mov dword [esp + 0xb0], eax
mov dword [esp + 0x24], eax
mov dword [esp + 0x78], eax
mov dword [esp + 0xc0], eax
mov dword [esp + 0xac], eax
mov dword [esp + 0xd0], eax
mov dword [esp + 0x60], eax
mov dword [esp + 0x58], eax
call fcn.004336b0
mov ecx, dword [0x5a54f8]
mov dword [esp + 0x6c], eax
call fcn.004336b0
mov edx, dword [esp + 0x6c]
mov dword [esp + 0x74], eax
mov eax, dword [edx*4 + 0x5a47c0]
push eax
push edi
call dword [sym.imp.GDI32.dll_SetTextColor]
mov ecx, dword [esp + 0x74]
mov edx, dword [ecx*4 + 0x5a47c0]
push edx
push edi
call dword [sym.imp.GDI32.dll_SetBkColor]
mov ecx, dword [esp + 0x48]
xor eax, eax
cmp ecx, 1
setne al
mov dword [esp + 0x20], 0
lea eax, [eax + eax + 4]
mov dword [esp + 0x84], eax
lea ecx, [esp + 0x120]
push ecx
push edi
call dword [sym.imp.GDI32.dll_GetTextMetricsA]
mov eax, dword [ebp + 0x10]
mov ecx, dword [esp + 0x50]
mov edx, dword [esp + 0x140]
mov dword [esp + 0x34], eax
mov eax, dword [esp + 0x1c]
mov dword [esp + 0x30], eax
add eax, ecx
mov dword [esp + 0x38], eax
mov eax, dword [ebx + 0x758]
cmp eax, 1
mov dword [esp + 0xb4], edx
mov dword [esp + 0x2c], 2
mov dword [esp + 0x54], 0
je 0x5016b4
cmp eax, 2
mov ecx, dword [0x5aca44]
jne 0x50167b
cmp ecx, 1
je 0x5016b4
cmp eax, 3
je 0x501689
cmp eax, 2
jne 0x5016bc
cmp ecx, eax
jne 0x5016bc
mov eax, dword [esi + 0x40]
xor ecx, ecx
cmp eax, ecx
je 0x5016be
mov edx, dword [esp + 0x9c]
cmp dword [eax + 8], edx
je 0x5016be
mov eax, 0x55555556
imul dword [esp + 0x50]
mov eax, edx
shr eax, 0x1f
add edx, eax
mov dword [esp + 0x54], edx
jmp 0x5016be
mov ecx, dword [esp + 0x50]
mov dword [esp + 0x54], ecx
xor ecx, ecx
cmp dword [ebx + 0x6e4], esi
jne 0x50184b
cmp dword [esi + 0x20], 2
jne 0x50184b
mov edx, dword [esp + 0x48]
push edx
lea eax, [esp + 0x30]
push eax
mov edx, edi
mov ecx, ebx
call fcn.00420c70
mov ebx, dword [esp + 0x40]
mov esi, dword [esp + 0x18]
mov edi, dword [esp + 0x1c]
cmp dword [ebx + 0x6e4], esi
jne 0x501732
mov eax, dword [0x5b431c]
test eax, eax
je 0x501732
mov ecx, dword [ebx]
push ecx
call dword [sym.imp.USER32.dll_IsIconic]
test eax, eax
jne 0x501732
mov edx, dword [ebx]
push edx
call dword [sym.imp.USER32.dll_IsWindowVisible]
test eax, eax
je 0x501732
mov eax, dword [ebx]
cmp eax, dword [0x5b4320]
jne 0x501732
mov dword [ebx + 0x6ec], 1
cmp dword [ebx + 0x6f4], esi
jne 0x501744
mov dword [ebx + 0x6f4], 0
mov eax, dword [esi + 0x40]
test eax, eax
mov dword [esp + 0x18], eax
je 0x502981
mov edx, dword [esp + 0x50]
mov eax, dword [eax + 8]
mov ecx, dword [esp + 0x9c]
add edi, edx
cmp eax, ecx
mov dword [esp + 0x1c], edi
je 0x50177d
mov dword [esp + 0x9c], eax
mov dword [esp + 0xc8], 1
mov esi, dword [esp + 0x54]
test esi, esi
je 0x5017e8
cmp dword [esp + 0x48], 1
je 0x5017e2
mov ecx, dword [ebp + 8]
mov edx, dword [ebp + 0x10]
mov dword [esp + 0x2c], ecx
mov ecx, dword [0x5a54f8]
lea eax, [esi + edi]
mov dword [esp + 0x34], edx
mov dword [esp + 0x30], edi
mov dword [esp + 0x38], eax
call fcn.004336b0
mov ecx, dword [eax*4 + 0x5a47c0]
mov edx, dword [esp + 0x10]
push ecx
push edx
call dword [sym.imp.GDI32.dll_SetBkColor]
mov ecx, dword [esp + 0x10]
push 0
push 0
push 0x583b74
lea eax, [esp + 0x38]
push eax
push 6
push 0
push 0
push ecx
call dword [sym.imp.GDI32.dll_ExtTextOutA]
add edi, esi
mov dword [esp + 0x1c], edi
mov edx, dword [ebp + 0x14]
sub edx, dword [esp + 0x50]
dec edx
cmp edi, edx
jg 0x502981
mov eax, dword [ebx + 0xd90]
mov edi, dword [ebx + 0xd98]
mov esi, dword [esp + 0x10]
inc eax
mov dword [ebx + 0xd90], eax
mov eax, dword [esp + 0x6c]
inc edi
mov dword [ebx + 0xd98], edi
mov ecx, dword [eax*4 + 0x5a47c0]
push ecx
push esi
call dword [sym.imp.GDI32.dll_SetTextColor]
mov edx, dword [esp + 0x74]
mov eax, dword [edx*4 + 0x5a47c0]
push eax
push esi
call dword [sym.imp.GDI32.dll_SetBkColor]
mov ebx, dword [esp + 0x40]
mov edi, esi
mov esi, dword [esp + 0x18]
jmp 0x501530
mov eax, dword [esi]
mov dword [esp + 0x5c], ecx
mov dword [esp + 0x44], ecx
mov dword [esp + 0x14], ecx
lea edx, [eax + 1]
lea esp, [esp]
mov bl, byte [eax]
inc eax
test bl, bl
jne 0x501860
sub eax, edx
mov dword [esp + 0xa0], eax
cmp dword [esi + 0x10], ecx
mov dword [esp + 0xcc], 1
mov dword [esp + 0xd4], ecx
mov dword [esp + 0x68], ecx
jle 0x5019a4
mov eax, dword [esp + 0x34]
mov ecx, dword [esp + 0x2c]
mov edx, dword [esp + 0x30]
mov dword [esp + 0xf0], eax
mov eax, dword [esp + 0xa0]
test eax, eax
mov dword [esp + 0xe8], ecx
mov ecx, dword [esp + 0x38]
mov dword [esp + 0xec], edx
mov dword [esp + 0xf4], ecx
jle 0x501938
mov esi, dword [esp + 0x5c]
mov edi, dword [esp + 0x18]
mov ebx, dword [esp + 0x140]
cmp esi, dword [edi + 0x10]
jge 0x501938
mov eax, dword [edi]
cmp byte [eax + esi], 0x20
jne 0x501938
mov ecx, dword [0x5b121c]
test ecx, ecx
je 0x5018fb
push esi
push eax
call fcn.00572da3
add esp, 8
cmp eax, 1
je 0x501938
mov eax, dword [edi]
mov ecx, dword [esp + 0x10]
lea edx, [esp + 0x100]
push edx
push 1
add eax, esi
push eax
push ecx
call dword [sym.imp.GDI32.dll_GetTextExtentPointA]
mov edx, dword [esp + 0x100]
mov eax, dword [esp + 0x2c]
sub edx, ebx
add eax, edx
mov dword [esp + 0x2c], eax
mov eax, dword [esp + 0xa0]
inc esi
cmp esi, eax
mov dword [esp + 0x5c], esi
jl 0x5018d5
mov eax, dword [esp + 0x5c]
mov dword [esp + 0x44], eax
mov dword [esp + 0x14], eax
mov eax, dword [esp + 0x2c]
mov dword [esp + 0xf0], eax
mov eax, dword [esp + 0x48]
test eax, eax
jne 0x5019a4
mov ecx, dword [0x5a54f8]
call fcn.004336b0
mov ecx, dword [eax*4 + 0x5a47c0]
mov edi, dword [esp + 0x10]
mov esi, dword [sym.imp.GDI32.dll_SetBkColor]
push ecx
push edi
call esi
mov ecx, dword [esp + 0xe8]
push 0
push 0
push 0x583b74
lea edx, [esp + 0xf4]
push edx
push 6
mov ebx, eax
mov eax, dword [esp + 0x30]
push eax
push ecx
push edi
call dword [sym.imp.GDI32.dll_ExtTextOutA]
push ebx
push edi
call esi
mov ebx, dword [esp + 0x40]
mov edi, dword [esp + 0x5c]
mov dword [esp + 0x3c], 0
mov esi, dword [esp + 0x18]
jmp 0x5019c0
cmp edi, dword [esp + 0xa0]
jge 0x501c41
mov eax, dword [0x5b121c]
test eax, eax
je 0x501a36
mov edx, dword [esi]
push edi
push edx
call fcn.00572da3
add esp, 8
cmp eax, 1
mov dword [esp + 0x3c], eax
jne 0x501a1a
mov eax, dword [esi]
mov cl, byte [eax + edi + 1]
test cl, cl
jne 0x5019fc
inc edi
mov dword [esp + 0x5c], edi
jmp 0x5019c0
lea esi, [edi + 1]
push esi
push eax
call fcn.00572da3
add esp, 8
cmp eax, 2
je case.0x501a57.4
mov edi, esi
mov dword [esp + 0x5c], edi
jmp 0x5019b4
cmp dword [esp + 0x3c], 2
jne 0x501a36
mov eax, dword [ebx]
cmp eax, dword [0x5a56dc]
je case.0x501a57.4
inc edi
mov dword [esp + 0x5c], edi
jmp 0x5019c0
mov ecx, dword [esi]
movzx eax, byte [ecx + edi]
add eax, 0xfffffffe
cmp eax, 0x1d
mov dword [esp + 0x3c], 0
ja case.0x501a57.4
movzx edx, byte [eax + 0x502ae4]
jmp dword [edx*4 + 0x502ac8]
mov eax, dword [esp + 0x58]
test eax, eax
je 0x501a73
mov dword [esp + 0x60], 1
jmp case.0x501a57.4
mov eax, dword [esp + 0x20]
test eax, eax
jne 0x501a8a
lea eax, [edi - 1]
mov dword [esp + 0x20], 1
mov dword [esp + 0x44], eax
mov eax, dword [esp + 0xac]
xor ecx, ecx
test eax, eax
sete cl
mov dword [esp + 0x68], edi
mov dword [esp + 0xac], ecx
jmp 0x5026f3
mov eax, dword [esp + 0x58]
test eax, eax
je 0x501abd
mov dword [esp + 0x60], 1
jmp case.0x501a57.4
mov eax, dword [esp + 0x20]
test eax, eax
jne 0x501ad4
lea edx, [edi - 1]
mov dword [esp + 0x20], 1
mov dword [esp + 0x44], edx
mov ecx, dword [esp + 0x78]
xor eax, eax
test ecx, ecx
sete al
mov dword [esp + 0x68], edi
mov dword [esp + 0x78], eax
jmp 0x5026f3
mov eax, dword [esp + 0x58]
test eax, eax
je 0x501b01
mov dword [esp + 0x60], 1
jmp case.0x501a57.4
mov eax, dword [esp + 0x20]
test eax, eax
jne 0x501b18
lea ecx, [edi - 1]
mov dword [esp + 0x20], 1
mov dword [esp + 0x44], ecx
mov eax, dword [esp + 0xb0]
xor edx, edx
test eax, eax
sete dl
mov dword [esp + 0x68], edi
mov dword [esp + 0xb0], edx
jmp 0x5026f3
mov eax, dword [esp + 0x58]
test eax, eax
je 0x501b4b
mov dword [esp + 0x60], 1
jmp case.0x501a57.4
mov eax, dword [esp + 0x20]
test eax, eax
jne 0x501b62
lea eax, [edi - 1]
mov dword [esp + 0x20], 1
mov dword [esp + 0x44], eax
mov ecx, dword [0x5a54f8]
call fcn.004336b0
mov esi, dword [esp + 0x18]
mov ecx, dword [esi + 0x1c]
push eax
call fcn.004336b0
push eax
lea ecx, [esp + 0x7c]
push ecx
mov ecx, dword [esi]
add ecx, edi
lea edx, [esp + 0x78]
call fcn.00500120
add edi, eax
mov dword [esp + 0x5c], edi
mov dword [esp + 0x68], edi
jmp 0x5026f3
mov ecx, dword [esp + 0x20]
xor eax, eax
cmp ecx, eax
jne 0x501bb5
lea edx, [edi - 1]
mov dword [esp + 0x20], 1
mov dword [esp + 0x44], edx
cmp dword [esp + 0x58], eax
je 0x501bc8
mov dword [esp + 0x60], 1
jmp case.0x501a57.4
mov dword [esp + 0xb0], eax
mov dword [esp + 0x78], eax
mov dword [esp + 0xac], eax
mov eax, dword [esp + 0x18]
mov ecx, dword [eax + 0x1c]
call fcn.004336b0
mov ecx, dword [0x5a54f8]
mov dword [esp + 0x6c], eax
call fcn.004336b0
mov dword [esp + 0x74], eax
mov dword [esp + 0x68], edi
jmp 0x5026f3
cmp dword [ebx + 0x708], 9
jne case.0x501a57.4
mov eax, dword [esp + 0x20]
test eax, eax
je 0x501c25
mov eax, dword [esp + 0x58]
test eax, eax
jne 0x501c34
mov dword [esp + 0x60], 1
jmp case.0x501a57.4
lea ecx, [edi - 1]
mov dword [esp + 0x20], 1
mov dword [esp + 0x44], ecx
inc dword [esp + 0x58]
mov dword [esp + 0x68], edi
jmp 0x5026f3
mov eax, dword [esp + 0x20]
test eax, eax
je 0x50271a
mov edx, dword [0x5a56dc]
cmp dword [ebx], edx
jne 0x501f2a
mov eax, dword [esp + 0x68]
inc eax
cmp edi, eax
jne case.0x501a57.4
mov dword [esp + 0x68], edi
mov ecx, dword [0x5a56dc]
cmp dword [ebx], ecx
jne 0x501f2a
mov eax, dword [esp + 0x20]
test eax, eax
je 0x501cb2
mov edx, dword [esp + 0x18]
mov eax, dword [edx]
mov cl, byte [eax + edi + 1]
test cl, cl
mov dword [esp + 0x20], 3
jne 0x501f2a
cmp edi, dword [esp + 0x68]
jne 0x501f2a
mov dword [esp + 0xd4], 1
jmp 0x501f2a
mov eax, dword [esp + 0xcc]
test eax, eax
je 0x501f2a
mov ecx, dword [esp + 0x30]
mov edx, dword [esp + 0x2c]
mov eax, dword [esp + 0x34]
mov dword [esp + 0x90], ecx
mov ecx, dword [esp + 0x38]
mov dword [esp + 0x98], ecx
mov ecx, dword [esp + 0x3c]
test ecx, ecx
mov dword [esp + 0x8c], edx
mov dword [esp + 0x94], eax
je 0x501d21
cmp ecx, 1
jne 0x501d5d
mov eax, dword [esp + 0x18]
mov ecx, dword [eax]
lea edx, [esp + 0x110]
push edx
mov edx, dword [esp + 0x14]
push 2
add ecx, edi
push ecx
push edx
call dword [sym.imp.GDI32.dll_GetTextExtentPointA]
mov eax, dword [esp + 0x110]
jmp 0x501d46
mov ecx, dword [esp + 0x18]
mov edx, dword [ecx]
lea eax, [esp + 0xf8]
push eax
mov eax, dword [esp + 0x14]
push 1
add edx, edi
push edx
push eax
call dword [sym.imp.GDI32.dll_GetTextExtentPointA]
mov eax, dword [esp + 0xf8]
sub eax, dword [esp + 0xb4]
mov edx, dword [esp + 0x8c]
add eax, edx
mov dword [esp + 0x94], eax
mov ecx, dword [esp + 0x88]
mov esi, dword [esp + 0x64]
cmp esi, ecx
mov dword [esp + 0xcc], 0
jge 0x501d79
mov ecx, esi
sub ecx, dword [esp + 0x54]
sub ecx, dword [esp + 0x50]
cmp dword [esp + 0x90], ecx
jl 0x501eeb
mov ecx, dword [esp + 0x88]
mov esi, dword [esp + 0x64]
cmp esi, ecx
jle 0x501d9f
mov ecx, esi
mov esi, dword [esp + 0x54]
add ecx, esi
add ecx, dword [esp + 0x50]
mov esi, dword [esp + 0x98]
cmp esi, ecx
jg 0x501eeb
mov ecx, 1
cmp dword [esp + 0x3c], ecx
mov dword [esp + 0xcc], ecx
mov dword [esp + 0x20], 2
mov dword [esp + 0x44], edi
mov dword [esp + 0x14], edi
jne 0x501de1
lea ecx, [edi + 1]
mov dword [esp + 0x44], ecx
mov ecx, dword [esp + 0x28]
test ecx, ecx
jne 0x501f2a
mov ecx, dword [esp + 0x64]
cmp ecx, dword [esp + 0x90]
jl 0x501e47
mov ecx, dword [esp + 0x54]
add esi, ecx
cmp dword [esp + 0x64], esi
jge 0x501e47
mov ecx, dword [esp + 0xd8]
cmp ecx, edx
jl 0x501e47
cmp ecx, eax
jge 0x501e47
xor ecx, ecx
mov esi, 1
mov dword [ebx + 0xd90], ecx
mov dword [ebx + 0xd98], ecx
cmp dword [esp + 0x3c], esi
mov dword [esp + 0x4c], esi
mov dword [ebx + 0xd8c], edi
mov dword [ebx + 0xd94], edi
jne 0x501e47
lea ecx, [edi + 1]
mov dword [ebx + 0xd94], ecx
mov ecx, dword [ebx + 0xd78]
test ecx, ecx
je 0x501f2a
mov ecx, dword [esp + 0x90]
cmp dword [esp + 0x88], ecx
jl 0x501ece
mov esi, dword [esp + 0x54]
mov ecx, dword [esp + 0x98]
add ecx, esi
cmp dword [esp + 0x88], ecx
jge 0x501f2a
mov ecx, dword [esp + 0xbc]
cmp ecx, edx
jl 0x501f2a
cmp ecx, eax
jge 0x501f2a
xor eax, eax
mov ecx, 1
mov dword [ebx + 0xd90], eax
mov dword [ebx + 0xd98], eax
cmp dword [esp + 0x3c], ecx
mov dword [esp + 0x4c], ecx
mov dword [esp + 0x70], ecx
mov dword [ebx + 0xd8c], edi
mov dword [ebx + 0xd94], edi
jne 0x501f2a
lea edx, [edi + 1]
mov dword [ebx + 0xd94], edx
jmp 0x501f2a
mov eax, 1
mov dword [esp + 0x4c], eax
mov dword [esp + 0x70], eax
xor eax, eax
mov dword [ebx + 0xd90], eax
mov dword [ebx + 0xd8c], eax
jmp 0x501f1a
mov ecx, dword [esp + 0x28]
mov eax, 1
cmp ecx, eax
jne 0x501f2a
mov ecx, dword [esp + 0xa4]
test ecx, ecx
jne 0x501f2a
mov ecx, dword [ebx + 0xd78]
test ecx, ecx
je 0x501f2a
mov ecx, 2
mov dword [esp + 0x4c], ecx
mov dword [esp + 0x28], ecx
mov dword [ebx + 0xd98], eax
mov dword [ebx + 0xd94], 0x3e7
mov eax, dword [esp + 0x14]
cmp eax, 0xffffffff
mov esi, dword [esp + 0x44]
jne 0x501f3d
mov eax, esi
mov dword [esp + 0x14], eax
mov ecx, dword [esp + 0x20]
test ecx, ecx
je 0x5026f3
test eax, eax
jl 0x502137
test esi, esi
jl 0x502137
cmp esi, eax
jl 0x502137
cmp ecx, 2
jne 0x501f74
mov eax, dword [esp + 0x4c]
cmp dword [esp + 0x28], eax
je 0x501f74
mov dword [esp + 0x28], eax
sub esi, dword [esp + 0x14]
inc esi
test esi, esi
jle 0x502137
mov eax, dword [esp + 0x3c]
test eax, eax
je 0x501f92
cmp eax, 1
jne 0x502137
mov eax, dword [0x5b121c]
test eax, eax
je 0x501fc6
mov eax, dword [esp + 0x14]
test eax, eax
jle 0x501fc6
mov ecx, dword [esp + 0x18]
mov edx, dword [ecx]
push eax
push edx
call fcn.00572da3
add esp, 8
cmp eax, 2
jne 0x501fc6
dec dword [esp + 0x14]
mov dword [esp + 0x3c], 1
jmp 0x501fce
mov eax, dword [esp + 0x3c]
test eax, eax
je 0x502023
mov eax, dword [esp + 0x14]
mov ecx, dword [esp + 0x18]
mov edx, dword [ecx]
push eax
push edx
call fcn.00572da3
add esp, 8
cmp eax, 1
jne 0x502023
cmp esi, eax
jne 0x501ff2
mov esi, 2
jmp 0x501ff7
cmp esi, 2
jne 0x502023
mov eax, dword [esp + 0x18]
mov eax, dword [eax]
mov ecx, dword [esp + 0x14]
mov dl, byte [eax + ecx + 1]
test dl, dl
je 0x502137
mov edx, ecx
inc edx
push edx
push eax
call fcn.00572da3
add esp, 8
cmp eax, 2
jne 0x502137
mov ecx, dword [esp + 0x18]
mov edx, dword [ecx]
mov ecx, dword [esp + 0x14]
lea eax, [esp + 0x108]
push eax
mov eax, dword [esp + 0x14]
push esi
add edx, ecx
push edx
push eax
call dword [sym.imp.GDI32.dll_GetTextExtentPointA]
mov eax, dword [esp + 0xb4]
mov ecx, dword [esp + 0x108]
sub ecx, eax
mov eax, dword [esp + 0x2c]
add ecx, eax
mov dword [esp + 0x34], ecx
cmp dword [esp + 0x28], 1
jne 0x50207f
mov ecx, dword [esp + 0x24]
xor edx, edx
test ecx, ecx
sete dl
mov dword [esp + 0xc4], 1
mov dword [esp + 0x24], edx
mov ecx, dword [esp + 0x24]
test ecx, ecx
je 0x5020eb
mov ecx, dword [0x5a54f8]
call fcn.004336b0
mov eax, dword [eax*4 + 0x5a47c0]
mov ecx, dword [esp + 0x10]
push eax
push ecx
call dword [sym.imp.GDI32.dll_SetTextColor]
mov ecx, dword [0x5a550c]
call fcn.004336b0
mov edx, dword [eax*4 + 0x5a47c0]
mov eax, dword [esp + 0x10]
push edx
push eax
call dword [sym.imp.GDI32.dll_SetBkColor]
mov ecx, dword [esp + 0x18]
mov edx, dword [ecx]
mov eax, dword [esp + 0x14]
mov ecx, dword [esp + 0x1c]
push 0
push esi
add edx, eax
push edx
mov edx, dword [esp + 0x38]
lea eax, [esp + 0x38]
push eax
mov eax, dword [esp + 0x20]
push 6
push ecx
push edx
push eax
jmp 0x502113
mov ecx, dword [esp + 0x18]
mov edx, dword [ecx]
mov ecx, dword [esp + 0x14]
push 0
push esi
add edx, ecx
push edx
mov edx, dword [esp + 0x90]
lea ecx, [esp + 0x38]
push ecx
mov ecx, dword [esp + 0x2c]
push edx
mov edx, dword [esp + 0x24]
push ecx
push eax
push edx
call dword [sym.imp.GDI32.dll_ExtTextOutA]
cmp dword [esp + 0x28], 1
jne 0x50212f
mov ecx, dword [esp + 0x24]
xor eax, eax
test ecx, ecx
sete al
mov dword [esp + 0x24], eax
mov ecx, dword [esp + 0x34]
mov dword [esp + 0x2c], ecx
mov edx, dword [esp + 0x6c]
mov eax, dword [edx*4 + 0x5a47c0]
mov ecx, dword [esp + 0x10]
push eax
push ecx
call dword [sym.imp.GDI32.dll_SetTextColor]
mov esi, dword [esp + 0x74]
mov edx, dword [esi*4 + 0x5a47c0]
mov eax, dword [esp + 0x10]
push edx
push eax
call dword [sym.imp.GDI32.dll_SetBkColor]
cmp dword [esp + 0x48], 1
jne 0x502189
mov ecx, dword [0x5a54f8]
call fcn.004336b0
xor ecx, ecx
cmp esi, eax
setne cl
lea ecx, [ecx + ecx + 4]
mov dword [esp + 0x84], ecx
mov eax, dword [esp + 0x58]
test eax, eax
je 0x502368
mov edi, dword [esp + 0x2c]
mov dword [esp + 0x34], edi
jle 0x5021fa
mov dword [esp + 0xa4], eax
mov ecx, 2
xor eax, eax
cmp edi, ecx
jl 0x5021e3
mov edx, dword [ebx + 0x9e8]
jmp 0x5021c0
test eax, eax
mov esi, dword [ebx + eax*4 + 0x77c]
jle 0x5021d2
sub esi, dword [ebx + eax*4 + 0x778]
imul esi, edx
add ecx, esi
inc eax
cmp eax, 0x32
jl 0x5021df
xor eax, eax
cmp ecx, edi
jle 0x5021c0
mov eax, dword [esp + 0xa4]
dec eax
mov edi, ecx
mov dword [esp + 0xa4], eax
jne 0x5021a6
mov dword [esp + 0x34], edi
mov ecx, dword [esp + 0x28]
mov eax, 1
cmp ecx, eax
mov dword [esp + 0x58], 0
jne 0x502225
mov ecx, dword [esp + 0x24]
xor edx, edx
test ecx, ecx
sete dl
mov dword [esp + 0xc4], eax
mov dword [esp + 0x24], edx
mov eax, dword [esp + 0x24]
test eax, eax
je 0x502282
mov ecx, dword [0x5a54f8]
call fcn.004336b0
mov eax, dword [eax*4 + 0x5a47c0]
mov edi, dword [esp + 0x10]
push eax
push edi
call dword [sym.imp.GDI32.dll_SetTextColor]
mov ecx, dword [0x5a550c]
call fcn.004336b0
mov ecx, dword [eax*4 + 0x5a47c0]
push ecx
push edi
call dword [sym.imp.GDI32.dll_SetBkColor]
mov eax, dword [esp + 0x1c]
mov ecx, dword [esp + 0x2c]
push 0
push 0
push 0x583b74
lea edx, [esp + 0x38]
push edx
push 6
push eax
push ecx
push edi
jmp 0x5022a7
mov eax, dword [esp + 0x84]
mov ecx, dword [esp + 0x1c]
push 0
push 0
push 0x583b74
lea edx, [esp + 0x38]
push edx
mov edx, dword [esp + 0x3c]
push eax
mov eax, dword [esp + 0x24]
push ecx
push edx
push eax
call dword [sym.imp.GDI32.dll_ExtTextOutA]
mov eax, dword [esp + 0xc0]
test eax, eax
je 0x502346
mov eax, dword [esp + 0x24]
test eax, eax
je 0x5022d9
mov ecx, dword [0x5a54f8]
call fcn.004336b0
mov ecx, dword [eax*4 + 0x5a47c0]
push ecx
jmp 0x5022e5
mov edx, dword [esp + 0x6c]
mov eax, dword [edx*4 + 0x5a47c0]
push eax
push 1
push 0
call dword [sym.imp.GDI32.dll_CreatePen]
mov edi, eax
test edi, edi
je 0x502346
mov ecx, dword [esp + 0x10]
push edi
push ecx
call dword [sym.imp.GDI32.dll_SelectObject]
mov edx, dword [esp + 0x1c]
mov ecx, dword [esp + 0x2c]
mov ebx, eax
mov eax, dword [esp + 0x50]
push 0
lea esi, [edx + eax - 2]
mov edx, dword [esp + 0x14]
push esi
push ecx
push edx
call dword [sym.imp.GDI32.dll_MoveToEx]
mov eax, dword [esp + 0x34]
push esi
mov esi, dword [esp + 0x14]
push eax
push esi
call dword [sym.imp.GDI32.dll_LineTo]
push ebx
push esi
call dword [sym.imp.GDI32.dll_SelectObject]
push edi
call dword [sym.imp.GDI32.dll_DeleteObject]
mov ebx, dword [esp + 0x40]
cmp dword [esp + 0x28], 1
jne 0x50235c
mov eax, dword [esp + 0x24]
xor ecx, ecx
test eax, eax
sete cl
mov dword [esp + 0x24], ecx
mov edx, dword [esp + 0x34]
mov edi, dword [esp + 0x5c]
mov dword [esp + 0x2c], edx
mov eax, dword [esp + 0xb0]
cmp dword [esp + 0x24], eax
je 0x502379
mov dword [esp + 0x24], eax
mov eax, dword [esp + 0xd0]
cmp eax, dword [esp + 0xac]
jne 0x50239a
mov ecx, dword [esp + 0xc0]
cmp ecx, dword [esp + 0x78]
je 0x502492
mov edx, dword [esp + 0x80]
mov eax, dword [esp + 0x10]
mov esi, dword [sym.imp.GDI32.dll_SelectObject]
push edx
push eax
call esi
mov eax, dword [esp + 0x7c]
test eax, eax
je 0x5023be
push eax
call dword [sym.imp.GDI32.dll_DeleteObject]
mov ecx, dword [esp + 0xac]
test ecx, ecx
mov eax, dword [esp + 0x78]
mov dword [esp + 0xd0], ecx
mov dword [esp + 0xc0], eax
jne 0x5023f4
test eax, eax
jne 0x5023f4
mov ecx, dword [ebx + 0x974]
mov edx, dword [esp + 0x10]
push ecx
mov dword [esp + 0x80], eax
push edx
jmp 0x502468
test ecx, ecx
mov eax, dword [ebx + 0x9e0]
je 0x502417
xor ecx, ecx
cmp eax, 0x190
setle cl
dec ecx
and ecx, 0xfffffed4
add ecx, 0x2bc
mov eax, ecx
mov ecx, dword [ebx + 0x9e4]
lea edx, [ebx + 0x978]
push edx
mov edx, dword [esp + 0x7c]
push 0
push 0
push 0
push 0
push ecx
push 0
push edx
push 0
push eax
mov eax, dword [ebx + 0x9dc]
push 0
push 0
push 0
neg eax
push eax
call dword [sym.imp.GDI32.dll_CreateFontA]
test eax, eax
mov dword [esp + 0x7c], eax
je 0x50245c
mov ecx, dword [esp + 0x10]
push eax
push ecx
jmp 0x502468
mov edx, dword [ebx + 0x974]
mov eax, dword [esp + 0x10]
push edx
push eax
call esi
mov edx, dword [esp + 0x10]
lea ecx, [esp + 0x158]
push ecx
push edx
mov dword [esp + 0x88], eax
call dword [sym.imp.GDI32.dll_GetTextMetricsA]
mov eax, dword [esp + 0x178]
mov dword [esp + 0xb4], eax
mov edx, dword [esp + 0xd4]
test edx, edx
mov eax, dword [esp + 0x4c]
mov ecx, dword [esp + 0x70]
mov dword [esp + 0x28], eax
mov dword [esp + 0xa4], ecx
mov dword [esp + 0x14], edi
mov dword [esp + 0x44], 0
mov esi, 2
jne 0x5024cb
cmp dword [esp + 0x20], esi
jne 0x5026d3
test eax, eax
lea edx, [edi + 1]
mov dword [esp + 0x14], edx
mov edx, dword [esp + 0x98]
jne 0x502574
mov eax, dword [ebx + 0xd78]
test eax, eax
je 0x5026d3
mov eax, dword [esp + 0x88]
cmp eax, dword [esp + 0x90]
jl 0x5026d3
mov ecx, dword [esp + 0x54]
add ecx, edx
cmp eax, ecx
jge 0x5026d3
mov eax, dword [esp + 0x18]
mov ecx, dword [eax]
mov al, byte [ecx + edi + 1]
test al, al
jne 0x5026d3
mov eax, dword [esp + 0x94]
cmp dword [esp + 0xbc], eax
jl 0x5026d3
mov eax, 1
mov dword [esp + 0x70], eax
mov dword [esp + 0xa4], eax
mov dword [esp + 0x4c], eax
mov dword [esp + 0x28], eax
or eax, 0xffffffff
mov dword [ebx + 0xd90], eax
mov dword [ebx + 0xd98], eax
mov dword [ebx + 0xd8c], 0
mov dword [ebx + 0xd94], 0x3e7
jmp 0x502581
cmp eax, 1
jne 0x5026d3
test ecx, ecx
je 0x5025c6
mov eax, dword [esp + 0x64]
cmp eax, dword [esp + 0x90]
jl 0x5026d3
mov ecx, dword [esp + 0x54]
add edx, ecx
cmp eax, edx
jge 0x5026d3
mov eax, dword [esp + 0xd8]
cmp eax, dword [esp + 0x8c]
jl 0x5026d3
cmp eax, dword [esp + 0x94]
jge 0x5026d3
jmp 0x5026aa
mov edx, dword [esp + 0x88]
cmp edx, dword [esp + 0x90]
jl 0x50265d
mov eax, dword [esp + 0x54]
mov ecx, dword [esp + 0x98]
add eax, ecx
cmp edx, eax
jge 0x50265d
mov ecx, dword [esp + 0xbc]
cmp ecx, dword [esp + 0x8c]
jl 0x502634
cmp ecx, dword [esp + 0x94]
mov esi, 2
jge 0x502634
cmp dword [esp + 0x3c], 1
mov dword [esp + 0x4c], esi
mov dword [esp + 0x28], esi
mov dword [ebx + 0xd98], 0
mov dword [ebx + 0xd94], edi
jne 0x502672
mov eax, dword [esp + 0x14]
mov dword [ebx + 0xd94], eax
jmp 0x502672
cmp ecx, dword [esp + 0xd8]
jge 0x502672
mov ecx, dword [esp + 0x64]
cmp ecx, dword [esp + 0x90]
jl 0x50266d
cmp ecx, eax
jge 0x50266d
mov esi, 2
mov dword [esp + 0x4c], esi
mov dword [esp + 0x28], esi
jmp 0x502672
cmp edx, dword [esp + 0x64]
jge 0x502672
mov dword [esp + 0x4c], esi
mov dword [esp + 0x28], esi
jmp 0x502672
mov esi, 2
mov ecx, dword [esp + 0x18]
mov eax, dword [ecx]
mov cl, byte [eax + edi + 1]
test cl, cl
jne 0x5026d3
cmp edx, dword [esp + 0x90]
jl 0x5026d3
mov ecx, dword [esp + 0x98]
mov eax, dword [esp + 0x54]
add ecx, eax
cmp edx, ecx
jge 0x5026d3
mov ecx, dword [esp + 0x94]
cmp dword [esp + 0xbc], ecx
jl 0x5026d3
cmp dword [esp + 0x3c], 1
mov dword [esp + 0x4c], esi
mov dword [esp + 0x28], esi
mov dword [ebx + 0xd98], 0
mov dword [ebx + 0xd94], edi
jne 0x5026d3
mov edx, dword [esp + 0x14]
mov dword [ebx + 0xd94], edx
mov ecx, dword [esp + 0x20]
xor eax, eax
cmp ecx, 3
mov dword [esp + 0xd4], eax
mov dword [esp + 0x20], eax
je 0x5019b4
cmp dword [esp + 0x60], eax
jne 0x502709
cmp edi, dword [esp + 0xa0]
mov esi, dword [esp + 0x18]
jl 0x501a2f
jmp 0x501c41
mov dword [esp + 0x60], eax
mov dword [esp + 0x14], 0xffffffff
jmp 0x5019b4
mov ecx, dword [esp + 0x14]
cmp ecx, 0xffffffff
mov eax, dword [esp + 0x44]
jne 0x50272d
mov dword [esp + 0x14], eax
jmp 0x502733
cmp eax, ecx
jle 0x502733
mov edi, eax
mov eax, dword [esp + 0x14]
test eax, eax
jl 0x5028e7
cmp edi, eax
jle 0x5028e7
mov ecx, dword [0x5b121c]
sub edi, eax
test ecx, ecx
je 0x502770
test eax, eax
jle 0x502770
mov edx, dword [esi]
mov ecx, eax
push ecx
push edx
call fcn.00572da3
add esp, 8
cmp eax, 2
jne 0x502770
inc dword [esp + 0x14]
jmp 0x502778
mov eax, dword [esp + 0x3c]
test eax, eax
je 0x5027c5
mov eax, dword [esp + 0x14]
mov ecx, dword [esi]
push eax
push ecx
call fcn.00572da3
add esp, 8
cmp eax, 1
jne 0x5027c5
cmp edi, eax
jne 0x502798
mov edi, 2
jmp 0x50279d
cmp edi, 2
jne 0x5027c5
mov eax, dword [esi]
mov edx, dword [esp + 0x14]
mov cl, byte [eax + edx + 1]
test cl, cl
je 0x5028e7
mov ecx, edx
inc ecx
push ecx
push eax
call fcn.00572da3
add esp, 8
cmp eax, 2
jne 0x5028e7
mov eax, dword [esi]
mov ecx, dword [esp + 0x10]
lea edx, [esp + 0x118]
push edx
mov edx, dword [esp + 0x18]
push edi
add eax, edx
push eax
push ecx
call dword [sym.imp.GDI32.dll_GetTextExtentPointA]
mov eax, dword [esp + 0xb4]
mov edx, dword [esp + 0x118]
mov ecx, dword [esp + 0x28]
sub edx, eax
mov eax, dword [esp + 0x2c]
add edx, eax
cmp ecx, 1
mov dword [esp + 0x34], edx
jne 0x50281f
mov edx, dword [esp + 0x24]
xor ecx, ecx
test edx, edx
sete cl
mov dword [esp + 0xc4], 1
mov dword [esp + 0x24], ecx
mov ecx, dword [esp + 0x24]
test ecx, ecx
je 0x50289f
mov ecx, dword [0x5a54f8]
call fcn.004336b0
mov edx, dword [eax*4 + 0x5a47c0]
mov eax, dword [esp + 0x10]
push edx
push eax
call dword [sym.imp.GDI32.dll_SetTextColor]
mov ecx, dword [0x5a550c]
mov esi, eax
call fcn.004336b0
mov ecx, dword [eax*4 + 0x5a47c0]
mov edx, dword [esp + 0x10]
push ecx
push edx
call dword [sym.imp.GDI32.dll_SetBkColor]
mov eax, dword [esp + 0x18]
mov ecx, dword [eax]
mov edx, dword [esp + 0x14]
mov eax, dword [esp + 0x1c]
push 0
push edi
mov edi, dword [esp + 0x18]
add ecx, edx
push ecx
mov ecx, dword [esp + 0x38]
lea edx, [esp + 0x38]
push edx
push 6
push eax
push ecx
push edi
call dword [sym.imp.GDI32.dll_ExtTextOutA]
push esi
push edi
call dword [sym.imp.GDI32.dll_SetTextColor]
mov esi, dword [esp + 0x18]
jmp 0x5028c9
mov edx, dword [esi]
mov ecx, dword [esp + 0x14]
push 0
push edi
add edx, ecx
push edx
mov edx, dword [esp + 0x90]
lea ecx, [esp + 0x38]
push ecx
mov ecx, dword [esp + 0x2c]
push edx
mov edx, dword [esp + 0x24]
push ecx
push eax
push edx
call dword [sym.imp.GDI32.dll_ExtTextOutA]
cmp dword [esp + 0x28], 1
jne 0x5028df
mov ecx, dword [esp + 0x24]
xor eax, eax
test ecx, ecx
sete al
mov dword [esp + 0x24], eax
mov ecx, dword [esp + 0x34]
mov dword [esp + 0x2c], ecx
cmp dword [esp + 0x48], 1
je 0x5016ef
mov ecx, dword [0x5a54f8]
call fcn.004336b0
mov edx, dword [eax*4 + 0x5a47c0]
mov eax, dword [esp + 0x10]
push edx
push eax
call dword [sym.imp.GDI32.dll_SetBkColor]
mov ecx, dword [ebp + 0x10]
mov edi, dword [esp + 0x1c]
mov eax, dword [esp + 0x2c]
push 0
push 0
push 0x583b74
lea edx, [esp + 0x38]
push edx
push 6
push edi
mov dword [esp + 0x4c], ecx
mov ecx, dword [esp + 0x28]
push eax
push ecx
call dword [sym.imp.GDI32.dll_ExtTextOutA]
cmp dword [ebx + 0x6e4], esi
jne 0x50294e
cmp dword [esi + 0x20], 2
je 0x5016f3
mov eax, dword [esp + 0x10]
push 0
push 0
push 0x583b74
lea edx, [esp + 0x38]
push edx
push 6
push edi
push 0
push eax
mov dword [esp + 0x4c], 0
mov dword [esp + 0x54], 2
call dword [sym.imp.GDI32.dll_ExtTextOutA]
jmp 0x5016f3
mov ecx, dword [esp + 0xe4]
mov esi, dword [esp + 0x10]
push ecx
push esi
call dword [sym.imp.GDI32.dll_SetBkMode]
mov eax, dword [esp + 0xa8]
test eax, eax
jl 0x5029a8
push eax
call fcn.00572bf6
add esp, 4
mov edx, dword [esp + 0x80]
push edx
push esi
call dword [sym.imp.GDI32.dll_SelectObject]
mov eax, dword [esp + 0x7c]
test eax, eax
je 0x5029c6
push eax
call dword [sym.imp.GDI32.dll_DeleteObject]
mov eax, dword [esp + 0x48]
test eax, eax
je 0x502a14
mov esi, dword [esp + 0x10]
mov eax, dword [ebp + 0x14]
mov ecx, dword [ebp + 0x10]
mov edi, dword [esp + 0xb8]
push 0xcc0020
push 0
push 0
push esi
push eax
mov eax, dword [ebp + 8]
sub ecx, eax
push ecx
push 0
push eax
push edi
call dword [sym.imp.GDI32.dll_BitBlt]
mov edx, dword [esp + 0xe0]
push edx
push esi
call dword [sym.imp.GDI32.dll_SelectObject]
push esi
call dword [sym.imp.GDI32.dll_DeleteDC]
mov dword [esp + 0x10], edi
mov eax, dword [esp + 0xdc]
test eax, eax
je case.0x500ecc.4
mov eax, dword [esp + 0x10]
mov ecx, dword [esp + 0x40]
mov edx, dword [ecx + 0x864]
push eax
push edx
call dword [sym.imp.USER32.dll_ReleaseDC]
mov esi, dword [esp + 0x40]
mov eax, dword [esi + 0x96c]
xor edi, edi
cmp eax, edi
je 0x502a52
push eax
call dword [sym.imp.GDI32.dll_DeleteObject]
mov dword [esi + 0x96c], edi
mov eax, dword [esi]
mov dword [esi + 0x970], edi
cmp eax, dword [0x5a56dc]
jne 0x502a90
cmp dword [esp + 0xc4], edi
je 0x502a8a
push 0x7f01
push edi
mov dword [esi + 0xd78], 1
call dword [sym.imp.USER32.dll_LoadCursorA]
push eax
call dword [sym.imp.USER32.dll_SetCursor]
jmp 0x502a90
mov dword [esi + 0xd78], edi
mov ecx, dword [esi + 0x700]
mov dword [esi + 0x704], ecx
mov dword [0x5ae258], edi
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 0x10