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

Disassembly:
sub esp, 0xe8
mov eax, dword [0x5ba284]
push ebx
push ebp
push esi
mov esi, dword [esp + 0xf8]
push edi
push eax
push esi
mov edi, ecx
mov dword [esp + 0x24], 0
call dword [sym.imp.GDI32.dll_SetTextColor]
mov ecx, dword [0x5ba1ec]
push ecx
push esi
mov dword [esp + 0xa4], eax
call dword [sym.imp.GDI32.dll_SetBkColor]
push 1
push esi
mov dword [esp + 0xb0], eax
call dword [sym.imp.GDI32.dll_SetBkMode]
mov dword [0x5ba144], 1
mov ecx, dword [edi + 0xa0]
mov edx, dword [ecx + 0x1b4]
mov ebp, dword [ecx + 0x1ac]
mov ebx, dword [ecx + 0x1a8]
mov dword [esp + 0xb4], eax
mov eax, dword [ecx + 0x1b0]
mov dword [esp + 0x68], eax
mov eax, dword [0x5ed84c]
mov dword [esp + 0x78], edx
cdq
sub eax, edx
sar eax, 1
mov edx, 0
sets dl
mov dword [esp + 0x64], ebp
mov dword [esp + 0xb0], ebx
dec edx
and edx, eax
cmp dword [ecx + 0x100], 2
mov dword [esp + 0x6c], edx
jne 0x48cb55
cmp dword [edi + 0x1e4], 0
je 0x48c951
mov eax, dword [esp + 0x114]
push eax
call dword [sym.imp.GDI32.dll_CreateRectRgnIndirect]
push eax
push esi
mov dword [esp + 0x24], eax
call dword [sym.imp.GDI32.dll_SelectClipRgn]
mov ecx, dword [edi + 0x7c]
imul ecx, dword [0x5c3e74]
mov edx, dword [edi + 0x68]
mov eax, dword [edi + 0x80]
imul eax, dword [0x5c3e88]
sub edx, ecx
lea ecx, [edx + ebx]
mov dword [esp + 0x6c], ecx
mov ecx, dword [esp + 0x68]
add edx, ecx
mov ecx, dword [edi + 0x64]
mov dword [esp + 0x30], edx
mov edx, ecx
sub edx, eax
add edx, ebp
cmp ecx, edx
mov ebx, ecx
jg 0x48c8dc
sub ebx, eax
add ebx, ebp
mov edi, dword [edi + 0x64]
mov edx, dword [esp + 0x78]
mov ebp, edi
sub ebp, eax
add ebp, edx
cmp edi, ebp
jg 0x48c8f1
sub ecx, eax
add ecx, edx
mov edi, dword [esp + 0x104]
cmp edi, dword [esp + 0x108]
mov ebp, ecx
jge 0x48c938
mov eax, dword [0x5c3e74]
cmp edi, dword [esp + 0x6c]
jl 0x48c92d
cmp edi, dword [esp + 0x30]
jge 0x48c92d
push 0x550009
push eax
mov eax, ebp
sub eax, ebx
push eax
push edi
push ebx
push esi
call dword [sym.imp.GDI32.dll_PatBlt]
mov eax, dword [0x5c3e74]
add edi, eax
cmp edi, dword [esp + 0x108]
jl 0x48c908
push 0
push esi
call dword [sym.imp.GDI32.dll_SelectClipRgn]
mov ecx, dword [esp + 0x1c]
push ecx
call dword [sym.imp.GDI32.dll_DeleteObject]
jmp 0x48d4bc
mov edx, dword [ecx + 0x1d0]
push 0
push edx
lea eax, [esp + 0x5c]
push eax
lea edx, [esp + 0x3c]
push edx
call fcn.00472d20
mov ecx, dword [edi + 0xa0]
mov eax, dword [ecx + 0x1d4]
push 0
push eax
lea edx, [esp + 0x5c]
push edx
lea eax, [esp + 0x7c]
push eax
call fcn.00472d20
mov ebx, dword [esp + 0x104]
cmp ebx, dword [esp + 0x108]
jge 0x48d4bc
mov ebp, dword [esp + 0x10c]
cmp ebp, dword [esp + 0x110]
jge 0x48d4bc
cmp ebp, dword [esp + 0x30]
jl 0x48cb3c
cmp ebp, dword [esp + 0x70]
jg 0x48cb3c
push 0
push ebp
lea ecx, [esp + 0x5c]
push ecx
mov ecx, dword [edi + 0xa0]
lea edx, [esp + 0x74]
push edx
call fcn.00473590
mov edx, dword [edi + 0xa0]
lea eax, [esp + 0x24]
push eax
mov eax, dword [esp + 0x6c]
sub eax, dword [edx + 0x1d0]
lea ecx, [esp + 0x2c]
push ecx
push eax
mov ecx, edi
call fcn.00487fb0
mov ecx, dword [edi + 0x64]
mov eax, dword [esp + 0x28]
lea edx, [ecx + eax]
cmp ecx, edx
jle 0x48ca0f
mov eax, ecx
jmp 0x48ca11
add eax, ecx
add dword [esp + 0x24], ecx
mov edx, dword [esp + 0x114]
mov ecx, dword [edx]
cmp ecx, eax
mov dword [esp + 0x28], eax
mov dword [esp + 0x7c], ecx
jg 0x48ca2e
mov dword [esp + 0x7c], eax
mov ecx, dword [edx + 4]
cmp ecx, ebx
mov dword [esp + 0x80], ecx
jg 0x48ca43
mov dword [esp + 0x80], ebx
mov ecx, dword [edx + 8]
mov edx, dword [esp + 0x24]
cmp ecx, edx
mov eax, ecx
jl 0x48ca52
mov eax, edx
mov ecx, dword [0x5c3e74]
mov edx, dword [esp + 0x114]
mov edx, dword [edx + 0xc]
add ecx, ebx
cmp edx, ecx
mov dword [esp + 0x84], eax
jge 0x48ca71
mov ecx, edx
cmp dword [esp + 0x7c], eax
mov dword [esp + 0x88], ecx
jge 0x48cb3c
cmp dword [esp + 0x80], ecx
jge 0x48cb3c
mov eax, dword [esp + 0x100]
push 0
push 0
push 0
lea ecx, [esp + 0x88]
push ecx
push 2
push 0
push 0
push esi
mov dword [esp + 0x30], eax
call dword [sym.imp.GDI32.dll_ExtTextOutW]
mov ecx, dword [edi + 0xa0]
push ebp
call fcn.0048c200
mov ecx, dword [edi + 0xa0]
push 0
push 0
push 0
lea edx, [esp + 0x88]
push edx
push eax
push ebp
push ebx
lea eax, [esp + 0x2c]
push eax
push esi
call fcn.00478750
test byte [0x5ed6d4], 4
je 0x48cb3c
mov ecx, dword [esp + 0x110]
dec ecx
cmp ebp, ecx
jge 0x48cb3c
mov ecx, dword [edi + 0xa0]
lea edx, [ebp + 1]
push edx
call fcn.00470e50
test eax, eax
jne 0x48cb3c
mov edx, dword [esp + 0x6c]
push eax
push 1
lea eax, [esp + 0x6c]
push eax
lea ecx, [esp + 0x88]
push ecx
mov ecx, dword [esp + 0x20]
push 4
lea eax, [ebx + edx]
push eax
push ecx
push esi
mov dword [esp + 0x84], 0xb6
call dword [sym.imp.GDI32.dll_ExtTextOutW]
add ebx, dword [0x5c3e74]
inc ebp
cmp ebx, dword [esp + 0x108]
jl 0x48c9a2
jmp 0x48d4bc
mov eax, dword [esp + 0x104]
cmp eax, dword [esp + 0x108]
mov dword [esp + 0x2c], eax
jge 0x48d4bc
jmp 0x48cb7b
mov ebx, dword [esp + 0xb0]
mov ebp, dword [esp + 0x64]
mov edx, dword [esp + 0x10c]
cmp edx, dword [esp + 0x110]
jge 0x48d4bc
push ebp
push ebx
lea eax, [esp + 0xa8]
push eax
lea ecx, [esp + 0x60]
push ecx
mov ecx, dword [edi + 0xa0]
call fcn.00472d20
mov edx, dword [esp + 0x78]
mov eax, dword [esp + 0x68]
push edx
push eax
lea ecx, [esp + 0xac]
push ecx
mov ecx, dword [edi + 0xa0]
lea edx, [esp + 0x80]
push edx
call fcn.00472d20
mov eax, dword [esp + 0x10c]
cmp eax, dword [esp + 0x54]
jl 0x48d493
mov ecx, eax
cmp ecx, dword [esp + 0x74]
jg 0x48d493
mov ebx, dword [esp + 0x2c]
mov edx, dword [0x5c3e74]
mov ebp, ecx
mov ecx, dword [edi + 0xa0]
lea eax, [edx + ebx]
push ebp
mov dword [esp + 0x2c], 0
mov dword [esp + 0x44], ebx
mov dword [esp + 0x3c], ebx
mov dword [esp + 0x54], eax
mov dword [esp + 0x4c], eax
call fcn.0048c200
push 0
mov dword [esp + 0x5c], eax
push ebp
lea eax, [esp + 0xb4]
push eax
lea ecx, [esp + 0x7c]
push ecx
mov ecx, dword [edi + 0xa0]
call fcn.00473590
mov ecx, dword [edi + 0xa0]
cmp dword [ecx + 0x9c], 0
mov eax, dword [esp + 0x70]
je 0x48cc54
xor esi, esi
jmp 0x48cc61
mov esi, dword [ecx + 0x334]
lea edx, [eax + eax*8]
mov esi, dword [esi + edx*4 + 0x20]
mov edx, dword [esp + 0x64]
mov dword [esp + 0x20], edx
mov edx, dword [esp + 0x78]
mov dword [esp + 0x18], esi
mov dword [esp + 0x24], edx
mov dword [esp + 0x14], 0
test esi, esi
je 0x48cc8f
push ebp
call fcn.004786b0
mov dword [esp + 0x14], eax
mov eax, dword [esp + 0x70]
mov ecx, dword [edi + 0xa0]
mov edx, dword [ecx + 0x334]
lea eax, [eax + eax*8]
mov eax, dword [edx + eax*4]
dec eax
mov dword [esp + 0x5c], eax
cmp ebp, dword [esp + 0x54]
jne 0x48ccfa
test esi, esi
je 0x48cccb
mov eax, dword [esp + 0x64]
mov eax, dword [esi + eax*4]
mov esi, dword [esp + 0x100]
cdq
xor eax, edx
sub eax, edx
add eax, dword [esp + 0x14]
add eax, esi
jmp 0x48cd0b
mov edx, dword [esp + 0xa0]
mov esi, dword [esp + 0x100]
push 0
push 0
push 1
push 0
push edx
push ebp
push ebx
lea eax, [esp + 0x2c]
push eax
push 0
mov dword [esp + 0x34], esi
call fcn.00478750
mov eax, dword [esp + 0x10]
jmp 0x48cd0f
mov esi, dword [esp + 0x100]
mov dword [esp + 0x20], 0
mov eax, esi
mov dword [esp + 0x10], eax
mov ebx, eax
mov dword [esp + 0x4c], ebx
mov dword [esp + 0x34], eax
cmp ebp, dword [esp + 0x74]
jne 0x48cd93
mov eax, dword [esp + 0x18]
test eax, eax
je 0x48cd5d
mov edx, dword [esp + 0x78]
mov ecx, dword [esp + 0x5c]
cmp edx, ecx
jne 0x48cd46
mov eax, dword [eax + ecx*4 + 4]
add eax, dword [esp + 0x14]
add eax, esi
mov dword [esp + 0x10], eax
jmp 0x48ce12
mov eax, dword [eax + edx*4]
cdq
xor eax, edx
sub eax, edx
add eax, dword [esp + 0x14]
add eax, esi
mov dword [esp + 0x10], eax
jmp 0x48ce12
mov ecx, dword [esp + 0xa4]
mov edx, dword [esp + 0x2c]
push 0
push 0
push 1
push 0
push ecx
mov ecx, dword [edi + 0xa0]
push ebp
push edx
lea eax, [esp + 0x2c]
push eax
push 0
mov dword [esp + 0x34], esi
call fcn.00478750
mov eax, dword [esp + 0x10]
mov ebx, dword [esp + 0x4c]
jmp 0x48ce12
mov ecx, dword [esp + 0xac]
mov edx, dword [esp + 0x58]
lea eax, [ecx + edx]
mov ecx, dword [esp + 0x18]
mov dword [esp + 0x24], eax
test ecx, ecx
je 0x48cdd9
mov edx, dword [esp + 0x5c]
cmp eax, edx
jne 0x48cdc5
mov eax, dword [ecx + edx*4 + 4]
add eax, dword [esp + 0x14]
add eax, esi
mov dword [esp + 0x10], eax
jmp 0x48ce0a
mov eax, dword [ecx + eax*4]
cdq
xor eax, edx
sub eax, edx
add eax, dword [esp + 0x14]
add eax, esi
mov dword [esp + 0x10], eax
jmp 0x48ce0a
mov eax, dword [esp + 0x58]
mov ecx, dword [esp + 0x2c]
push 0
push 0
push 1
push 0
push eax
push ebp
push ecx
mov ecx, dword [edi + 0xa0]
lea edx, [esp + 0x2c]
push edx
push 0
mov dword [esp + 0x34], esi
call fcn.00478750
mov eax, dword [esp + 0x10]
mov ebx, dword [esp + 0x4c]
mov dword [esp + 0x28], 1
mov ebp, dword [esp + 0x54]
mov ecx, eax
mov dword [esp + 0x44], ecx
mov dword [esp + 0x3c], eax
cmp ebp, dword [esp + 0x74]
jne 0x48ce6c
cmp dword [esp + 0x18], 0
je 0x48d281
mov esi, dword [esp + 0x18]
mov edx, dword [esp + 0x20]
cmp dword [esi + edx*4], 0
jge 0x48ce70
mov edx, dword [esp + 0x24]
cmp dword [esi + edx*4], 0
jge 0x48ce70
mov edx, dword [esp + 0x34]
cmp edx, eax
jle 0x48ce70
mov ecx, edx
mov dword [esp + 0x3c], ecx
mov ecx, ebx
mov ebx, eax
mov dword [esp + 0x34], eax
mov dword [esp + 0x44], ecx
mov dword [esp + 0x4c], ebx
jmp 0x48d281
mov esi, dword [esp + 0x18]
test esi, esi
je 0x48d281
xor eax, eax
mov dword [esp + 0x30], eax
mov dword [esp + 0x60], eax
cmp dword [esp + 0x10c], ebp
jne 0x48d011
mov eax, dword [esp + 0x18]
mov edx, dword [esp + 0x20]
cmp dword [eax + edx*4], 0
jge 0x48d011
mov ebp, edx
mov esi, ebp
test ebp, ebp
jle 0x48cebd
lea eax, [eax + ebp*4 - 4]
lea ecx, [ecx]
cmp dword [eax], 0
jge 0x48cebd
dec esi
sub eax, 4
test esi, esi
jg 0x48ceb0
test esi, esi
jne 0x48ced1
mov edx, dword [esp + 0x14]
mov eax, dword [esp + 0x100]
lea ebx, [edx + eax]
jmp 0x48ceea
mov edx, dword [esp + 0x18]
mov eax, dword [edx + esi*4]
cdq
mov ebx, eax
xor ebx, edx
sub ebx, edx
add ebx, dword [esp + 0x14]
add ebx, dword [esp + 0x100]
mov dword [esp + 0x34], ebx
mov dword [esp + 0x4c], ebx
cmp esi, ebp
je 0x48d011
mov ebp, dword [esp + 0x20]
mov eax, dword [esp + 0x58]
inc ebp
cmp ebp, eax
jge 0x48cf1b
mov edx, dword [esp + 0x18]
jmp 0x48cf10
cmp dword [edx + ebp*4], 0
jge 0x48cf1b
inc ebp
cmp ebp, eax
jl 0x48cf10
mov edx, dword [esp + 0x20]
mov eax, dword [esp + 0x18]
mov eax, dword [eax + edx*4]
cdq
mov esi, eax
mov eax, dword [esp + 0x18]
xor esi, edx
sub esi, edx
add esi, dword [esp + 0x14]
cmp ebp, dword [esp + 0x5c]
jne 0x48cf45
mov edx, dword [esp + 0x5c]
mov eax, dword [eax + edx*4 + 4]
jmp 0x48cf4d
mov eax, dword [eax + ebp*4]
cdq
xor eax, edx
sub eax, edx
add eax, dword [esp + 0x14]
cmp esi, eax
jge 0x48d011
mov ecx, dword [esp + 0x2c]
mov edx, dword [0x5c3e74]
mov dword [esp + 0xc4], ecx
mov dword [esp + 0xbc], ecx
add ecx, edx
mov edx, dword [esp + 0x100]
mov dword [esp + 0xd4], ecx
mov dword [esp + 0xcc], ecx
lea ecx, [esi + edx]
add edx, eax
mov eax, dword [edi + 0xa0]
mov dword [esp + 0xd0], ecx
mov dword [esp + 0xb8], ecx
mov dword [esp + 0xc8], edx
mov dword [esp + 0xc0], edx
mov esi, dword [eax + 0xd8]
add esi, ecx
add esi, dword [eax + 0xd4]
push 2
mov dword [esp + 0xbc], esi
mov esi, dword [eax + 0xd8]
add esi, edx
add esi, dword [eax + 0xd4]
push 4
mov dword [esp + 0xc8], esi
add edx, dword [eax + 0xd4]
mov dword [esp + 0xd0], edx
add ecx, dword [eax + 0xd4]
lea eax, [esp + 0xc0]
push eax
mov dword [esp + 0xdc], ecx
call dword [sym.imp.GDI32.dll_CreatePolygonRgn]
mov ebx, dword [esp + 0x4c]
mov ecx, dword [esp + 0x44]
mov dword [esp + 0x30], eax
mov edx, dword [esp + 0x74]
cmp dword [esp + 0x10c], edx
jne 0x48d198
mov ebp, dword [esp + 0x18]
mov esi, dword [esp + 0x24]
cmp dword [ebp + esi*4], 0
jge 0x48d198
cmp dword [ebp + esi*4 - 4], 0
lea eax, [ebp + esi*4 - 4]
mov dword [esp + 0x20], eax
jge 0x48d198
mov ecx, dword [esp + 0x58]
lea eax, [esi + 1]
cmp eax, ecx
jge 0x48d061
cmp dword [ebp + eax*4], 0
jge 0x48d05f
inc eax
cmp eax, ecx
jl 0x48d053
cmp eax, ecx
jne 0x48d069
mov ecx, dword [ebp + eax*4 + 4]
jmp 0x48d074
mov eax, dword [ebp + eax*4]
cdq
mov ecx, eax
xor ecx, edx
sub ecx, edx
add ecx, dword [esp + 0x14]
mov eax, esi
add ecx, dword [esp + 0x100]
mov dword [esp + 0x3c], ecx
mov dword [esp + 0x44], ecx
test esi, esi
jle 0x48d09e
mov edx, dword [esp + 0x20]
cmp dword [edx], 0
jge 0x48d09e
dec eax
sub edx, 4
test eax, eax
jg 0x48d091
test eax, eax
jne 0x48d0b2
mov eax, dword [esp + 0x14]
mov edx, dword [esp + 0x100]
lea esi, [eax + edx]
jmp 0x48d0c8
mov eax, dword [ebp + eax*4]
cdq
mov esi, eax
xor esi, edx
sub esi, edx
add esi, dword [esp + 0x14]
add esi, dword [esp + 0x100]
mov eax, dword [esp + 0x24]
mov eax, dword [ebp + eax*4]
cdq
xor eax, edx
sub eax, edx
add eax, dword [esp + 0x14]
add eax, dword [esp + 0x100]
cmp esi, eax
jge 0x48d198
mov ecx, dword [esp + 0x2c]
mov edx, dword [0x5c3e74]
mov dword [esp + 0xe4], ecx
mov dword [esp + 0xdc], ecx
add ecx, edx
mov dword [esp + 0xf4], ecx
mov dword [esp + 0xec], ecx
mov ecx, dword [edi + 0xa0]
mov dword [esp + 0xe8], eax
mov dword [esp + 0xe0], eax
mov dword [esp + 0xf0], esi
mov dword [esp + 0xd8], esi
mov edx, dword [ecx + 0xd4]
add edx, esi
add edx, dword [ecx + 0xd8]
push 2
mov dword [esp + 0xdc], edx
mov edx, dword [ecx + 0xd4]
add edx, eax
add edx, dword [ecx + 0xd8]
push 4
mov dword [esp + 0xe8], edx
mov edx, dword [ecx + 0xd4]
add edx, eax
mov dword [esp + 0xf0], edx
mov eax, dword [ecx + 0xd4]
lea ecx, [esp + 0xe0]
add eax, esi
push ecx
mov dword [esp + 0xfc], eax
call dword [sym.imp.GDI32.dll_CreatePolygonRgn]
mov ebx, dword [esp + 0x4c]
mov ecx, dword [esp + 0x44]
mov dword [esp + 0x60], eax
mov ebp, dword [esp + 0x30]
test ebp, ebp
jne 0x48d1aa
cmp dword [esp + 0x60], ebp
je 0x48d281
mov eax, dword [edi + 0xa0]
mov edx, dword [eax + 0xd8]
add edx, dword [eax + 0xd4]
push 2
add dword [esp + 0x38], edx
mov edx, dword [eax + 0xd8]
add edx, dword [eax + 0xd4]
push 4
add dword [esp + 0x44], edx
add ecx, dword [eax + 0xd4]
mov dword [esp + 0x4c], ecx
add ebx, dword [eax + 0xd4]
lea eax, [esp + 0x3c]
push eax
mov dword [esp + 0x58], ebx
call dword [sym.imp.GDI32.dll_CreatePolygonRgn]
mov esi, eax
test ebp, ebp
je 0x48d223
push 0
push 0
push 0
push 0
call dword [sym.imp.GDI32.dll_CreateRectRgn]
push 3
push ebp
mov ebx, eax
push esi
push ebx
mov dword [esp + 0x2c], ebx
call dword [sym.imp.GDI32.dll_CombineRgn]
push ebp
mov ebp, dword [sym.imp.GDI32.dll_DeleteObject]
call ebp
jmp 0x48d22d
mov ebx, dword [esp + 0x1c]
mov ebp, dword [sym.imp.GDI32.dll_DeleteObject]
cmp dword [esp + 0x60], 0
je 0x48d267
test ebx, ebx
je 0x48d23d
push esi
call ebp
mov esi, ebx
push 0
push 0
push 0
push 0
call dword [sym.imp.GDI32.dll_CreateRectRgn]
mov ecx, dword [esp + 0x60]
push 3
push ecx
mov ebx, eax
push esi
push ebx
mov dword [esp + 0x2c], ebx
call dword [sym.imp.GDI32.dll_CombineRgn]
mov edx, dword [esp + 0x60]
push edx
call ebp
push esi
call ebp
mov eax, dword [esp + 0xfc]
push ebx
push eax
call dword [sym.imp.GDI32.dll_SelectClipRgn]
mov ebx, dword [esp + 0x4c]
mov ecx, dword [esp + 0x44]
cmp dword [esp + 0x28], 0
je 0x48d2da
mov ecx, dword [esp + 0x10c]
inc ecx
push ecx
mov ecx, dword [edi + 0xa0]
call fcn.00470e50
test eax, eax
jne 0x48d2d2
mov esi, dword [esp + 0xfc]
lea edx, [esp + 0x7c]
push edx
push 1
push str.0xb6
push esi
call dword [sym.imp.GDI32.dll_GetTextExtentPoint32W]
mov eax, dword [esp + 0x7c]
mov ecx, dword [esp + 0x44]
add dword [esp + 0x3c], eax
mov ebx, dword [esp + 0x4c]
add ecx, eax
mov dword [esp + 0x44], ecx
jmp 0x48d2e9
mov ebx, dword [esp + 0x4c]
mov ecx, dword [esp + 0x44]
mov esi, dword [esp + 0xfc]
mov dword [esp + 0x28], 0
cmp dword [esp + 0x1c], 0
jne 0x48d362
mov eax, dword [edi + 0xa0]
mov edx, dword [esp + 0x34]
add edx, dword [eax + 0xd4]
mov ebp, dword [esp + 0x3c]
mov dword [esp + 0x34], edx
add ebp, dword [eax + 0xd4]
mov dword [esp + 0x3c], ebp
add ecx, dword [eax + 0xd4]
mov dword [esp + 0x44], ecx
add ebx, dword [eax + 0xd4]
mov dword [esp + 0x4c], ebx
cmp dword [eax + 0xd8], 0
je 0x48d362
add edx, dword [eax + 0xd8]
push 2
mov dword [esp + 0x38], edx
add ebp, dword [eax + 0xd8]
push 4
lea eax, [esp + 0x3c]
push eax
mov dword [esp + 0x48], ebp
call dword [sym.imp.GDI32.dll_CreatePolygonRgn]
push eax
push esi
mov dword [esp + 0x24], eax
call dword [sym.imp.GDI32.dll_SelectClipRgn]
mov ebx, dword [esp + 0x4c]
mov ecx, dword [esp + 0x114]
mov eax, dword [ecx]
cmp eax, ebx
jle 0x48d371
mov ebx, eax
mov eax, dword [ecx + 4]
mov edx, dword [esp + 0x40]
cmp eax, edx
mov dword [esp + 0x8c], ebx
jle 0x48d385
mov edx, eax
mov eax, dword [ecx + 8]
mov ebp, dword [esp + 0x3c]
cmp eax, ebp
mov dword [esp + 0x90], edx
jge 0x48d399
mov ebp, eax
mov eax, dword [ecx + 0xc]
mov ecx, dword [esp + 0x50]
cmp eax, ecx
mov dword [esp + 0x94], ebp
jl 0x48d3ad
mov eax, ecx
cmp ebx, ebp
mov dword [esp + 0x98], eax
jge 0x48d478
cmp edx, eax
jge 0x48d478
mov ebp, dword [sym.imp.GDI32.dll_ExtTextOutW]
push 0
push 0
push 0
lea ecx, [esp + 0x98]
push ecx
push 2
push 0
push 0
push esi
call ebp
mov edx, dword [esp + 0x100]
mov ecx, dword [esp + 0x58]
mov ebx, dword [esp + 0x2c]
push 0
push 0
push 0
lea eax, [esp + 0x98]
push eax
push ecx
mov ecx, dword [edi + 0xa0]
mov dword [esp + 0x24], edx
mov edx, dword [esp + 0x120]
push edx
push ebx
lea eax, [esp + 0x2c]
push eax
push esi
call fcn.00478750
test byte [0x5ed6d4], 4
je 0x48d478
cmp dword [esp + 0x28], 0
je 0x48d478
mov eax, dword [esp + 0x18]
test eax, eax
je 0x48d44e
mov ecx, dword [esp + 0x5c]
mov eax, dword [eax + ecx*4 + 4]
add eax, dword [esp + 0x14]
add eax, dword [esp + 0x100]
mov dword [esp + 0x10], eax
jmp 0x48d452
mov eax, dword [esp + 0x10]
push 0
push 1
lea edx, [esp + 0x38]
push edx
mov edx, dword [esp + 0x78]
lea ecx, [esp + 0x98]
push ecx
push 4
add ebx, edx
push ebx
push eax
push esi
mov dword [esp + 0x50], 0xb6
call ebp
cmp dword [esp + 0x1c], 0
je 0x48d493
push 0
push esi
call dword [sym.imp.GDI32.dll_SelectClipRgn]
mov eax, dword [esp + 0x1c]
push eax
call dword [sym.imp.GDI32.dll_DeleteObject]
mov eax, dword [esp + 0x2c]
add eax, dword [0x5c3e74]
inc dword [esp + 0x10c]
cmp eax, dword [esp + 0x108]
mov esi, dword [esp + 0xfc]
mov dword [esp + 0x2c], eax
jl 0x48cb70
mov ecx, dword [esp + 0x9c]
push ecx
push esi
mov dword [0x5ba144], 0
call dword [sym.imp.GDI32.dll_SetTextColor]
mov edx, dword [esp + 0xa8]
push edx
push esi
call dword [sym.imp.GDI32.dll_SetBkColor]
mov eax, dword [esp + 0xb4]
push eax
push esi
call dword [sym.imp.GDI32.dll_SetBkMode]
pop edi
pop esi
pop ebp
pop ebx
add esp, 0xe8
ret 0x1c