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

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0x26c
mov ecx, dword [0x6870f8]
push ebx
xor eax, eax
cmp ecx, eax
push esi
push edi
jne 0x52dbf8
mov esi, dword [ebp + 8]
mov ecx, dword [esi + 0x212c]
mov edx, dword [esi + 0x2130]
mov edi, dword [sym.imp.USER32.dll_SetRect]
mov dword [esp + 0x100], ecx
mov ecx, dword [esi + 0x2134]
mov dword [esp + 0x104], ecx
cmp dword [esi + 0x2128], eax
mov dword [esp + 0x10c], edx
mov edx, dword [esi + 0x2138]
mov dword [0x6870f8], 1
mov dword [esp + 0x3c], eax
mov dword [esp + 0x64], eax
mov dword [esp + 0xc4], eax
mov dword [esp + 0xd0], eax
mov dword [esp + 0xcc], eax
mov dword [esp + 0x108], edx
je 0x52c072
lea eax, [esi + 0x213c]
push eax
lea ecx, [esp + 0x144]
push ecx
call dword [sym.imp.USER32.dll_CopyRect]
jmp 0x52c090
push 0xffffd8f1
push 0xffffd8f1
push 0x270f
push 0x270f
lea edx, [esp + 0x150]
push edx
call edi
push 0xffffd8f1
push 0xffffd8f1
push 0x270f
push 0x270f
lea eax, [esi + 0x213c]
push eax
call edi
push 0xffffd8f1
push 0xffffd8f1
push 0x270f
push 0x270f
lea ecx, [esp + 0xec]
push ecx
call edi
mov edx, dword [esi]
push edx
call dword [sym.imp.USER32.dll_IsIconic]
test eax, eax
jne case.0x52c135.4
mov eax, dword [ebp + 8]
mov ecx, dword [eax]
push ecx
call dword [sym.imp.USER32.dll_IsWindowVisible]
test eax, eax
je case.0x52c135.4
mov esi, dword [ebp + 8]
mov edx, dword [esi]
push edx
call fcn.0058ee70
add esp, 4
test eax, eax
je 0x52c123
mov eax, dword [0x6a0f44]
push eax
call dword [sym.imp.USER32.dll_GetTopWindow]
mov edi, eax
push edi
call dword [sym.imp.USER32.dll_IsZoomed]
test eax, eax
je 0x52c123
cmp dword [esi], edi
jne case.0x52c135.4
mov eax, dword [esi + 0x1314]
add eax, 0xfffffffd
cmp eax, 6
ja case.default.0x52c135
jmp dword [eax*4 + 0x52dc00]
mov eax, dword [ebp + 8]
cmp dword [eax + 0x1318], 1
jne 0x52c173
mov ecx, dword [eax]
push ecx
call fcn.00545990
add esp, 4
test eax, eax
je case.0x52c135.4
push 0
push 1
push 1
push 1
push 1
push eax
call fcn.00571680
add esp, 0x18
jmp case.0x52c135.4
mov edx, dword [eax]
push edx
call fcn.0049ef40
add esp, 4
test eax, eax
je case.0x52c135.4
push 0
push 1
push 1
push 1
push 1
push eax
call fcn.00572130
add esp, 0x18
jmp case.0x52c135.4
mov eax, dword [ebp + 8]
cmp dword [eax + 0x1318], 1
je case.0x52c135.4
mov esi, eax
mov eax, dword [esi + 0x134c]
test eax, eax
je case.default.0x52c135
push esi
call fcn.00482720
add esp, 4
jmp case.0x52c135.4
mov esi, dword [ebp + 8]
mov eax, dword [esi + 0x1478]
test eax, eax
je case.0x52c135.4
mov esi, dword [ebp + 0xc]
test esi, esi
jne 0x52c1fc
push eax
call dword [sym.imp.USER32.dll_GetDC]
mov esi, eax
test esi, esi
je case.0x52c135.4
mov dword [esp + 0xd0], 1
mov ebx, dword [ebp + 8]
mov eax, dword [ebx + 0x1728]
test eax, eax
jne 0x52c225
mov ecx, dword [ebx]
cmp ecx, dword [0x63ce1c]
je 0x52c221
mov ecx, dword [ebx + 0x1750]
test ecx, ecx
je 0x52c35a
test eax, eax
je 0x52c232
mov edx, dword [ebx]
push 0
push edx
call fcn.0041e9d0
add esp, 8
mov edi, dword [sym.imp.GDI32.dll_CreateCompatibleDC]
push esi
mov dword [esp + 0x68], esi
call edi
mov esi, eax
test esi, esi
je 0x52c34e
mov eax, dword [esp + 0x64]
push eax
call edi
mov edi, eax
test edi, edi
je 0x52c347
mov eax, dword [ebx + 0x174c]
test eax, eax
jne 0x52c27d
mov ecx, dword [ebp + 0x1c]
mov edx, dword [ebp + 0x18]
mov eax, dword [esp + 0x64]
push ecx
push edx
push eax
call dword [sym.imp.GDI32.dll_CreateCompatibleBitmap]
mov dword [ebx + 0x174c], eax
mov eax, dword [ebx + 0x174c]
test eax, eax
je 0x52c338
push eax
push esi
call dword [sym.imp.GDI32.dll_SelectObject]
mov dword [esp + 0xc4], eax
mov eax, dword [ebx + 0x1728]
test eax, eax
je 0x52c2e3
push eax
push edi
call dword [sym.imp.GDI32.dll_SelectObject]
mov ecx, dword [ebp + 0x1c]
mov edx, dword [ebp + 0x18]
push 0xcc0020
push 0
push 0
push edi
push ecx
push edx
push 0
push 0
push esi
mov dword [esp + 0x70], eax
call dword [sym.imp.GDI32.dll_BitBlt]
mov eax, dword [esp + 0x4c]
push eax
push edi
call dword [sym.imp.GDI32.dll_SelectObject]
mov dword [esp + 0x3c], 1
jmp 0x52c338
mov ecx, dword [0x63ca90]
push ecx
call fcn.0043c610
mov edx, dword [eax*4 + 0x638070]
add esp, 4
push edx
push esi
call dword [sym.imp.GDI32.dll_SetBkColor]
mov ecx, dword [ebp + 0x18]
mov edx, dword [ebp + 0x1c]
xor eax, eax
push eax
push eax
push 0x5f4c90
mov dword [esp + 0x3c], ecx
lea ecx, [esp + 0x34]
push ecx
push 6
push eax
push eax
push esi
mov dword [esp + 0x48], eax
mov dword [esp + 0x4c], eax
mov dword [esp + 0x54], edx
call dword [sym.imp.GDI32.dll_ExtTextOutA]
mov dword [esp + 0x3c], 2
push edi
call dword [sym.imp.GDI32.dll_DeleteDC]
mov eax, dword [esp + 0x3c]
test eax, eax
jne 0x52c35a
push esi
call dword [sym.imp.GDI32.dll_DeleteDC]
mov esi, dword [esp + 0x64]
mov dword [esp + 0x64], 0
mov eax, dword [ebx + 0x12c4]
test eax, eax
je 0x52c5f5
mov eax, dword [ebx + 0x1308]
sub eax, dword [ebx + 0x130c]
mov dword [esp + 0x7c], eax
jmp 0x52c380
mov ecx, dword [ebx + 0x12c4]
mov edi, dword [ecx + 0x44]
test edi, edi
mov edx, dword [ebx + 0x189c]
mov dword [esp + 0x40], edx
mov dword [esp + 0x14], edi
je 0x52c5f5
nop
test eax, eax
jle 0x52c3b9
cmp edi, ecx
je 0x52c3b9
mov edi, dword [edi + 0x44]
dec eax
test edi, edi
mov dword [esp + 0x14], edi
jne 0x52c3a0
jmp 0x52c5f5
test edi, edi
je 0x52c5f5
mov eax, dword [0x63ce1c]
cmp dword [ebx], eax
je 0x52c497
mov eax, dword [ebx + 0x1314]
test eax, eax
je 0x52c3eb
cmp eax, 1
je 0x52c3eb
cmp eax, 2
je 0x52c3eb
cmp eax, 9
jne 0x52c497
mov edx, dword [ebp + 0x1c]
mov ecx, dword [esp + 0x40]
mov eax, edx
sub eax, ecx
mov ecx, dword [edi + 0x14]
dec eax
cmp ecx, dword [ebp + 0x18]
mov dword [esp + 0x4c], edi
jne 0x52c431
mov ecx, dword [ebx + 0x1898]
cmp dword [edi + 0x18], ecx
jne 0x52c431
cmp edi, dword [ebx + 0x12c4]
je 0x52c48d
mov edi, dword [edi + 0x44]
test edi, edi
je 0x52c48d
mov ecx, dword [esp + 0x40]
sub eax, ecx
neg ecx
cmp eax, ecx
jl 0x52c48d
mov ecx, dword [edi + 0x14]
cmp ecx, dword [ebp + 0x18]
je 0x52c403
mov edx, dword [ebp + 0x18]
push edx
push edi
push ebx
push esi
call fcn.0052b010
add esp, 0x10
test eax, eax
je 0x52c48a
mov edi, dword [esp + 0x7c]
test edi, edi
jne 0x52c450
push 1
jmp 0x52c452
push 0
push ebx
call fcn.00591350
mov eax, dword [ebx + 0x130c]
mov ecx, dword [ebx + 0x1310]
add esp, 8
cmp eax, ecx
jge 0x52c479
mov ecx, dword [ebx + 0x1308]
sub ecx, edi
mov dword [ebx + 0x130c], ecx
mov eax, dword [ebx + 0x1308]
sub eax, dword [ebx + 0x130c]
jmp 0x52c380
mov edx, dword [ebp + 0x1c]
mov edi, dword [esp + 0x4c]
mov dword [esp + 0x14], edi
jmp 0x52c49a
mov edx, dword [ebp + 0x1c]
test edi, edi
je 0x52c5f5
mov eax, dword [edi + 8]
mov ecx, dword [esp + 0x40]
sub edx, ecx
mov dword [esp + 0x68], eax
mov eax, dword [ebx + 0x12c4]
dec edx
cmp edi, eax
mov dword [esp + 0x10], edx
je 0x52c5ad
mov edx, dword [ebx + 0x1360]
mov dword [esp + 0x4c], edx
lea esp, [esp]
mov eax, dword [esp + 0x10]
sub eax, ecx
cmp edx, 1
mov dword [esp + 0x10], eax
je 0x52c4ed
cmp edx, 2
jne 0x52c4f1
cmp dword [0x680f7c], 1
jne 0x52c4f1
sub dword [esp + 0x10], ecx
mov edi, dword [edi + 0x44]
test edi, edi
je 0x52c5f1
mov eax, dword [edi + 8]
cmp eax, dword [esp + 0x68]
je 0x52c5df
cmp edx, 3
mov dword [esp + 0x68], eax
je 0x52c51f
cmp edx, 2
jne 0x52c545
cmp dword [0x680f7c], edx
jne 0x52c545
mov ecx, dword [esp + 0x40]
mov eax, 0x55555555
imul ecx
sub edx, ecx
sar edx, 1
mov eax, edx
shr eax, 0x1f
add edx, eax
mov eax, dword [esp + 0x10]
add eax, edx
mov edx, dword [esp + 0x4c]
mov dword [esp + 0x10], eax
jmp 0x52c549
mov ecx, dword [esp + 0x40]
mov eax, ecx
neg eax
cmp dword [esp + 0x10], eax
jge 0x52c5e3
mov eax, dword [esp + 0x10]
add eax, ecx
cmp edx, 1
mov dword [esp + 0x14], edi
mov dword [esp + 0x10], eax
je 0x52c578
cmp edx, 2
jne 0x52c57c
cmp dword [0x680f7c], 1
jne 0x52c57c
add dword [esp + 0x10], ecx
cmp edx, 3
je 0x52c58e
cmp edx, 2
jne 0x52c5a6
cmp dword [0x680f7c], edx
jne 0x52c5a6
mov eax, 0x55555556
imul ecx
mov eax, dword [esp + 0x10]
mov ecx, edx
shr ecx, 0x1f
add edx, ecx
add eax, edx
mov dword [esp + 0x10], eax
mov edi, dword [edi + 0x40]
mov dword [esp + 0x14], edi
test edi, edi
je 0x52c5f5
mov eax, dword [ebx + 0x1754]
push eax
push esi
call dword [sym.imp.GDI32.dll_SelectObject]
mov dword [esp + 0x60], eax
mov eax, dword [ebx + 0x214c]
test eax, eax
je 0x52c669
xor eax, eax
mov dword [esp + 0x94], eax
jmp 0x52c697
mov ecx, dword [esp + 0x40]
cmp edi, dword [ebx + 0x12c4]
jne 0x52c4d0
jmp 0x52c5a9
mov dword [esp + 0x14], edi
mov edx, dword [ebx + 0x1754]
push edx
push esi
call dword [sym.imp.GDI32.dll_SelectObject]
push 0
add ebx, 0x189c
push ebx
push 0
push esi
mov edi, eax
call fcn.0049ab30
add esp, 0x10
push edi
push esi
call dword [sym.imp.GDI32.dll_SelectObject]
mov eax, dword [esp + 0x3c]
test eax, eax
jne 0x52db21
mov eax, dword [0x63ca90]
push eax
call fcn.0043c610
mov ecx, dword [eax*4 + 0x638070]
add esp, 4
push ecx
push esi
call dword [sym.imp.GDI32.dll_SetBkColor]
push 0
push 0
push 0x5f4c90
lea edx, [ebp + 0x10]
push edx
push 6
push 0
push 0
push esi
call dword [sym.imp.GDI32.dll_ExtTextOutA]
jmp 0x52db5e
mov eax, dword [0x61b5c4]
test eax, eax
jne 0x52c687
mov eax, dword [ebx + 0x18a4]
test eax, eax
mov dword [esp + 0x94], 0
je 0x52c692
mov dword [esp + 0x94], 1
mov eax, dword [0x693624]
test eax, eax
mov dword [esp + 0x9c], eax
mov dword [esp + 0x4c], 0xffffffff
je 0x52c6be
mov ecx, dword [ebx + 0x1894]
push ecx
push esi
call fcn.0049cd10
add esp, 8
mov dword [esp + 0x4c], eax
mov edx, dword [edi + 0x1c]
push edx
call fcn.0043c610
mov dword [esp + 0x58], eax
mov eax, dword [0x63ca90]
push eax
call fcn.0043c610
mov ecx, dword [esp + 0x5c]
mov edx, dword [ecx*4 + 0x638070]
add esp, 8
push edx
push esi
mov dword [esp + 0x64], eax
call dword [sym.imp.GDI32.dll_SetTextColor]
mov eax, dword [esp + 0x5c]
mov ecx, dword [eax*4 + 0x638070]
push ecx
push esi
call dword [sym.imp.GDI32.dll_SetBkColor]
push 1
push esi
call dword [sym.imp.GDI32.dll_SetBkMode]
mov dword [esp + 0xfc], eax
cmp dword [esp + 0x3c], 1
jne 0x52c724
mov dword [esp + 0x6c], 4
jmp 0x52c7a1
mov eax, dword [esp + 0x10]
test eax, eax
mov dword [esp + 0x6c], 6
jl 0x52c76a
mov edx, dword [ebp + 0x18]
mov ecx, dword [esp + 0x10]
xor eax, eax
push eax
push eax
mov dword [esp + 0x38], edx
mov edx, dword [esp + 0x48]
add ecx, edx
push 0x5f4c90
mov dword [esp + 0x40], ecx
lea ecx, [esp + 0x34]
push ecx
push 6
push eax
push eax
push esi
mov dword [esp + 0x48], eax
mov dword [esp + 0x4c], eax
call dword [sym.imp.GDI32.dll_ExtTextOutA]
mov eax, dword [ebp + 0x1c]
mov edx, dword [ebp + 0x18]
push 0
dec eax
push 0
mov dword [esp + 0x34], eax
inc eax
push 0x5f4c90
mov dword [esp + 0x40], eax
lea eax, [esp + 0x34]
push eax
push 6
push 0
push 0
push esi
mov dword [esp + 0x48], 0
mov dword [esp + 0x50], edx
call dword [sym.imp.GDI32.dll_ExtTextOutA]
xor eax, eax
push eax
push eax
push eax
push eax
lea ecx, [esp + 0x198]
push ecx
mov dword [esp + 0x84], eax
mov dword [esp + 0x9c], eax
mov dword [esp + 0x98], eax
mov dword [esp + 0x6c], eax
mov dword [esp + 0xc8], eax
mov dword [esp + 0xa4], eax
mov dword [esp + 0xd4], eax
call dword [sym.imp.USER32.dll_SetRect]
mov edx, dword [edi + 8]
xor eax, eax
mov dword [esp + 0x68], edx
mov dword [esp + 0x38], eax
mov dword [esp + 0xb0], eax
mov dword [esp + 0xa8], eax
mov edi, edi
mov eax, dword [esp + 0x94]
test eax, eax
je 0x52c826
mov eax, dword [edi]
push eax
call fcn.005868a0
add esp, 4
cmp eax, 2
mov dword [esp + 0xac], 1
je 0x52c831
mov dword [esp + 0xac], 0
mov eax, dword [esp + 0xb0]
test eax, eax
je 0x52c90f
mov eax, dword [esp + 0x70]
test eax, eax
mov dword [esp + 0xb0], 0
je 0x52c884
mov ecx, dword [esp + 0x60]
push ecx
push esi
call dword [sym.imp.GDI32.dll_SelectObject]
mov edx, dword [esp + 0x70]
push edx
call dword [sym.imp.GDI32.dll_DeleteObject]
mov eax, dword [ebx + 0x1754]
push eax
push esi
mov dword [esp + 0x78], 0
call dword [sym.imp.GDI32.dll_SelectObject]
mov dword [esp + 0x60], eax
mov ecx, dword [edi + 0x1c]
xor eax, eax
push ecx
mov dword [esp + 0x8c], eax
mov dword [esp + 0x88], eax
mov dword [esp + 0x5c], eax
mov dword [esp + 0xb8], eax
mov dword [esp + 0x94], eax
mov dword [esp + 0xc4], eax
call fcn.0043c610
mov edx, dword [0x63ca90]
push edx
mov dword [esp + 0x5c], eax
call fcn.0043c610
mov dword [esp + 0x64], eax
mov eax, dword [esp + 0x5c]
mov ecx, dword [eax*4 + 0x638070]
add esp, 8
push ecx
push esi
call dword [sym.imp.GDI32.dll_SetTextColor]
mov edx, dword [esp + 0x5c]
mov eax, dword [edx*4 + 0x638070]
push eax
push esi
call dword [sym.imp.GDI32.dll_SetBkColor]
mov eax, dword [esp + 0x3c]
xor ecx, ecx
cmp eax, 1
setne cl
mov dword [esp + 0x38], 0
lea ecx, [ecx + ecx + 4]
mov dword [esp + 0x6c], ecx
lea edx, [esp + 0x208]
xor eax, eax
push edx
push esi
mov dword [esp + 0xd0], eax
mov dword [esp + 0x50], eax
mov dword [esp + 0x4c], eax
call dword [sym.imp.GDI32.dll_GetTextMetricsA]
mov eax, dword [esp + 0x10]
mov edx, dword [esp + 0x40]
mov ecx, dword [ebp + 0x18]
mov dword [esp + 0x2c], eax
add eax, edx
mov dword [esp + 0x34], eax
mov eax, dword [ebx + 0x1360]
cmp eax, 1
mov dword [esp + 0x28], 2
mov dword [esp + 0x30], ecx
mov dword [esp + 0xa0], 0
je 0x52c9a6
cmp eax, 2
mov edx, dword [0x680f7c]
jne 0x52c976
cmp edx, 1
je 0x52c9a6
cmp eax, 3
je 0x52c984
cmp eax, 2
jne 0x52c9b1
cmp edx, eax
jne 0x52c9b1
mov eax, dword [edi + 0x40]
test eax, eax
je 0x52c9b1
mov edx, dword [esp + 0x68]
cmp dword [eax + 8], edx
je 0x52c9b1
mov eax, 0x55555556
imul dword [esp + 0x40]
mov eax, edx
shr eax, 0x1f
add edx, eax
jmp 0x52c9aa
mov edx, dword [esp + 0x40]
mov dword [esp + 0xa0], edx
cmp dword [ebx + 0x12f0], edi
jne 0x52cb0f
cmp dword [edi + 0x20], 2
jne 0x52cb0f
mov eax, dword [esp + 0x3c]
push eax
lea ecx, [esp + 0x2c]
push ecx
push esi
push ebx
call fcn.00427a10
mov ebx, dword [esp + 0x24]
add esp, 0x10
mov edi, dword [esp + 0x10]
mov eax, dword [ebp + 8]
cmp dword [eax + 0x12f0], ebx
jne 0x52ca0c
mov ecx, eax
mov edx, dword [ecx]
push edx
call fcn.00597160
add esp, 4
test eax, eax
je 0x52ca0c
mov eax, dword [ebp + 8]
mov dword [eax + 0x12f8], 1
mov eax, dword [ebp + 8]
cmp dword [eax + 0x1300], ebx
jne 0x52ca21
mov dword [eax + 0x1300], 0
mov ebx, dword [ebx + 0x40]
test ebx, ebx
mov dword [esp + 0x14], ebx
je 0x52dade
mov eax, dword [esp + 0x40]
mov edx, dword [esp + 0xa8]
mov ecx, dword [esp + 0x68]
add edi, eax
mov eax, dword [ebx + 8]
inc edx
cmp eax, ecx
mov dword [esp + 0x10], edi
mov dword [esp + 0xa8], edx
je 0x52ca63
mov dword [esp + 0x68], eax
mov dword [esp + 0xb0], 1
mov ebx, dword [esp + 0xa0]
test ebx, ebx
je 0x52cacd
cmp dword [esp + 0x3c], 1
je 0x52cac7
mov ecx, dword [ebp + 0x10]
mov edx, dword [ebp + 0x18]
mov dword [esp + 0x28], ecx
mov ecx, dword [0x63ca90]
lea eax, [ebx + edi]
push ecx
mov dword [esp + 0x34], edx
mov dword [esp + 0x30], edi
mov dword [esp + 0x38], eax
call fcn.0043c610
mov edx, dword [eax*4 + 0x638070]
add esp, 4
push edx
push esi
call dword [sym.imp.GDI32.dll_SetBkColor]
push 0
push 0
push 0x5f4c90
lea eax, [esp + 0x34]
push eax
push 6
push 0
push 0
push esi
call dword [sym.imp.GDI32.dll_ExtTextOutA]
add edi, ebx
mov dword [esp + 0x10], edi
mov ecx, dword [ebp + 0x1c]
sub ecx, dword [esp + 0x40]
dec ecx
cmp edi, ecx
jg 0x52dade
mov edx, dword [esp + 0x54]
mov eax, dword [edx*4 + 0x638070]
push eax
push esi
call dword [sym.imp.GDI32.dll_SetTextColor]
mov ecx, dword [esp + 0x5c]
mov edx, dword [ecx*4 + 0x638070]
push edx
push esi
call dword [sym.imp.GDI32.dll_SetBkColor]
mov ebx, dword [ebp + 8]
mov edi, dword [esp + 0x14]
jmp 0x52c800
xor eax, eax
mov dword [esp + 0x24], eax
mov dword [esp + 0x1c], eax
mov dword [esp + 0x20], eax
mov eax, dword [edi]
lea ebx, [eax + 1]
mov dl, byte [eax]
inc eax
test dl, dl
jne 0x52cb22
sub eax, ebx
mov dword [esp + 0x7c], eax
mov eax, dword [edi + 0x10]
test eax, eax
jle 0x52cc75
mov eax, dword [esp + 0x2c]
mov edx, dword [esp + 0x28]
mov dword [esp + 0x134], eax
mov eax, dword [esp + 0x7c]
test eax, eax
mov dword [esp + 0x138], ecx
mov ecx, dword [esp + 0x34]
mov dword [esp + 0x130], edx
mov dword [esp + 0x13c], ecx
jle 0x52cc09
mov edi, dword [esp + 0x24]
mov ebx, dword [esp + 0x14]
cmp edi, dword [ebx + 0x10]
jge 0x52cc09
mov eax, dword [ebx]
cmp byte [eax + edi], 0x20
jne 0x52cc09
mov ecx, dword [esp + 0x94]
test ecx, ecx
je 0x52cbaf
mov ecx, dword [esp + 0xac]
test ecx, ecx
je 0x52cbaf
push edi
push eax
call fcn.005867a0
add esp, 8
test eax, eax
jg 0x52cc09
mov eax, dword [esp + 0x9c]
test eax, eax
je 0x52cbcb
mov edx, dword [ebx]
push edi
push edx
call fcn.005dd489
add esp, 8
cmp eax, 1
je 0x52cc09
mov eax, dword [ebx]
push 0
push 0
push 0
push 1
add eax, edi
push eax
push esi
call fcn.0052a000
mov ecx, dword [esp + 0x240]
add esp, 0x18
sub eax, ecx
jns 0x52cbee
xor eax, eax
mov edx, dword [esp + 0x28]
add edx, eax
mov eax, dword [esp + 0x7c]
inc edi
cmp edi, eax
mov dword [esp + 0x28], edx
mov dword [esp + 0x24], edi
jl 0x52cb76
mov eax, dword [esp + 0x24]
mov ecx, dword [esp + 0x28]
mov dword [esp + 0x1c], eax
mov dword [esp + 0x20], eax
mov eax, dword [esp + 0x3c]
test eax, eax
mov dword [esp + 0x138], ecx
jne 0x52cc75
mov edx, dword [0x63ca90]
push edx
call fcn.0043c610
mov eax, dword [eax*4 + 0x638070]
mov ebx, dword [sym.imp.GDI32.dll_SetBkColor]
add esp, 4
push eax
push esi
call ebx
mov edx, dword [esp + 0x10]
push 0
push 0
push 0x5f4c90
lea ecx, [esp + 0x13c]
push ecx
push 6
mov edi, eax
mov eax, dword [esp + 0x144]
push edx
push eax
push esi
call dword [sym.imp.GDI32.dll_ExtTextOutA]
push edi
push esi
call ebx
xor eax, eax
mov dword [esp + 0x78], eax
mov dword [esp + 0xb8], eax
mov dword [esp + 0x8c], eax
mov dword [esp + 0x74], eax
mov edi, dword [esp + 0x24]
mov ebx, dword [esp + 0x14]
cmp edi, dword [esp + 0x7c]
jge 0x52cf64
mov eax, dword [esp + 0x94]
test eax, eax
je 0x52cd2a
mov eax, dword [esp + 0xac]
test eax, eax
je 0x52cd2a
mov ecx, dword [ebx]
push edi
push ecx
call fcn.005867a0
add esp, 8
test eax, eax
mov dword [esp + 0xb8], eax
jle 0x52cce0
mov dword [esp + 0x8c], 1
jmp case.0x52cda5.4
cmp eax, 0xffffffff
jne 0x52ccff
mov edx, dword [ebp + 8]
mov eax, dword [edx]
mov ecx, dword [0x63ce1c]
mov dword [esp + 0x8c], 1
cmp eax, ecx
jmp 0x52cd1a
cmp eax, 0xfffffffe
jne 0x52cd2a
mov dword [esp + 0x8c], 1
mov ecx, dword [ebp + 8]
mov edx, dword [ecx]
cmp edx, dword [0x63ce1c]
je case.0x52cda5.4
inc edi
mov dword [esp + 0x24], edi
jmp 0x52cc95
mov eax, dword [esp + 0x9c]
test eax, eax
je 0x52cd7f
mov eax, dword [ebx]
push edi
push eax
call fcn.005dd489
add esp, 8
cmp eax, 1
mov dword [esp + 0x78], eax
jne 0x52cd7a
mov eax, dword [ebx]
mov cl, byte [eax + edi + 1]
inc edi
test cl, cl
jne 0x52cd5e
mov dword [esp + 0x24], edi
jmp 0x52cc95
push edi
push eax
call fcn.005dd489
add esp, 8
cmp eax, 2
je case.0x52cda5.4
mov dword [esp + 0x24], edi
jmp 0x52cc95
cmp eax, 2
je 0x52cd0f
mov eax, dword [ebx]
movzx eax, byte [eax + edi]
xor ecx, ecx
add eax, 0xfffffffe
cmp eax, 0x1d
mov dword [esp + 0x78], ecx
mov dword [esp + 0xb8], ecx
ja case.0x52cda5.4
movzx edx, byte [eax + 0x52dc38]
jmp dword [edx*4 + 0x52dc1c]
cmp dword [esp + 0x44], ecx
je 0x52cdbf
mov dword [esp + 0x48], 1
jmp case.0x52cda5.4
cmp dword [esp + 0x38], ecx
jne 0x52cdd1
mov dword [esp + 0x38], 1
mov dword [esp + 0x1c], edi
mov edx, dword [esp + 0x90]
xor eax, eax
cmp edx, ecx
sete al
mov dword [esp + 0x90], eax
jmp 0x52da08
cmp dword [esp + 0x44], ecx
je 0x52cdfe
mov dword [esp + 0x48], 1
jmp case.0x52cda5.4
cmp dword [esp + 0x38], ecx
jne 0x52ce10
mov dword [esp + 0x38], 1
mov dword [esp + 0x1c], edi
mov eax, dword [esp + 0x58]
xor edx, edx
cmp eax, ecx
sete dl
mov dword [esp + 0x58], edx
jmp 0x52da08
cmp dword [esp + 0x44], ecx
je 0x52ce37
mov dword [esp + 0x48], 1
jmp case.0x52cda5.4
cmp dword [esp + 0x38], ecx
jne 0x52ce49
mov dword [esp + 0x38], 1
mov dword [esp + 0x1c], edi
mov edx, dword [esp + 0x88]
xor eax, eax
cmp edx, ecx
sete al
mov dword [esp + 0x88], eax
jmp 0x52da08
cmp dword [esp + 0x44], ecx
je 0x52ce76
mov dword [esp + 0x48], 1
jmp case.0x52cda5.4
cmp dword [esp + 0x38], ecx
jne 0x52ce88
mov dword [esp + 0x38], 1
mov dword [esp + 0x1c], edi
mov ecx, dword [0x63ca90]
push ecx
call fcn.0043c610
mov edx, dword [ebx + 0x1c]
add esp, 4
push eax
push edx
call fcn.0043c610
mov edx, dword [ebx]
add esp, 4
push eax
lea eax, [esp + 0x64]
push eax
lea ecx, [esp + 0x60]
push ecx
add edx, edi
push edx
call fcn.00529b50
add esp, 0x14
add edi, eax
mov dword [esp + 0x24], edi
jmp 0x52da08
cmp dword [esp + 0x38], ecx
jne 0x52ced9
mov dword [esp + 0x38], 1
mov dword [esp + 0x1c], edi
cmp dword [esp + 0x44], ecx
je 0x52ceec
mov dword [esp + 0x48], 1
jmp case.0x52cda5.4
xor eax, eax
mov dword [esp + 0x88], eax
mov dword [esp + 0x58], eax
mov dword [esp + 0x90], eax
mov eax, dword [ebx + 0x1c]
push eax
call fcn.0043c610
mov ecx, dword [0x63ca90]
push ecx
mov dword [esp + 0x5c], eax
call fcn.0043c610
add esp, 8
mov dword [esp + 0x5c], eax
jmp 0x52da08
mov edx, dword [ebp + 8]
cmp dword [edx + 0x1314], 9
jne case.0x52cda5.4
cmp dword [esp + 0x38], ecx
je 0x52cf47
cmp dword [esp + 0x44], ecx
jne 0x52cf53
mov dword [esp + 0x48], 1
jmp case.0x52cda5.4
mov dword [esp + 0x38], 1
mov dword [esp + 0x1c], edi
inc dword [esp + 0x44]
jmp 0x52da08
mov ebx, dword [esp + 0x14]
mov edi, dword [esp + 0x24]
mov eax, dword [esp + 0x74]
test eax, eax
jne 0x52da49
mov eax, dword [esp + 0x38]
test eax, eax
je 0x52cf82
mov dword [esp + 0x74], 1
jmp case.0x52cda5.4
mov eax, dword [esp + 0x7c]
cmp edi, eax
mov dword [esp + 0x1c], edi
jl 0x52cf92
mov dword [esp + 0x1c], eax
mov eax, 1
mov dword [esp + 0x74], eax
mov dword [esp + 0x38], eax
cmp dword [esp + 0x20], 0xffffffff
jne 0x52cfae
mov eax, dword [esp + 0x1c]
mov dword [esp + 0x20], eax
mov eax, dword [esp + 0x38]
test eax, eax
je 0x52da08
mov eax, dword [esp + 0x44]
xor ecx, ecx
cmp eax, ecx
mov dword [esp + 0x38], ecx
mov dword [esp + 0xbc], ecx
mov dword [esp + 0x118], ecx
je 0x52d066
mov dword [esp + 0xbc], 1
jle 0x52d05e
mov edx, dword [ebp + 8]
mov ebx, dword [esp + 0xc8]
lea edi, [edx + ebx*4 + 0x138c]
mov dword [esp + 0x50], eax
lea esp, [esp]
test edx, edx
je 0x52d046
test ebx, ebx
jl 0x52d02c
cmp ebx, 0x32
jge 0x52d02c
mov ecx, dword [edi]
test ecx, ecx
jle 0x52d02c
mov eax, dword [edx + 0x18a0]
imul eax, ecx
add eax, 2
inc ebx
add edi, 4
mov dword [esp + 0x118], eax
jmp 0x52d051
mov eax, dword [esp + 0x28]
mov ecx, dword [edx + 0x18a0]
lea eax, [eax + ecx*8]
inc ebx
add edi, 4
mov dword [esp + 0x118], eax
jmp 0x52d051
mov ecx, dword [esp + 0x28]
mov dword [esp + 0x118], ecx
dec dword [esp + 0x50]
jne 0x52d000
mov dword [esp + 0xc8], ebx
mov dword [esp + 0x44], 0
mov ecx, dword [esp + 0x20]
test ecx, ecx
jl 0x52d79e
mov eax, dword [esp + 0x1c]
test eax, eax
jl 0x52d79e
cmp eax, ecx
jl 0x52d79e
sub eax, ecx
test eax, eax
mov dword [esp + 0x18], eax
jle 0x52d79e
mov eax, dword [esp + 0x74]
test eax, eax
jne 0x52d0be
mov eax, dword [esp + 0xb8]
test eax, eax
je 0x52d0ad
jle 0x52d79e
mov eax, dword [esp + 0x78]
test eax, eax
je 0x52d0be
cmp eax, 1
jne 0x52d79e
mov eax, dword [esp + 0x8c]
test eax, eax
je 0x52d0ea
mov ecx, dword [esp + 0x14]
lea edx, [esp + 0x18]
push edx
mov edx, dword [ecx]
lea eax, [esp + 0x24]
push eax
push edx
call fcn.00587700
add esp, 0xc
test eax, eax
je 0x52d79e
mov eax, dword [esp + 0x9c]
test eax, eax
je 0x52d12e
mov eax, dword [esp + 0x20]
test eax, eax
jle 0x52d12e
mov edi, dword [esp + 0x14]
push eax
mov eax, dword [edi]
push eax
call fcn.005dd489
add esp, 8
cmp eax, 2
jne 0x52d132
mov ecx, dword [esp + 0x20]
mov eax, dword [esp + 0x18]
dec ecx
inc eax
mov dword [esp + 0x78], 1
mov dword [esp + 0x20], ecx
mov dword [esp + 0x18], eax
jmp 0x52d13a
mov edi, dword [esp + 0x14]
mov eax, dword [esp + 0x78]
test eax, eax
je 0x52d19b
mov ecx, dword [esp + 0x20]
mov edx, dword [edi]
push ecx
push edx
call fcn.005dd489
add esp, 8
cmp eax, 1
jne 0x52d193
mov eax, dword [esp + 0x18]
cmp eax, 1
jne 0x52d162
mov dword [esp + 0x18], 2
jmp 0x52d167
cmp eax, 2
jne 0x52d19b
mov eax, dword [edi]
mov ecx, dword [esp + 0x20]
mov dl, byte [eax + ecx + 1]
test dl, dl
je 0x52d79e
inc ecx
push ecx
push eax
call fcn.005dd489
add esp, 8
cmp eax, 2
jne 0x52d79e
mov edi, dword [esp + 0x14]
jmp 0x52d19b
mov dword [esp + 0x78], 0
mov eax, dword [esp + 0x8c]
xor ebx, ebx
test eax, eax
je 0x52d1cf
mov ecx, dword [edi]
mov eax, dword [esp + 0x18]
mov edi, dword [esp + 0x20]
push eax
add ecx, edi
push ecx
call fcn.00584e40
mov ebx, eax
add esp, 8
test ebx, ebx
je 0x52d1cf
push ebx
call dword [sym.imp.KERNEL32.dll_lstrlenW]
mov dword [esp + 0x18], eax
xor eax, eax
test ebx, ebx
mov ecx, 0xe
lea edi, [esp + 0x150]
rep stosd dword es:[edi], eax
je 0x52d1f2
lea edx, [esp + 0x150]
push edx
push esi
call dword [sym.imp.GDI32.dll_GetTextMetricsA]
xor eax, eax
cmp ebx, eax
mov dword [esp + 0x80], eax
mov dword [esp + 0x50], eax
je 0x52d230
push eax
push str.print_start
push eax
mov eax, dword [esp + 0x24]
push eax
push ebx
push esi
call fcn.00499b90
add esp, 0x18
test eax, eax
jle 0x52d230
mov ecx, dword [esp + 0x18]
mov dword [esp + 0x80], ebx
mov dword [esp + 0x50], ecx
mov dword [esp + 0x18], eax
mov edi, dword [sym.imp.GDI32.dll_GetTextMetricsA]
lea edx, [esp + 0x198]
push edx
push esi
call edi
mov eax, dword [esp + 0x80]
test eax, eax
mov dword [esp + 0x1c], 0
je 0x52d29e
lea eax, [esp + 0x1d0]
push eax
push esi
call edi
mov edi, dword [esp + 0x150]
mov edx, dword [esp + 0x1d0]
cmp edi, edx
jle 0x52d29e
mov eax, dword [esp + 0x154]
mov ecx, dword [esp + 0x1d4]
cmp eax, ecx
jle 0x52d29e
sub eax, ecx
test eax, eax
mov dword [esp + 0x1c], eax
jle 0x52d29e
lea ecx, [edx + eax]
cmp ecx, edi
jle 0x52d29a
dec eax
dec ecx
test eax, eax
jg 0x52d290
mov dword [esp + 0x1c], eax
test ebx, ebx
je 0x52d347
mov edi, dword [esp + 0x18]
xor eax, eax
cmp edi, 0xffffffff
mov dword [esp + 0xd4], eax
mov dword [esp + 0xd8], eax
jne 0x52d2ca
push ebx
call dword [sym.imp.KERNEL32.dll_lstrlenW]
mov edi, eax
xor eax, eax
push 2
push 0xd20
lea ecx, [esp + 0xf4]
push ecx
push edi
push ebx
push esi
mov dword [esp + 0x104], eax
mov dword [esp + 0x108], eax
mov dword [esp + 0x10c], eax
mov dword [esp + 0x110], eax
call fcn.00529e80
add esp, 0x18
test eax, eax
je 0x52d32d
mov edi, dword [esp + 0xf4]
mov ecx, dword [esp + 0xec]
mov edx, dword [esp + 0xf8]
mov eax, dword [esp + 0xf0]
sub edi, ecx
sub edx, eax
mov dword [esp + 0xd8], edx
jmp 0x52d36a
lea eax, [esp + 0xd4]
push eax
push edi
push ebx
push esi
call dword [sym.imp.GDI32.dll_GetTextExtentPointW]
mov edi, dword [esp + 0xd4]
jmp 0x52d36a
mov edx, dword [esp + 0x14]
mov eax, dword [edx]
mov ecx, dword [esp + 0x18]
mov edx, dword [esp + 0x20]
push 0
push 0
push 0
push ecx
add eax, edx
push eax
push esi
call fcn.0052a000
add esp, 0x18
mov edi, eax
mov eax, dword [esp + 0x1b8]
sub edi, eax
test edi, edi
jge 0x52d379
xor edi, edi
mov ecx, dword [ebp + 8]
mov edx, dword [ecx]
cmp edx, dword [0x63ce1c]
jne 0x52d42e
mov ecx, dword [esp + 0x80]
push ecx
mov ecx, dword [esp + 0xac]
lea edx, [esp + 0xe0]
push edx
mov edx, dword [esp + 0xa8]
push ecx
mov ecx, dword [esp + 0x110]
push eax
mov eax, dword [esp + 0x118]
push edx
mov edx, dword [esp + 0x120]
push eax
mov eax, dword [esp + 0x118]
push ecx
push edx
mov edx, dword [esp + 0x48]
push eax
mov eax, dword [esp + 0x50]
sub esp, 0x10
mov ecx, esp
mov dword [ecx], edx
mov edx, dword [esp + 0x64]
mov dword [ecx + 4], eax
mov eax, dword [esp + 0x68]
mov dword [ecx + 8], edx
mov edx, dword [esp + 0x54]
mov dword [ecx + 0xc], eax
mov ecx, dword [esp + 0x4c]
mov eax, dword [esp + 0x48]
push ecx
mov ecx, dword [ebp + 8]
push edx
push ebx
push eax
push esi
push ecx
call fcn.0052bb10
add esp, 0x4c
test eax, eax
jne 0x52d42e
push 0xffffd8f1
push 0xffffd8f1
push 0x270f
push 0x270f
lea edx, [esp + 0xec]
push edx
call dword [sym.imp.USER32.dll_SetRect]
mov eax, dword [esp + 0xbc]
test eax, eax
mov eax, dword [esp + 0x28]
je 0x52d472
mov ecx, dword [ebp + 8]
mov edx, dword [ecx + 0x1454]
test edx, edx
mov ecx, dword [esp + 0x118]
jne 0x52d463
mov edx, ecx
sub edx, eax
cmp edx, edi
jge 0x52d463
lea ecx, [edi + eax]
mov dword [esp + 0x118], ecx
lea edx, [edi + eax]
cmp edx, ecx
jle 0x52d472
mov edi, ecx
sub edi, eax
jns 0x52d472
xor edi, edi
mov ecx, dword [esp + 0x84]
add edi, eax
test ecx, ecx
mov dword [esp + 0x30], edi
je 0x52d54f
mov eax, dword [0x63ca90]
push eax
call fcn.0043c610
mov ecx, dword [eax*4 + 0x638070]
add esp, 4
push ecx
push esi
call dword [sym.imp.GDI32.dll_SetTextColor]
mov edx, dword [0x63caa4]
push edx
mov dword [esp + 0xa8], eax
call fcn.0043c610
mov eax, dword [eax*4 + 0x638070]
add esp, 4
push eax
push esi
call dword [sym.imp.GDI32.dll_SetBkColor]
test ebx, ebx
mov dword [esp + 0x98], eax
je 0x52d4f8
mov ecx, dword [esp + 0x10]
mov edx, dword [esp + 0x1c]
mov eax, dword [esp + 0x18]
push 2
push 0
push eax
lea edi, [edx + ecx]
mov edx, dword [esp + 0x34]
push ebx
lea ecx, [esp + 0x38]
push ecx
push 6
push edi
push edx
jmp 0x52d526
mov eax, dword [esp + 0x10]
mov ecx, dword [esp + 0x1c]
mov edx, dword [esp + 0x18]
lea edi, [ecx + eax]
mov eax, dword [esp + 0x14]
mov ecx, dword [eax]
mov eax, dword [esp + 0x20]
push 0
push 0
push edx
add ecx, eax
mov eax, dword [esp + 0x34]
push ecx
lea edx, [esp + 0x38]
push edx
push 6
push edi
push eax
push esi
call fcn.00529ed0
mov ecx, dword [esp + 0xc8]
add esp, 0x24
push ecx
push esi
call dword [sym.imp.GDI32.dll_SetTextColor]
mov edx, dword [esp + 0x98]
push edx
push esi
call dword [sym.imp.GDI32.dll_SetBkColor]
jmp 0x52d5a8
test ebx, ebx
je 0x52d574
mov ecx, dword [esp + 0x10]
mov edx, dword [esp + 0x1c]
push 2
lea edi, [edx + ecx]
mov ecx, dword [esp + 0x1c]
push 0
push ecx
mov ecx, dword [esp + 0x78]
push ebx
lea edx, [esp + 0x38]
push edx
push ecx
jmp 0x52d59d
mov edx, dword [esp + 0x10]
mov ecx, dword [esp + 0x1c]
lea edi, [ecx + edx]
mov edx, dword [esp + 0x18]
mov ecx, dword [esp + 0x14]
push 0
push 0
push edx
mov edx, dword [ecx]
add edx, dword [esp + 0x2c]
push edx
mov edx, dword [esp + 0x7c]
lea ecx, [esp + 0x38]
push ecx
push edx
push edi
push eax
push esi
call fcn.00529ed0
add esp, 0x24
mov eax, dword [ebp + 8]
mov ecx, dword [eax]
cmp ecx, dword [0x63ce1c]
jne 0x52d727
mov edx, dword [esp + 0xe0]
cmp edx, 0x270f
je 0x52d705
cmp dword [esp + 0xe8], 0xffffd8f1
je 0x52d705
mov ecx, dword [esp + 0xdc]
cmp ecx, 0x270f
je 0x52d705
mov eax, dword [esp + 0xe4]
cmp eax, 0xffffd8f1
je 0x52d705
push dword [esp + 0xe8]
mov dword [esp + 0xd0], 1
push eax
push edx
push ecx
push esi
call dword [sym.imp.GDI32.dll_IntersectClipRect]
mov eax, dword [esp + 0x84]
test eax, eax
je 0x52d64f
mov edx, dword [0x63caa4]
push edx
call fcn.0043c610
mov eax, dword [eax*4 + 0x638070]
add esp, 4
push eax
push esi
call dword [sym.imp.GDI32.dll_SetTextColor]
mov ecx, dword [0x63ca90]
jmp 0x52d673
mov edx, dword [0x63ca90]
push edx
call fcn.0043c610
mov eax, dword [eax*4 + 0x638070]
add esp, 4
push eax
push esi
call dword [sym.imp.GDI32.dll_SetTextColor]
mov ecx, dword [0x63caa4]
push ecx
mov dword [esp + 0xa8], eax
call fcn.0043c610
mov edx, dword [eax*4 + 0x638070]
add esp, 4
push edx
push esi
call dword [sym.imp.GDI32.dll_SetBkColor]
test ebx, ebx
mov dword [esp + 0x98], eax
mov eax, dword [esp + 0x18]
je 0x52d6b6
mov edx, dword [esp + 0x28]
push 2
push 0
push eax
push ebx
lea ecx, [esp + 0x38]
push ecx
push 6
push edi
push edx
jmp 0x52d6d5
mov ecx, dword [esp + 0x14]
mov edx, dword [ecx]
mov ecx, dword [esp + 0x20]
push 0
push 0
push eax
add edx, ecx
mov ecx, dword [esp + 0x34]
push edx
lea eax, [esp + 0x38]
push eax
push 6
push edi
push ecx
push esi
call fcn.00529ed0
mov edx, dword [esp + 0xc8]
add esp, 0x24
push edx
push esi
call dword [sym.imp.GDI32.dll_SetTextColor]
mov eax, dword [esp + 0x98]
push eax
push esi
call dword [sym.imp.GDI32.dll_SetBkColor]
push 0
push esi
call dword [sym.imp.GDI32.dll_SelectClipRgn]
push 0xffffd8f1
push 0xffffd8f1
push 0x270f
push 0x270f
lea ecx, [esp + 0xec]
push ecx
call dword [sym.imp.USER32.dll_SetRect]
mov eax, dword [esp + 0x80]
test eax, eax
mov edx, dword [esp + 0x30]
mov dword [esp + 0x28], edx
je 0x52d791
mov eax, dword [esp + 0x18]
mov ecx, dword [esp + 0x50]
sub ecx, eax
test ecx, ecx
lea ebx, [ebx + eax*2]
mov dword [esp + 0x50], ecx
push 0
jle 0x52d776
push str.print_next
push 1
mov edi, ecx
push edi
push ebx
push esi
call fcn.00499b90
add esp, 0x18
test eax, eax
jg 0x52d22c
mov dword [esp + 0x18], edi
jmp 0x52d230
push str.print_end
push 2
push 0
push 0
push esi
call fcn.00499b90
mov ebx, dword [esp + 0x98]
add esp, 0x18
test ebx, ebx
je 0x52d79e
push ebx
call fcn.005d9fa3
add esp, 4
mov eax, dword [esp + 0x54]
mov ecx, dword [eax*4 + 0x638070]
push ecx
push esi
call dword [sym.imp.GDI32.dll_SetTextColor]
mov edi, dword [esp + 0x5c]
mov edx, dword [edi*4 + 0x638070]
push edx
push esi
call dword [sym.imp.GDI32.dll_SetBkColor]
cmp dword [esp + 0x3c], 1
jne 0x52d7ec
mov eax, dword [0x63ca90]
push eax
call fcn.0043c610
xor ecx, ecx
add esp, 4
cmp edi, eax
setne cl
lea ecx, [ecx + ecx + 4]
mov edi, ecx
mov dword [esp + 0x6c], edi
jmp 0x52d7f0
mov edi, dword [esp + 0x6c]
mov eax, dword [esp + 0xbc]
test eax, eax
je 0x52d90b
mov eax, dword [esp + 0x30]
mov ebx, dword [esp + 0x118]
cmp eax, ebx
jge 0x52d85f
mov edx, dword [esp + 0x28]
mov ecx, dword [esp + 0x2c]
push 0
push 0
mov dword [esp + 0x128], edx
mov edx, dword [esp + 0x3c]
push 0x5f4c90
mov dword [esp + 0x138], edx
lea edx, [esp + 0x12c]
push edx
push edi
push ecx
push eax
mov dword [esp + 0x144], eax
push esi
mov dword [esp + 0x144], ecx
mov dword [esp + 0x140], eax
mov dword [esp + 0x148], ebx
call dword [sym.imp.GDI32.dll_ExtTextOutA]
mov eax, dword [esp + 0x84]
test eax, eax
je 0x52d8e7
mov eax, dword [0x63ca90]
push eax
call fcn.0043c610
mov ecx, dword [eax*4 + 0x638070]
add esp, 4
push ecx
push esi
call dword [sym.imp.GDI32.dll_SetTextColor]
mov edx, dword [0x63caa4]
push edx
mov ebx, eax
call fcn.0043c610
mov eax, dword [eax*4 + 0x638070]
add esp, 4
push eax
push esi
call dword [sym.imp.GDI32.dll_SetBkColor]
mov edx, dword [esp + 0x10]
push 0
push 0
push 0x5f4c90
lea ecx, [esp + 0x34]
push ecx
push 6
mov edi, eax
mov eax, dword [esp + 0x3c]
push edx
push eax
push esi
call dword [sym.imp.GDI32.dll_ExtTextOutA]
push ebx
push esi
call dword [sym.imp.GDI32.dll_SetTextColor]
push edi
push esi
call dword [sym.imp.GDI32.dll_SetBkColor]
mov ebx, dword [esp + 0x118]
jmp 0x52d907
mov edx, dword [esp + 0x10]
mov eax, dword [esp + 0x28]
push 0
push 0
push 0x5f4c90
lea ecx, [esp + 0x34]
push ecx
push edi
push edx
push eax
push esi
call dword [sym.imp.GDI32.dll_ExtTextOutA]
mov dword [esp + 0x28], ebx
mov ebx, dword [esp + 0x90]
cmp dword [esp + 0xc0], ebx
mov ecx, dword [esp + 0x88]
mov dword [esp + 0x84], ecx
jne 0x52d93a
mov edx, dword [esp + 0xb4]
cmp edx, dword [esp + 0x58]
je 0x52d9f2
mov eax, dword [esp + 0x58]
mov dword [esp + 0xb4], eax
mov eax, dword [esp + 0x60]
test eax, eax
mov dword [esp + 0xc0], ebx
je 0x52d95c
push eax
push esi
call dword [sym.imp.GDI32.dll_SelectObject]
mov eax, dword [esp + 0x70]
test eax, eax
je 0x52d96b
push eax
call dword [sym.imp.GDI32.dll_DeleteObject]
test ebx, ebx
mov edi, dword [ebp + 8]
mov eax, dword [edi + 0x1890]
je 0x52d991
xor ecx, ecx
cmp eax, 0x190
setne cl
dec ecx
and ecx, 0x12c
add ecx, 0x190
mov eax, ecx
mov ecx, dword [edi + 0x1894]
lea edx, [edi + 0x1758]
push edx
mov edx, dword [esp + 0x5c]
push 0
push 0
push 0
push 0
push ecx
push 0
push edx
push 0
push eax
mov eax, dword [edi + 0x188c]
push 0
push 0
push 0
neg eax
push eax
call dword [sym.imp.GDI32.dll_CreateFontA]
test eax, eax
mov dword [esp + 0x70], eax
je 0x52d9d1
push eax
jmp 0x52d9d8
mov ecx, dword [edi + 0x1754]
push ecx
push esi
call dword [sym.imp.GDI32.dll_SelectObject]
lea edx, [esp + 0x240]
push edx
push esi
mov dword [esp + 0x68], eax
call dword [sym.imp.GDI32.dll_GetTextMetricsA]
mov eax, dword [esp + 0x24]
mov ecx, dword [esp + 0x48]
mov dword [esp + 0x20], eax
xor eax, eax
cmp ecx, eax
mov dword [esp + 0x1c], eax
jne 0x52da38
mov ecx, dword [ebp + 0x18]
mov eax, dword [esp + 0x28]
add ecx, 0xfffffffe
cmp eax, ecx
jl 0x52da23
mov dword [esp + 0x74], 1
jmp 0x52cf5c
mov eax, dword [esp + 0x74]
test eax, eax
jne 0x52cf5c
inc dword [esp + 0x24]
jmp 0x52cc8d
mov dword [esp + 0x48], eax
mov dword [esp + 0x20], 0xffffffff
jmp 0x52cc8d
cmp dword [esp + 0x3c], 1
je 0x52c9df
mov edx, dword [0x63ca90]
push edx
call fcn.0043c610
mov eax, dword [eax*4 + 0x638070]
add esp, 4
push eax
push esi
call dword [sym.imp.GDI32.dll_SetBkColor]
mov edi, dword [esp + 0x10]
mov eax, dword [esp + 0x28]
mov ecx, dword [ebp + 0x18]
push 0
push 0
push 0x5f4c90
lea edx, [esp + 0x34]
push edx
push 6
push edi
push eax
push esi
mov dword [esp + 0x50], ecx
call dword [sym.imp.GDI32.dll_ExtTextOutA]
mov ecx, dword [ebp + 8]
cmp dword [ecx + 0x12f0], ebx
jne 0x52daaf
cmp dword [ebx + 0x20], 2
je 0x52c9e3
push 0
push 0
push 0x5f4c90
lea edx, [esp + 0x34]
push edx
push 6
push edi
push 0
push esi
mov dword [esp + 0x48], 0
mov dword [esp + 0x50], 2
call dword [sym.imp.GDI32.dll_ExtTextOutA]
jmp 0x52c9e3
mov eax, dword [esp + 0xfc]
push eax
push esi
call dword [sym.imp.GDI32.dll_SetBkMode]
mov eax, dword [esp + 0x4c]
test eax, eax
jl 0x52dafe
push eax
call fcn.005dd2dc
add esp, 4
mov ecx, dword [esp + 0x60]
push ecx
push esi
call dword [sym.imp.GDI32.dll_SelectObject]
mov eax, dword [esp + 0x70]
test eax, eax
je 0x52db19
push eax
call dword [sym.imp.GDI32.dll_DeleteObject]
mov eax, dword [esp + 0x3c]
test eax, eax
je 0x52db5e
mov eax, dword [ebp + 0x10]
mov edx, dword [ebp + 0x1c]
mov ecx, dword [ebp + 0x18]
mov edi, dword [esp + 0x64]
push 0xcc0020
push 0
push 0
push esi
push edx
sub ecx, eax
push ecx
push 0
push eax
push edi
call dword [sym.imp.GDI32.dll_BitBlt]
mov edx, dword [esp + 0xc4]
push edx
push esi
call dword [sym.imp.GDI32.dll_SelectObject]
push esi
call dword [sym.imp.GDI32.dll_DeleteDC]
mov esi, edi
mov eax, dword [esp + 0xd0]
test eax, eax
je case.0x52c135.4
mov eax, dword [ebp + 8]
mov ecx, dword [eax + 0x1478]
push esi
push ecx
call dword [sym.imp.USER32.dll_ReleaseDC]
mov esi, dword [ebp + 8]
mov eax, dword [esi + 0x174c]
xor edi, edi
cmp eax, edi
je 0x52db96
push eax
call dword [sym.imp.GDI32.dll_DeleteObject]
mov dword [esi + 0x174c], edi
mov eax, dword [esi]
mov dword [esi + 0x1750], edi
cmp eax, dword [0x63ce1c]
jne 0x52dbe6
cmp dword [esp + 0xcc], edi
je 0x52dbe0
mov dword [esi + 0x2128], 1
cmp eax, dword [0x66a898]
jne 0x52dbcb
push 1
call fcn.004aa000
add esp, 4
push 0x7f01
push edi
call dword [sym.imp.USER32.dll_LoadCursorA]
push eax
call dword [sym.imp.USER32.dll_SetCursor]
jmp 0x52dbe6
mov dword [esi + 0x2128], edi
mov edx, dword [esi + 0x130c]
mov dword [esi + 0x1310], edx
mov dword [0x6870f8], edi
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret