Function at 0x451c30
Capabilities:
Resolve function by parsing pe exports

Disassembly:
sub esp, 0x13c
mov eax, dword [0x5b7b5c]
xor eax, esp
mov dword [esp + 0x138], eax
mov eax, dword [esp + 0x148]
mov edx, ecx
push ebp
mov ebp, dword [esp + 0x148]
xor ecx, ecx
push esi
mov esi, dword [esp + 0x148]
mov dword [esp + 0x10], edx
mov dword [esp + 0x28], ebp
cmp dword [edx + 0x58], ecx
je 0x45290c
push ebx
push edi
cmp eax, ecx
jne 0x451c92
mov eax, dword [edx + 0x74]
mov edi, dword [edx + 0x78]
xor edx, edx
mov dword [esp + 0x20], eax
xor ebx, ebx
mov dword [esp + 0x5c], ecx
mov dword [esp + 0x2c], 2
jmp 0x451cad
mov edx, dword [eax]
mov edi, dword [eax + 4]
mov ebx, dword [eax + 0xc]
mov dword [esp + 0x20], edx
mov edx, dword [eax + 8]
mov dword [esp + 0x5c], 1
mov dword [esp + 0x2c], ecx
mov ecx, dword [0x5c3234]
mov eax, ecx
imul eax, edi
mov edi, dword [ebp + 4]
sub edx, eax
cmp ebx, edi
mov dword [esp + 0x24], eax
mov dword [esp + 0x7c], edx
jle 0x451ccb
mov edi, ebx
mov eax, edi
sub eax, ebx
cdq
idiv dword [0x5c3220]
mov eax, dword [ebp + 0xc]
mov dword [esp + 0x8c], eax
sub edi, edx
mov eax, edi
sub eax, ebx
cdq
idiv dword [0x5c3220]
mov edx, dword [esp + 0x20]
add eax, edx
xor edx, edx
test eax, eax
setl dl
dec edx
and eax, edx
mov edx, dword [esp + 0x18]
mov edx, dword [edx + 0x58]
mov ebx, dword [edx + 0x70]
mov dword [esp + 0x98], ebx
mov ebx, dword [edx + 0x54]
mov edx, dword [edx + 0x58]
add edx, ebx
mov dword [esp + 0x28], edx
mov edx, ecx
imul edx, edx, 0xb
mov dword [esp + 0x90], edx
mov edx, ecx
imul edx, edx, 0x3b
mov dword [esp + 0x68], edx
mov edx, ecx
imul ecx, ecx, 0x4d
imul edx, edx, 0x3d
shl eax, 4
cmp edi, dword [esp + 0x8c]
mov dword [esp + 0x58], ebx
mov dword [esp + 0x94], edx
mov dword [esp + 0x84], ecx
mov dword [esp + 0x14], eax
jge 0x4528be
lea ecx, [ecx]
mov eax, dword [esp + 0x14]
cmp eax, dword [esp + 0x98]
jge 0x4528be
push 0x4e
lea ecx, [esp + 0xb0]
mov edx, eax
mov eax, dword [esp + 0x1c]
push ecx
mov ecx, dword [eax + 0x58]
push edx
call fcn.0044fe20
mov ebx, dword [0x5c3234]
mov ecx, dword [esp + 0x7c]
imul ebx, ebx, 0xb
sub ebx, dword [esp + 0x24]
cmp ecx, dword [ebp + 8]
jge 0x451ddc
cmp ebx, dword [ebp]
jle 0x451ddc
mov edx, dword [0x5ba288]
push edx
push esi
call dword [sym.imp.GDI32.dll_SetTextColor]
mov eax, dword [0x5ba1f0]
push eax
push esi
call dword [sym.imp.GDI32.dll_SetBkColor]
mov edx, dword [esp + 0x7c]
push 0
push 0xa
lea ecx, [esp + 0xb4]
push ecx
push ebp
push 4
push edi
push edx
push esi
call dword [sym.imp.GDI32.dll_ExtTextOutW]
mov eax, dword [0x5ba278]
push eax
push esi
mov dword [esp + 0x18], ebx
call dword [sym.imp.GDI32.dll_SetTextColor]
mov ecx, dword [0x5ba1e0]
push ecx
push esi
call dword [sym.imp.GDI32.dll_SetBkColor]
mov eax, dword [0x5c3220]
push 0
push 0
push 0
mov edx, ebx
sub edx, dword [0x5c3234]
lea ecx, [esp + 0x78]
push ecx
mov dword [esp + 0x7c], edx
mov edx, dword [esp + 0x3c]
push edx
push 0
push 0
add eax, edi
push esi
mov dword [esp + 0x94], ebx
mov dword [esp + 0x90], edi
mov dword [esp + 0x98], eax
call dword [sym.imp.GDI32.dll_ExtTextOutW]
cmp dword [esp + 0x5c], 0
jne 0x45267a
mov eax, dword [esp + 0x18]
mov ecx, dword [eax + 0x58]
cmp dword [ecx + 0x58], 0
je 0x45267a
mov eax, dword [esp + 0x14]
cmp eax, dword [esp + 0x28]
jg 0x45267a
add eax, 0x10
cmp eax, dword [esp + 0x58]
jle 0x45267a
mov eax, dword [esp + 0x94]
sub eax, dword [esp + 0x24]
mov edx, ebx
cmp edx, dword [ebp + 8]
mov dword [esp + 0x88], eax
jge 0x452291
cmp eax, dword [ebp]
jle 0x452291
mov eax, dword [esp + 0x30]
xor ebp, ebp
push eax
mov dword [esp + 0x48], ebp
mov dword [esp + 0x24], ebp
call dword [sym.imp.GDI32.dll_CreateRectRgnIndirect]
push eax
push esi
mov dword [esp + 0x68], eax
call dword [sym.imp.GDI32.dll_SelectClipRgn]
mov eax, dword [esp + 0x58]
mov ebx, dword [esp + 0x14]
cmp eax, ebx
jle 0x451f69
lea ecx, [ebx + 0x10]
cmp eax, ecx
jge 0x451f69
sub eax, ebx
cmp eax, 7
lea ebp, [eax + eax*2 + 0xb]
jle 0x451ee3
inc ebp
add ebp, 0xfffffff5
test ebp, ebp
jle 0x451f61
mov edx, dword [esp + 0x30]
mov eax, dword [esp + 0x10]
push 0
push ebp
lea ecx, [esp + 0xca]
push ecx
push edx
push 4
push edi
push eax
push esi
call dword [sym.imp.GDI32.dll_ExtTextOutW]
mov ecx, dword [esp + 0x18]
mov ebx, ebp
imul ebx, dword [0x5c3234]
cmp dword [ecx + 0x88], 0
je 0x451f59
mov eax, dword [esp + 0x14]
add eax, 0x10
cmp dword [esp + 0x28], eax
jle 0x451f59
mov eax, dword [esp + 0x10]
lea edx, [ebx + eax]
mov dword [esp + 0x34], eax
mov eax, dword [0x5c3220]
lea eax, [eax + edi - 1]
lea ecx, [esp + 0x34]
mov dword [esp + 0x38], eax
push ecx
inc eax
push esi
mov dword [esp + 0x44], edx
mov dword [esp + 0x48], eax
call dword [sym.imp.USER32.dll_InvertRect]
add dword [esp + 0x10], ebx
mov ebx, dword [esp + 0x14]
mov dword [esp + 0x44], 1
mov edx, dword [esp + 0x18]
cmp dword [edx + 0x88], 0
jne 0x451f91
mov eax, dword [0x5ba284]
push eax
push esi
call dword [sym.imp.GDI32.dll_SetTextColor]
mov ecx, dword [0x5ba1ec]
push ecx
push esi
call dword [sym.imp.GDI32.dll_SetBkColor]
mov ecx, dword [esp + 0x28]
cmp ecx, ebx
mov edx, dword [esp + 0x10]
mov dword [esp + 0x1c], edx
jl 0x452072
lea eax, [ebx + 0x10]
cmp ecx, eax
jg 0x452072
mov eax, ecx
sub eax, ebx
cmp eax, 7
lea ecx, [eax + eax*2 + 0xb]
jle 0x451fc3
cmp eax, 8
jle 0x451fc3
inc ecx
test eax, eax
jle 0x451fc8
dec ecx
lea eax, [ecx - 0xb]
mov dword [esp + 0x20], eax
test eax, eax
jle 0x452042
mov ecx, dword [esp + 0x30]
mov edx, dword [esp + 0x10]
push 0
mov ebx, eax
sub ebx, ebp
push ebx
lea eax, [esp + ebp*2 + 0xca]
push eax
push ecx
push 4
push edi
push edx
push esi
call dword [sym.imp.GDI32.dll_ExtTextOutW]
imul ebx, dword [0x5c3234]
mov eax, dword [esp + 0x18]
cmp dword [eax + 0x88], 0
mov ebp, dword [esp + 0x10]
je 0x452038
mov edx, dword [0x5c3220]
lea eax, [edx + edi - 1]
mov dword [esp + 0x38], eax
inc eax
mov dword [esp + 0x40], eax
lea eax, [esp + 0x34]
push eax
lea ecx, [ebx + ebp]
push esi
mov dword [esp + 0x3c], ebp
mov dword [esp + 0x44], ecx
call dword [sym.imp.USER32.dll_InvertRect]
add ebx, ebp
mov ebp, dword [esp + 0x20]
mov dword [esp + 0x1c], ebx
mov ecx, dword [esp + 0x18]
cmp dword [ecx + 0x88], 0
jne 0x45206a
mov edx, dword [0x5ba278]
push edx
push esi
call dword [sym.imp.GDI32.dll_SetTextColor]
mov eax, dword [0x5ba1e0]
push eax
push esi
call dword [sym.imp.GDI32.dll_SetBkColor]
mov dword [esp + 0x20], 1
push 0
push 1
push 0x10
call fcn.00450fe0
mov edx, dword [esp + 0x3c]
add esp, 0xc
push 0
mov ebx, eax
mov eax, dword [esp + 0x20]
sub ebx, 0xb
sub ebx, ebp
push ebx
lea ecx, [esp + ebp*2 + 0xca]
push ecx
push edx
push 4
push edi
push eax
push esi
call dword [sym.imp.GDI32.dll_ExtTextOutW]
mov ecx, dword [0x5c3234]
mov edx, dword [esp + 0x18]
imul ebx, ecx
cmp dword [edx + 0x88], 0
jne 0x4520e4
mov eax, dword [0x5ba278]
push eax
push esi
call dword [sym.imp.GDI32.dll_SetTextColor]
mov ecx, dword [0x5ba1e0]
push ecx
push esi
call dword [sym.imp.GDI32.dll_SetBkColor]
add dword [esp + 0x1c], ebx
mov ebx, dword [esp + 0x1c]
jmp 0x452221
mov edx, dword [esp + 0x14]
mov ebp, dword [esp + 0x28]
lea eax, [edx + 0x10]
cmp ebp, eax
jl 0x45215f
lea eax, [edx + 0x20]
cmp ebp, eax
jge 0x45215f
mov eax, ebp
sub eax, edx
sub eax, 0x10
cmp eax, 7
lea ebp, [eax + eax*2 + 0xb]
jle 0x452110
cmp eax, 8
jle 0x452110
inc ebp
test eax, eax
jle 0x452115
dec ebp
lea eax, [ebp - 0xb]
mov ebp, dword [esp + 0x24]
test eax, eax
jle 0x452163
mov edx, dword [0x5c3220]
imul eax, ecx
mov ecx, dword [esp + 0x1c]
sub eax, ebp
add eax, dword [esp + 0x90]
add ebx, ecx
mov dword [esp + 0x34], eax
lea eax, [edx + edi - 1]
mov dword [esp + 0x38], eax
inc eax
mov dword [esp + 0x40], eax
lea eax, [esp + 0x34]
push eax
push esi
mov dword [esp + 0x44], ebx
call dword [sym.imp.USER32.dll_InvertRect]
mov edx, dword [esp + 0x14]
jmp 0x452163
mov ebp, dword [esp + 0x24]
cmp edx, dword [esp + 0x28]
je 0x45220b
cmp dword [esp + 0x44], 0
je 0x45217a
mov eax, dword [esp + 0x10]
jmp 0x452183
mov eax, dword [esp + 0x90]
sub eax, ebp
mov ebx, dword [esp + 0x20]
mov edx, dword [0x5c3220]
mov dword [esp + 0x34], eax
inc eax
xor ecx, ecx
test ebx, ebx
setne cl
mov dword [esp + 0x3c], eax
lea eax, [esp + 0x34]
push eax
push esi
mov dword [esp + 0x40], edi
sub edx, ecx
add edx, edi
mov dword [esp + 0x48], edx
call dword [sym.imp.USER32.dll_InvertRect]
test ebx, ebx
je 0x4521bf
mov eax, dword [esp + 0x1c]
jmp 0x4521c5
mov eax, dword [esp + 0x68]
sub eax, ebp
mov ecx, dword [0x5c3220]
push 0
push 0
push 0
mov dword [esp + 0x40], eax
inc eax
lea edx, [esp + 0x40]
push edx
mov dword [esp + 0x4c], eax
mov eax, dword [esp + 0x3c]
push eax
push 0
push 0
add ecx, edi
push esi
mov dword [esp + 0x58], edi
mov dword [esp + 0x60], ecx
call dword [sym.imp.GDI32.dll_ExtTextOutW]
lea ecx, [esp + 0x34]
push ecx
push esi
call dword [sym.imp.USER32.dll_InvertRect]
mov eax, dword [esp + 0x3c]
jmp 0x452215
mov eax, dword [esp + 0x68]
sub eax, ebp
mov dword [esp + 0x3c], eax
mov ebx, dword [esp + 0x68]
sub ebx, ebp
cmp ebx, eax
jg 0x452221
mov ebx, eax
push 0
push esi
call dword [sym.imp.GDI32.dll_SelectClipRgn]
mov edx, dword [esp + 0x60]
push edx
call dword [sym.imp.GDI32.dll_DeleteObject]
mov eax, dword [0x5ba278]
push eax
push esi
call dword [sym.imp.GDI32.dll_SetTextColor]
mov ecx, dword [0x5ba1e0]
push ecx
push esi
call dword [sym.imp.GDI32.dll_SetBkColor]
mov edx, dword [esp + 0x88]
mov eax, dword [0x5c3220]
push 0
push 0
push 0
lea ecx, [esp + 0x40]
push ecx
mov dword [esp + 0x4c], edx
mov edx, dword [esp + 0x3c]
push edx
push 0
push 0
add eax, edi
push esi
mov dword [esp + 0x54], ebx
mov dword [esp + 0x58], edi
mov dword [esp + 0x60], eax
call dword [sym.imp.GDI32.dll_ExtTextOutW]
mov eax, dword [esp + 0x3c]
mov ebp, dword [esp + 0x30]
mov ebx, dword [esp + 0x84]
sub ebx, dword [esp + 0x24]
cmp eax, dword [ebp + 8]
mov dword [esp + 0x10], eax
mov dword [esp + 0x44], ebx
jge 0x45284f
cmp ebx, dword [ebp]
jle 0x45284f
xor ebx, ebx
push ebp
mov dword [esp + 0x84], ebx
mov dword [esp + 0x64], ebx
call dword [sym.imp.GDI32.dll_CreateRectRgnIndirect]
push eax
push esi
mov dword [esp + 0x6c], eax
call dword [sym.imp.GDI32.dll_SelectClipRgn]
mov eax, dword [esp + 0x14]
cmp dword [esp + 0x58], eax
mov ecx, eax
jl 0x4523b0
mov eax, dword [esp + 0x58]
lea edx, [ecx + 0x10]
cmp eax, edx
jge 0x4523b0
mov ebx, eax
sub ebx, ecx
test ebx, ebx
jle 0x4523a5
cmp dword [0x5ed724], 0
je 0x452326
mov edx, dword [esp + 0x10]
push ebx
lea ecx, [esp + 0x12a]
push ecx
mov ecx, dword [esp + 0x20]
push ebp
push edi
push edx
push esi
call fcn.00451020
jmp 0x452341
mov ecx, dword [esp + 0x10]
push 0
push ebx
lea eax, [esp + 0x12e]
push eax
push ebp
push 4
push edi
push ecx
push esi
call dword [sym.imp.GDI32.dll_ExtTextOutW]
mov edx, dword [esp + 0x18]
mov eax, ebx
imul eax, dword [0x5c3234]
cmp dword [edx + 0x88], 0
mov dword [esp + 0x20], eax
jne 0x45239d
mov ecx, dword [esp + 0x14]
add ecx, 0x10
cmp dword [esp + 0x28], ecx
jle 0x45239d
mov eax, dword [esp + 0x10]
mov ecx, dword [esp + 0x20]
mov edx, dword [0x5c3220]
add ecx, eax
mov dword [esp + 0x48], eax
lea eax, [edx + edi - 1]
mov dword [esp + 0x4c], eax
inc eax
mov dword [esp + 0x54], eax
lea eax, [esp + 0x48]
push eax
push esi
mov dword [esp + 0x58], ecx
call dword [sym.imp.USER32.dll_InvertRect]
mov eax, dword [esp + 0x20]
add dword [esp + 0x10], eax
mov ecx, dword [esp + 0x14]
mov dword [esp + 0x80], 1
mov edx, dword [esp + 0x18]
cmp dword [edx + 0x88], 0
je 0x4523dc
mov eax, dword [0x5ba284]
push eax
push esi
call dword [sym.imp.GDI32.dll_SetTextColor]
mov ecx, dword [0x5ba1ec]
push ecx
push esi
call dword [sym.imp.GDI32.dll_SetBkColor]
mov ecx, dword [esp + 0x14]
mov eax, dword [esp + 0x28]
cmp eax, ecx
mov edx, dword [esp + 0x10]
mov dword [esp + 0x1c], edx
jl 0x4524ce
lea edx, [ecx + 0x10]
cmp eax, edx
jg 0x4524ce
sub eax, ecx
mov dword [esp + 0x20], eax
test eax, eax
jle 0x45249e
sub eax, ebx
cmp dword [0x5ed724], 0
mov dword [esp + 0x1c], eax
je 0x452434
mov ecx, dword [esp + 0x10]
push eax
lea eax, [esp + ebx*2 + 0x12a]
push eax
push ebp
push edi
push ecx
mov ecx, dword [esp + 0x2c]
push esi
call fcn.00451020
jmp 0x45244f
push 0
push eax
mov eax, dword [esp + 0x18]
lea edx, [esp + ebx*2 + 0x12e]
push edx
push ebp
push 4
push edi
push eax
push esi
call dword [sym.imp.GDI32.dll_ExtTextOutW]
mov ebx, dword [esp + 0x1c]
mov ecx, dword [esp + 0x18]
imul ebx, dword [0x5c3234]
cmp dword [ecx + 0x88], 0
mov ebp, dword [esp + 0x10]
jne 0x452494
mov eax, dword [0x5c3220]
lea eax, [eax + edi - 1]
lea ecx, [esp + 0x48]
mov dword [esp + 0x4c], eax
push ecx
lea edx, [ebx + ebp]
inc eax
push esi
mov dword [esp + 0x50], ebp
mov dword [esp + 0x58], edx
mov dword [esp + 0x5c], eax
call dword [sym.imp.USER32.dll_InvertRect]
add ebx, ebp
mov dword [esp + 0x1c], ebx
mov ebx, dword [esp + 0x20]
mov edx, dword [esp + 0x18]
cmp dword [edx + 0x88], 0
je 0x4524c6
mov eax, dword [0x5ba278]
push eax
push esi
call dword [sym.imp.GDI32.dll_SetTextColor]
mov ecx, dword [0x5ba1e0]
push ecx
push esi
call dword [sym.imp.GDI32.dll_SetBkColor]
mov dword [esp + 0x60], 1
mov eax, dword [esp + 0x30]
mov ecx, dword [esp + 0x1c]
mov ebp, 0x10
sub ebp, ebx
cmp dword [0x5ed724], 0
lea edx, [esp + ebx*2 + 0x126]
je 0x4524fe
push ebp
push edx
push eax
push edi
push ecx
mov ecx, dword [esp + 0x2c]
push esi
call fcn.00451020
jmp 0x45250e
push 0
push ebp
push edx
push eax
push 4
push edi
push ecx
push esi
call dword [sym.imp.GDI32.dll_ExtTextOutW]
mov ecx, dword [0x5c3234]
mov edx, dword [esp + 0x18]
imul ebp, ecx
cmp dword [edx + 0x88], 0
je 0x452548
mov eax, dword [0x5ba278]
push eax
push esi
call dword [sym.imp.GDI32.dll_SetTextColor]
mov ecx, dword [0x5ba1e0]
push ecx
push esi
call dword [sym.imp.GDI32.dll_SetBkColor]
mov ebx, dword [esp + 0x44]
jmp 0x45265d
mov ebx, dword [esp + 0x14]
mov edx, dword [esp + 0x28]
lea eax, [ebx + 0x10]
cmp edx, eax
jl 0x4525ac
lea eax, [ebx + 0x20]
cmp edx, eax
jge 0x4525ac
mov eax, edx
sub eax, ebx
sub eax, 0x10
test eax, eax
jle 0x4525ac
mov edx, dword [0x5c3220]
imul eax, ecx
sub eax, dword [esp + 0x24]
mov ecx, dword [esp + 0x1c]
add eax, dword [esp + 0x94]
add ebp, ecx
mov dword [esp + 0x48], eax
lea eax, [edx + edi - 1]
mov dword [esp + 0x4c], eax
inc eax
mov dword [esp + 0x54], eax
lea eax, [esp + 0x48]
push eax
mov dword [esp + 0x54], ebp
mov ebp, dword [sym.imp.USER32.dll_InvertRect]
push esi
call ebp
mov edx, dword [esp + 0x28]
jmp 0x4525b2
mov ebp, dword [sym.imp.USER32.dll_InvertRect]
cmp ebx, edx
je 0x45264d
cmp dword [esp + 0x80], 0
mov eax, dword [esp + 0x10]
jne 0x4525cf
mov eax, dword [esp + 0x88]
mov ebx, dword [esp + 0x60]
mov edx, dword [0x5c3220]
mov dword [esp + 0x48], eax
inc eax
xor ecx, ecx
test ebx, ebx
setne cl
mov dword [esp + 0x50], eax
lea eax, [esp + 0x48]
push eax
push esi
mov dword [esp + 0x54], edi
sub edx, ecx
add edx, edi
mov dword [esp + 0x5c], edx
call ebp
mov eax, dword [esp + 0x1c]
test ebx, ebx
mov ebx, dword [esp + 0x44]
jne 0x45260b
mov eax, ebx
mov ecx, dword [0x5c3220]
push 0
push 0
push 0
mov dword [esp + 0x54], eax
inc eax
lea edx, [esp + 0x54]
push edx
mov dword [esp + 0x60], eax
mov eax, dword [esp + 0x3c]
push eax
push 0
push 0
add ecx, edi
push esi
mov dword [esp + 0x6c], edi
mov dword [esp + 0x74], ecx
call dword [sym.imp.GDI32.dll_ExtTextOutW]
lea ecx, [esp + 0x48]
push ecx
push esi
call ebp
mov eax, dword [esp + 0x50]
jmp 0x452657
mov ebx, dword [esp + 0x44]
mov eax, ebx
mov dword [esp + 0x50], eax
cmp ebx, eax
jg 0x45265d
mov ebx, eax
push 0
push esi
call dword [sym.imp.GDI32.dll_SelectClipRgn]
mov edx, dword [esp + 0x64]
push edx
call dword [sym.imp.GDI32.dll_DeleteObject]
mov ebp, dword [esp + 0x30]
jmp 0x45284f
cmp dword [0x5ed724], 0
push 0
lea eax, [esp + 0xc6]
je 0x4526bf
push 0x32
push eax
push ebp
push 4
push edi
push ebx
push esi
call dword [sym.imp.GDI32.dll_ExtTextOutW]
mov edx, dword [0x5c3234]
imul edx, edx, 0x32
push 0x10
lea ecx, [esp + 0x12a]
push ecx
mov ecx, dword [esp + 0x20]
push ebp
push edi
add edx, ebx
push edx
push esi
call fcn.00451020
jmp 0x4526ce
push 0x42
push eax
push ebp
push 4
push edi
push ebx
push esi
call dword [sym.imp.GDI32.dll_ExtTextOutW]
cmp dword [esp + 0x5c], 0
jne 0x4526fb
mov ecx, dword [esp + 0x18]
mov edx, dword [ecx + 0x58]
cmp dword [edx + 0x58], 0
jne 0x4526fb
mov eax, dword [esp + 0x14]
cdq
and edx, 0xf
add eax, edx
sar eax, 4
cmp eax, dword [ecx + 0x6c]
jne 0x4526fb
push 0
call fcn.00451330
mov ebx, dword [esp + 0x84]
sub ebx, dword [esp + 0x24]
mov ecx, dword [0x5c3220]
push 0
push 0
push 0
inc ebx
lea eax, [ebx - 1]
lea edx, [esp + 0x78]
push edx
mov dword [esp + 0x7c], eax
mov eax, dword [esp + 0x3c]
push eax
push 0
push 0
add ecx, edi
push esi
mov dword [esp + 0x94], ebx
mov dword [esp + 0x90], edi
mov dword [esp + 0x98], ecx
call dword [sym.imp.GDI32.dll_ExtTextOutW]
cmp dword [esp + 0x5c], 0
jne 0x45284f
mov ecx, dword [esp + 0x18]
mov edx, dword [ecx + 0x58]
cmp dword [edx + 0x58], 0
jle 0x45284f
mov eax, dword [esp + 0x14]
mov ecx, dword [esp + 0x58]
lea edx, [eax + 0x10]
cmp ecx, edx
jl 0x45284f
add eax, 0x20
cmp ecx, eax
jge 0x45284f
push ebp
call dword [sym.imp.GDI32.dll_CreateRectRgnIndirect]
push eax
push esi
mov dword [esp + 0x6c], eax
call dword [sym.imp.GDI32.dll_SelectClipRgn]
mov ecx, dword [esp + 0x58]
sub ecx, dword [esp + 0x14]
mov eax, dword [esp + 0x18]
mov eax, dword [eax + 0x88]
sub ecx, 0x10
test eax, eax
jne 0x4527b1
lea edx, [ecx + 0x3d]
jmp 0x4527bb
cmp ecx, 7
lea edx, [ecx + ecx*2 + 0xb]
jle 0x4527bb
inc edx
imul edx, dword [0x5c3234]
sub edx, dword [esp + 0x24]
mov ecx, dword [esp + 0x28]
mov dword [esp + 0x6c], edx
mov edx, dword [esp + 0x14]
add edx, 0x20
cmp ecx, edx
jge 0x4527ff
sub ecx, dword [esp + 0x14]
sub ecx, 0x10
test eax, eax
jne 0x4527e9
lea eax, [ecx + 0x3d]
jmp 0x452809
cmp ecx, 7
lea eax, [ecx + ecx*2 + 0xb]
jle 0x4527f8
cmp ecx, 8
jle 0x4527f8
inc eax
test ecx, ecx
jle 0x452809
dec eax
jmp 0x452809
neg eax
sbb eax, eax
and eax, 0xffffffee
add eax, 0x4d
imul eax, dword [0x5c3234]
sub eax, dword [esp + 0x24]
mov ecx, dword [0x5c3220]
inc eax
mov dword [esp + 0x74], eax
lea eax, [ecx + edi - 1]
lea edx, [esp + 0x6c]
mov dword [esp + 0x70], eax
push edx
inc eax
push esi
mov dword [esp + 0x80], eax
call dword [sym.imp.USER32.dll_InvertRect]
push 0
push esi
call dword [sym.imp.GDI32.dll_SelectClipRgn]
mov eax, dword [esp + 0x64]
push eax
call dword [sym.imp.GDI32.dll_DeleteObject]
mov eax, dword [ebp + 8]
cmp ebx, eax
jge 0x4528a6
mov ecx, dword [ebp]
cmp ecx, ebx
mov dword [esp + 0x9c], ecx
jg 0x45286b
mov dword [esp + 0x9c], ebx
mov ecx, dword [0x5c3220]
push 0
push 0
push 0
lea edx, [esp + 0xa8]
push edx
mov dword [esp + 0xb4], eax
mov eax, dword [esp + 0x3c]
push eax
push 0
push 0
add ecx, edi
push esi
mov dword [esp + 0xc0], edi
mov dword [esp + 0xc8], ecx
call dword [sym.imp.GDI32.dll_ExtTextOutW]
add edi, dword [0x5c3220]
add dword [esp + 0x14], 0x10
cmp edi, dword [esp + 0x8c]
jl 0x451d60
cmp edi, dword [ebp + 0xc]
jge 0x45290a
mov ecx, dword [0x5ba1e0]
push ecx
push esi
call dword [sym.imp.GDI32.dll_SetBkColor]
mov edx, dword [ebp + 0xc]
mov eax, dword [ebp + 8]
mov ecx, dword [ebp]
push edx
push eax
push edi
push ecx
lea edx, [esp + 0xac]
push edx
call dword [sym.imp.USER32.dll_SetRect]
mov ecx, dword [esp + 0x2c]
push 0
push 0
push 0
lea eax, [esp + 0xa8]
push eax
push ecx
push 0
push 0
push esi
call dword [sym.imp.GDI32.dll_ExtTextOutW]
pop edi
pop ebx
mov ecx, dword [esp + 0x140]
pop esi
pop ebp
xor ecx, esp
call fcn.0053f73f
add esp, 0x13c
ret 0xc