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

Disassembly:
sub esp, 0xe8
mov eax, dword [0x5ba1b4]
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 [0x5ba124]
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 [0x5ba084], 1
mov ecx, dword [edi + 0xa0]
mov edx, dword [ecx + 0x19c]
mov ebp, dword [ecx + 0x194]
mov ebx, dword [ecx + 0x190]
mov dword [esp + 0xb4], eax
mov eax, dword [ecx + 0x198]
mov dword [esp + 0x68], eax
mov eax, dword [0x5ed7dc]
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 0x48c3f5
cmp dword [edi + 0x1e8], 0
je 0x48c1f1
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 [0x5c3df4]
mov edx, dword [edi + 0x68]
mov eax, dword [edi + 0x80]
imul eax, dword [0x5c3e08]
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 0x48c17c
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 0x48c191
sub ecx, eax
add ecx, edx
mov edi, dword [esp + 0x104]
cmp edi, dword [esp + 0x108]
mov ebp, ecx
jge 0x48c1d8
mov eax, dword [0x5c3df4]
cmp edi, dword [esp + 0x6c]
jl 0x48c1cd
cmp edi, dword [esp + 0x30]
jge 0x48c1cd
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 [0x5c3df4]
add edi, eax
cmp edi, dword [esp + 0x108]
jl 0x48c1a8
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 0x48cd5c
mov edx, dword [ecx + 0x1b8]
push 0
push edx
lea eax, [esp + 0x5c]
push eax
lea edx, [esp + 0x3c]
push edx
call fcn.00473d30
mov ecx, dword [edi + 0xa0]
mov eax, dword [ecx + 0x1bc]
push 0
push eax
lea edx, [esp + 0x5c]
push edx
lea eax, [esp + 0x7c]
push eax
call fcn.00473d30
mov ebx, dword [esp + 0x104]
cmp ebx, dword [esp + 0x108]
jge 0x48cd5c
mov ebp, dword [esp + 0x10c]
cmp ebp, dword [esp + 0x110]
jge 0x48cd5c
cmp ebp, dword [esp + 0x30]
jl 0x48c3dc
cmp ebp, dword [esp + 0x70]
jg 0x48c3dc
push 0
push ebp
lea ecx, [esp + 0x5c]
push ecx
mov ecx, dword [edi + 0xa0]
lea edx, [esp + 0x74]
push edx
call fcn.004745a0
mov edx, dword [edi + 0xa0]
lea eax, [esp + 0x24]
push eax
mov eax, dword [esp + 0x6c]
sub eax, dword [edx + 0x1b8]
lea ecx, [esp + 0x2c]
push ecx
push eax
mov ecx, edi
call fcn.004879a0
mov ecx, dword [edi + 0x64]
mov eax, dword [esp + 0x28]
lea edx, [ecx + eax]
cmp ecx, edx
jle 0x48c2af
mov eax, ecx
jmp 0x48c2b1
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 0x48c2ce
mov dword [esp + 0x7c], eax
mov ecx, dword [edx + 4]
cmp ecx, ebx
mov dword [esp + 0x80], ecx
jg 0x48c2e3
mov dword [esp + 0x80], ebx
mov ecx, dword [edx + 8]
mov edx, dword [esp + 0x24]
cmp ecx, edx
mov eax, ecx
jl 0x48c2f2
mov eax, edx
mov ecx, dword [0x5c3df4]
mov edx, dword [esp + 0x114]
mov edx, dword [edx + 0xc]
add ecx, ebx
cmp edx, ecx
mov dword [esp + 0x84], eax
jge 0x48c311
mov ecx, edx
cmp dword [esp + 0x7c], eax
mov dword [esp + 0x88], ecx
jge 0x48c3dc
cmp dword [esp + 0x80], ecx
jge 0x48c3dc
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.0048b9e0
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.004791c0
test byte [0x5ed664], 4
je 0x48c3dc
mov ecx, dword [esp + 0x110]
dec ecx
cmp ebp, ecx
jge 0x48c3dc
mov ecx, dword [edi + 0xa0]
lea edx, [ebp + 1]
push edx
call fcn.00471ec0
test eax, eax
jne 0x48c3dc
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 [0x5c3df4]
inc ebp
cmp ebx, dword [esp + 0x108]
jl 0x48c242
jmp 0x48cd5c
mov eax, dword [esp + 0x104]
cmp eax, dword [esp + 0x108]
mov dword [esp + 0x2c], eax
jge 0x48cd5c
jmp 0x48c41b
mov ebx, dword [esp + 0xb0]
mov ebp, dword [esp + 0x64]
mov edx, dword [esp + 0x10c]
cmp edx, dword [esp + 0x110]
jge 0x48cd5c
push ebp
push ebx
lea eax, [esp + 0xa8]
push eax
lea ecx, [esp + 0x60]
push ecx
mov ecx, dword [edi + 0xa0]
call fcn.00473d30
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.00473d30
mov eax, dword [esp + 0x10c]
cmp eax, dword [esp + 0x54]
jl 0x48cd33
mov ecx, eax
cmp ecx, dword [esp + 0x74]
jg 0x48cd33
mov ebx, dword [esp + 0x2c]
mov edx, dword [0x5c3df4]
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.0048b9e0
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.004745a0
mov ecx, dword [edi + 0xa0]
cmp dword [ecx + 0x9c], 0
mov eax, dword [esp + 0x70]
je 0x48c4f4
xor esi, esi
jmp 0x48c501
mov esi, dword [ecx + 0x31c]
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 0x48c52f
push ebp
call fcn.00479120
mov dword [esp + 0x14], eax
mov eax, dword [esp + 0x70]
mov ecx, dword [edi + 0xa0]
mov edx, dword [ecx + 0x31c]
lea eax, [eax + eax*8]
mov eax, dword [edx + eax*4]
dec eax
mov dword [esp + 0x5c], eax
cmp ebp, dword [esp + 0x54]
jne 0x48c59a
test esi, esi
je 0x48c56b
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 0x48c5ab
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.004791c0
mov eax, dword [esp + 0x10]
jmp 0x48c5af
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 0x48c633
mov eax, dword [esp + 0x18]
test eax, eax
je 0x48c5fd
mov edx, dword [esp + 0x78]
mov ecx, dword [esp + 0x5c]
cmp edx, ecx
jne 0x48c5e6
mov eax, dword [eax + ecx*4 + 4]
add eax, dword [esp + 0x14]
add eax, esi
mov dword [esp + 0x10], eax
jmp 0x48c6b2
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 0x48c6b2
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.004791c0
mov eax, dword [esp + 0x10]
mov ebx, dword [esp + 0x4c]
jmp 0x48c6b2
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 0x48c679
mov edx, dword [esp + 0x5c]
cmp eax, edx
jne 0x48c665
mov eax, dword [ecx + edx*4 + 4]
add eax, dword [esp + 0x14]
add eax, esi
mov dword [esp + 0x10], eax
jmp 0x48c6aa
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 0x48c6aa
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.004791c0
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 0x48c70c
cmp dword [esp + 0x18], 0
je 0x48cb21
mov esi, dword [esp + 0x18]
mov edx, dword [esp + 0x20]
cmp dword [esi + edx*4], 0
jge 0x48c710
mov edx, dword [esp + 0x24]
cmp dword [esi + edx*4], 0
jge 0x48c710
mov edx, dword [esp + 0x34]
cmp edx, eax
jle 0x48c710
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 0x48cb21
mov esi, dword [esp + 0x18]
test esi, esi
je 0x48cb21
xor eax, eax
mov dword [esp + 0x30], eax
mov dword [esp + 0x60], eax
cmp dword [esp + 0x10c], ebp
jne 0x48c8b1
mov eax, dword [esp + 0x18]
mov edx, dword [esp + 0x20]
cmp dword [eax + edx*4], 0
jge 0x48c8b1
mov ebp, edx
mov esi, ebp
test ebp, ebp
jle 0x48c75d
lea eax, [eax + ebp*4 - 4]
lea ecx, [ecx]
cmp dword [eax], 0
jge 0x48c75d
dec esi
sub eax, 4
test esi, esi
jg 0x48c750
test esi, esi
jne 0x48c771
mov edx, dword [esp + 0x14]
mov eax, dword [esp + 0x100]
lea ebx, [edx + eax]
jmp 0x48c78a
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 0x48c8b1
mov ebp, dword [esp + 0x20]
mov eax, dword [esp + 0x58]
inc ebp
cmp ebp, eax
jge 0x48c7bb
mov edx, dword [esp + 0x18]
jmp 0x48c7b0
cmp dword [edx + ebp*4], 0
jge 0x48c7bb
inc ebp
cmp ebp, eax
jl 0x48c7b0
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 0x48c7e5
mov edx, dword [esp + 0x5c]
mov eax, dword [eax + edx*4 + 4]
jmp 0x48c7ed
mov eax, dword [eax + ebp*4]
cdq
xor eax, edx
sub eax, edx
add eax, dword [esp + 0x14]
cmp esi, eax
jge 0x48c8b1
mov ecx, dword [esp + 0x2c]
mov edx, dword [0x5c3df4]
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 0x48ca38
mov ebp, dword [esp + 0x18]
mov esi, dword [esp + 0x24]
cmp dword [ebp + esi*4], 0
jge 0x48ca38
cmp dword [ebp + esi*4 - 4], 0
lea eax, [ebp + esi*4 - 4]
mov dword [esp + 0x20], eax
jge 0x48ca38
mov ecx, dword [esp + 0x58]
lea eax, [esi + 1]
cmp eax, ecx
jge 0x48c901
cmp dword [ebp + eax*4], 0
jge 0x48c8ff
inc eax
cmp eax, ecx
jl 0x48c8f3
cmp eax, ecx
jne 0x48c909
mov ecx, dword [ebp + eax*4 + 4]
jmp 0x48c914
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 0x48c93e
mov edx, dword [esp + 0x20]
cmp dword [edx], 0
jge 0x48c93e
dec eax
sub edx, 4
test eax, eax
jg 0x48c931
test eax, eax
jne 0x48c952
mov eax, dword [esp + 0x14]
mov edx, dword [esp + 0x100]
lea esi, [eax + edx]
jmp 0x48c968
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 0x48ca38
mov ecx, dword [esp + 0x2c]
mov edx, dword [0x5c3df4]
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 0x48ca4a
cmp dword [esp + 0x60], ebp
je 0x48cb21
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 0x48cac3
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 0x48cacd
mov ebx, dword [esp + 0x1c]
mov ebp, dword [sym.imp.GDI32.dll_DeleteObject]
cmp dword [esp + 0x60], 0
je 0x48cb07
test ebx, ebx
je 0x48cadd
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 0x48cb7a
mov ecx, dword [esp + 0x10c]
inc ecx
push ecx
mov ecx, dword [edi + 0xa0]
call fcn.00471ec0
test eax, eax
jne 0x48cb72
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 0x48cb89
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 0x48cc02
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 0x48cc02
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 0x48cc11
mov ebx, eax
mov eax, dword [ecx + 4]
mov edx, dword [esp + 0x40]
cmp eax, edx
mov dword [esp + 0x8c], ebx
jle 0x48cc25
mov edx, eax
mov eax, dword [ecx + 8]
mov ebp, dword [esp + 0x3c]
cmp eax, ebp
mov dword [esp + 0x90], edx
jge 0x48cc39
mov ebp, eax
mov eax, dword [ecx + 0xc]
mov ecx, dword [esp + 0x50]
cmp eax, ecx
mov dword [esp + 0x94], ebp
jl 0x48cc4d
mov eax, ecx
cmp ebx, ebp
mov dword [esp + 0x98], eax
jge 0x48cd18
cmp edx, eax
jge 0x48cd18
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.004791c0
test byte [0x5ed664], 4
je 0x48cd18
cmp dword [esp + 0x28], 0
je 0x48cd18
mov eax, dword [esp + 0x18]
test eax, eax
je 0x48ccee
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 0x48ccf2
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 0x48cd33
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 [0x5c3df4]
inc dword [esp + 0x10c]
cmp eax, dword [esp + 0x108]
mov esi, dword [esp + 0xfc]
mov dword [esp + 0x2c], eax
jl 0x48c410
mov ecx, dword [esp + 0x9c]
push ecx
push esi
mov dword [0x5ba084], 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