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

Disassembly:
mov eax, dword fs:[0]
mov edx, dword [esp + 8]
push 0xffffffffffffffff
push 0x4ba848
push eax
mov dword fs:[0], esp
mov eax, dword [edx + 0x9d]
sub esp, 0x100
test eax, eax
push ebx
push ebp
push esi
push edi
je 0x48cf49
mov ecx, dword [edx + 0x91]
test ecx, ecx
je 0x48cf49
movsx esi, byte [edx + 0x38]
mov eax, dword [edx + 0x2c]
mov ebx, dword [edx + 0x28]
cmp eax, 0xffffffff
mov dword [esp + 0x28], esi
mov dword [esp + 0x6c], ebx
mov dword [esp + 0x50], eax
jne 0x48bf2e
mov dword [esp + 0x50], ecx
mov ebp, dword [esp + 0x128]
test esi, esi
jne 0x48bf4f
mov eax, dword [ebp + 8]
mov esi, dword [ebp]
mov ecx, dword [ebp + 4]
sub eax, esi
mov dword [esp + 0x64], eax
mov eax, dword [ebp + 0xc]
sub eax, ecx
jmp 0x48bf65
mov eax, dword [ebp + 0xc]
mov ecx, dword [ebp + 4]
mov esi, dword [ebp]
sub eax, ecx
inc eax
mov dword [esp + 0x64], eax
mov eax, dword [ebp + 8]
sub eax, esi
inc eax
mov ecx, dword [edx + 0x95]
mov dword [esp + 0x44], eax
lea eax, [ebx + ebx*4]
lea esi, [edx + 0x4d]
mov edi, 0x4d72b0
mov dword [esp + 0x68], 0
lea eax, [ebx + eax*2]
mov dword [esp + 0x5c], ebx
shl eax, 2
mov dword [esp + 0x60], eax
lea eax, [ecx + eax - 0x2c]
mov ecx, dword [edx + 0xa1]
mov dword [esp + 0x20], ecx
mov ecx, 0x11
rep movsd dword es:[edi], dword [esi]
mov ecx, dword [esp + 0x50]
mov dword [esp + 0x30], eax
cmp ebx, ecx
jge 0x48cf49
mov ebx, dword [esp + 0x120]
jmp 0x48bfc5
mov edx, dword [esp + 0x124]
mov ecx, dword [eax]
test ecx, ecx
je 0x48cf20
cmp ecx, dword [esp + 0x68]
je 0x48c0a0
mov esi, dword [esp + 0x124]
lea eax, [ecx - 1]
mov dword [esp + 0x68], ecx
push eax
lea ecx, [esi + 0x99]
call fcn.0043d400
mov ecx, 0x11
add esi, 0x4d
mov edi, 0x4d72b0
push eax
rep movsd dword es:[edi], dword [esi]
push 0x4d72b0
mov dword [esp + 0x28], eax
call fcn.0048ad70
mov edx, dword [esp + 0x38]
mov esi, dword [esp + 0x28]
mov ecx, dword [ebx + 4]
mov eax, dword [edx + 4]
mov edx, dword [esi + 0x1d]
add eax, edx
push eax
push esi
push ecx
call fcn.004890f0
mov edx, dword [esi + 0x1d]
mov eax, dword [esp + 0x138]
mov ecx, dword [ebx + 4]
push 0
push edx
push esi
push eax
lea edx, [esp + 0x120]
push ecx
push edx
call fcn.0048af20
add esp, 0x2c
mov eax, dword [0x4d72c8]
mov dword [esp + 0x118], 0
mov dword [esp + 0x38], eax
mov eax, dword [0x4d72d8]
test eax, eax
jge 0x48c08a
mov ecx, dword [esp + 0x28]
mov edx, dword [ebx + 4]
push 0x4d72b0
push ecx
push edx
call fcn.004875c0
imul eax, dword [0x4d72d8]
sub dword [esp + 0x38], eax
mov edx, dword [esp + 0x124]
mov eax, dword [esp + 0x30]
mov dword [esp + 0x118], 0xffffffff
mov ecx, dword [eax + 0x28]
mov edi, dword [esp + 0x60]
mov esi, dword [eax + 0x44]
mov dword [esp + 0x24], ecx
mov ecx, dword [edx + 0x95]
sub esi, dword [ecx + edi - 0x14]
mov ecx, dword [esp + 0x44]
cmp ecx, esi
jle 0x48cf42
mov esi, dword [esp + 0x20]
mov ecx, dword [eax + 4]
mov edi, dword [esi + 0x1d]
add ecx, edi
mov edi, dword [0x4d77d8]
cmp edi, ecx
je 0x48c0f5
mov eax, dword [ebx + 4]
mov edx, esi
push ecx
push edx
push eax
call fcn.004890f0
mov edx, dword [esp + 0x130]
mov eax, dword [esp + 0x3c]
add esp, 0xc
mov ecx, dword [eax + 0xc]
xor edi, edi
mov dword [0x4d7314], ecx
mov ecx, dword [eax + 8]
cmp ecx, edi
mov dword [0x4d7318], ecx
jge 0x48c11d
neg ecx
mov dword [0x4d730c], ecx
mov dword [0x4d7318], edi
jmp 0x48c123
mov dword [0x4d730c], edi
mov ecx, dword [eax + 0x24]
mov dword [0x4d7310], ecx
mov edi, dword [eax + 0x20]
test ecx, ecx
mov dword [0x4d7304], edi
jge 0x48c145
neg ecx
mov dword [esp + 0x48], 1
jmp 0x48c14d
mov dword [esp + 0x48], 0
dec ecx
mov dword [0x4d7310], ecx
mov dword [0x4d7308], ecx
mov ecx, dword [eax]
mov edi, dword [eax + 0x2c]
cmp ecx, edi
jne 0x48c168
mov edi, dword [eax + 0x30]
jmp 0x48c16b
mov edi, dword [esi + 0x15]
mov ecx, dword [esi + 0x1d]
add edi, ecx
mov ecx, dword [esp + 0x28]
test ecx, ecx
mov ecx, dword [esp + 0x6c]
mov dword [esp + 0x40], edi
jne 0x48c85a
mov eax, dword [eax + 0x1c]
cmp ecx, 1
mov ecx, dword [ebp + 4]
jne 0x48c193
add eax, ecx
jmp 0x48c1a3
mov edx, dword [edx + 0x95]
add eax, ecx
mov ecx, dword [esp + 0x60]
sub eax, dword [edx + ecx - 0x14]
mov dword [esp + 0x14], eax
mov eax, dword [esp + 0x24]
test eax, eax
je 0x48c1cf
mov edx, dword [ebx + 4]
push 0x4d72b0
push 0
push edx
call fcn.004875c0
mov esi, eax
mov ecx, dword [ebp]
imul esi, dword [0x4d72d8]
add esi, ecx
jmp 0x48c1d2
mov esi, dword [ebp]
mov eax, dword [esp + 0x38]
add esi, eax
mov eax, dword [0x4d72dc]
sub eax, 0
mov dword [esp + 0x10], esi
je 0x48c1f0
dec eax
jne 0x48c1fd
mov eax, dword [0x4d7304]
jmp 0x48c1f7
mov eax, dword [0x4d7304]
sar eax, 1
add esi, eax
mov dword [esp + 0x10], esi
mov eax, dword [0x4d7358]
mov ecx, dword [0x4d7354]
mov edx, dword [0x4d7350]
mov dword [0x4d734c], eax
mov eax, dword [0x4d77d8]
mov dword [0x4d7348], ecx
cmp eax, edi
mov dword [0x4d7338], 0
mov dword [0x4d7344], edx
jae 0x48c776
sub esp, 0x10
mov eax, ebp
mov ecx, esp
mov edx, dword [eax]
push 0
mov dword [ecx], edx
push 0
mov edx, dword [eax + 4]
push 0
mov dword [ecx + 4], edx
mov edx, dword [eax + 8]
mov dword [ecx + 8], edx
mov edx, dword [esp + 0x3c]
mov eax, dword [eax + 0xc]
mov dword [ecx + 0xc], eax
mov eax, dword [esp + 0x140]
lea ecx, [esp + 0x34]
push ecx
mov ecx, dword [esp + 0x64]
push edx
mov edx, dword [esp + 0x88]
push eax
mov eax, dword [ebx + 4]
push ecx
push edx
push 0
push eax
call fcn.00489870
mov edi, dword [0x4d72b4]
mov edx, dword [0x4d7394]
mov al, byte [esp + 0x50]
add esp, 0x38
sub edi, edx
cmp al, 1
mov dword [esp + 0x74], edi
jne 0x48c2c9
mov ecx, dword [ebx + 4]
push ecx
call fcn.00487800
mov edx, dword [esp + 0x18]
mov eax, dword [esp + 0x24]
mov ecx, dword [ebx + 4]
add edi, edx
push edi
push esi
push eax
push 0
push ecx
call fcn.004861c0
add esp, 0x18
jmp 0x48c751
cmp al, 2
jne 0x48c2f8
mov edx, dword [ebx + 4]
push edx
call fcn.00487800
mov eax, dword [0x4d72b4]
mov ecx, dword [esp + 0x18]
mov edx, dword [esp + 0x24]
add eax, ecx
push eax
push esi
push edx
push 0
push ebx
call fcn.00488b20
add esp, 0x18
jmp 0x48c751
cmp al, 3
jne 0x48c319
mov eax, dword [esp + 0x14]
mov ecx, dword [ebx + 4]
push 0
add edi, eax
push 0x4d7178
push edi
push esi
push ecx
call fcn.00487e70
jmp 0x48c751
cmp al, 4
jne 0x48c732
mov edx, dword [0x4d73a0]
mov eax, dword [0x4d0948]
cmp word [0x4d70b0], 0
mov dword [esp + 0x34], edx
mov dword [0x4d73a0], eax
mov dword [esp + 0x24], esi
mov byte [0x4d3380], 1
je 0x48c70e
mov edi, 0x4d70b0
cmp edi, 0x4d7178
jge 0x48c70e
mov ecx, dword [esp + 0x74]
mov edx, dword [esp + 0x14]
mov ebp, dword [esp + 0x120]
mov eax, dword [esp + 0x24]
push 0
add ecx, edx
push edi
push ecx
mov ecx, dword [ebp + 4]
push eax
push ecx
call fcn.00488280
mov esi, dword [0x4d73a0]
mov ecx, dword [0x4d0948]
mov eax, dword [0x4d7394]
mov ebp, dword [ebp + 4]
xor ebx, ebx
add esp, 0x14
mov bx, word [edi]
add edi, 2
cmp esi, ecx
mov dword [esp + 0x1c], eax
mov dword [esp + 0x3c], ebx
mov dword [esp + 0x2c], edi
jne 0x48c3f3
push esi
push ebp
call fcn.0048e8b0
push eax
push ebp
call fcn.0048eaa0
add esp, 0x10
lea edx, [esp + 0x78]
push edx
push ebx
push ebx
push ebp
call dword [sym.imp.GDI32.dll_GetCharWidthW]
push esi
push ebp
mov dword [0x4d73a0], esi
call fcn.0048e8b0
push eax
push ebp
call fcn.0048eaa0
mov eax, dword [esp + 0x88]
add esp, 0x10
jmp 0x48c6f3
cmp dword [0x4d6ef8], 1
jne 0x48c4c6
cmp bl, 0x20
jae 0x48c40c
shr eax, 1
jmp 0x48c6f3
jne 0x48c415
sar eax, 1
jmp 0x48c6f3
test bl, bl
jne 0x48c420
xor eax, eax
jmp 0x48c6f3
cmp bl, 0x39
ja 0x48c431
cmp bl, 0x30
jb 0x48c431
sar eax, 1
jmp 0x48c6f3
cmp bl, 0x7b
ja 0x48c442
cmp bl, 0x61
jb 0x48c442
sar eax, 1
jmp 0x48c6f3
cmp bl, 0x3d
jne 0x48c456
test bh, bh
jne 0x48c4d2
sar eax, 1
jmp 0x48c6f3
cmp bl, 0x3a
jne 0x48c466
test bh, bh
jne 0x48c4d2
sar eax, 1
jmp 0x48c6f3
cmp bl, 0x2e
jne 0x48c476
test bh, bh
jne 0x48c4d2
sar eax, 1
jmp 0x48c6f3
cmp bl, 0x2a
jne 0x48c486
test bh, bh
jne 0x48c4d2
sar eax, 1
jmp 0x48c6f3
cmp bl, 0x2c
jne 0x48c496
test bh, bh
jne 0x48c4d2
sar eax, 1
jmp 0x48c6f3
cmp bl, 0x2b
jne 0x48c4a6
test bh, bh
jne 0x48c4d2
sar eax, 1
jmp 0x48c6f3
cmp bl, 0x2d
jne 0x48c4b6
test bh, bh
jne 0x48c4d2
sar eax, 1
jmp 0x48c6f3
cmp bl, 0x28
jne 0x48c4d2
test bh, bh
jne 0x48c4d2
sar eax, 1
jmp 0x48c6f3
cmp bl, 0x20
jae 0x48c4d2
shr eax, 1
jmp 0x48c6f3
push esi
push ebp
call fcn.0048e8b0
mov ecx, dword [0x4d5a34]
add esp, 8
test ecx, ecx
mov ebx, eax
je 0x48c633
cmp dword [ecx + ebx*4], 0
jne 0x48c633
push 0
push ebp
call dword [sym.imp.GDI32.dll_GetWindowExtEx]
push 0
push ebp
mov dword [esp + 0x54], eax
call dword [sym.imp.GDI32.dll_GetViewportExtEx]
push 0
push 1
push 1
push ebp
mov dword [esp + 0x64], eax
call dword [sym.imp.GDI32.dll_SetWindowExtEx]
push 0
push 1
push 1
push ebp
call dword [sym.imp.GDI32.dll_SetViewportExtEx]
mov ecx, dword [0x4d5a44]
mov eax, ebx
shl eax, 4
add eax, ebx
lea edi, [esp + 0xbc]
shl eax, 2
mov dword [esp + 0x58], eax
lea esi, [eax + ecx]
mov ecx, 0x10
rep movsd dword es:[edi], dword [esi]
mov edx, dword [esp + 0xf8]
lea eax, [esp + 0xbc]
xor edi, edi
push eax
neg edx
mov dword [esp + 0xd0], edi
mov dword [esp + 0xc4], edi
mov dword [esp + 0xc0], edx
call dword [sym.imp.GDI32.dll_CreateFontIndirectA]
push eax
push ebp
call dword [sym.imp.GDI32.dll_SelectObject]
mov esi, eax
mov eax, dword [0x4d5a38]
cmp eax, edi
je 0x48c5ad
lea ecx, [ebx*8]
sub ecx, ebx
shl ecx, 7
add ecx, eax
push ecx
push 0xff
push 0x20
push ebp
call dword [sym.imp.GDI32.dll_GetCharWidthA]
push 0
push 2
push 0x4d3590
push ebp
call dword [sym.imp.GDI32.dll_GetTextExtentPoint32A]
mov edx, dword [0x4d5a34]
mov dword [edx + ebx*4], eax
mov ecx, dword [0x4d5a34]
mov eax, dword [ecx + ebx*4]
test eax, eax
je 0x48c5dc
cmp eax, dword [esp + 0xf8]
jl 0x48c5ec
mov eax, dword [0x4d5a44]
mov edx, dword [esp + 0x58]
mov eax, dword [edx + eax + 0x3c]
mov dword [ecx + ebx*4], eax
push esi
push ebp
call dword [sym.imp.GDI32.dll_SelectObject]
push eax
call dword [sym.imp.GDI32.dll_DeleteObject]
mov eax, dword [esp + 0x4c]
push 0
mov ecx, eax
and eax, 0xffff
shr ecx, 0x10
push ecx
push eax
push ebp
call dword [sym.imp.GDI32.dll_SetWindowExtEx]
mov eax, dword [esp + 0x54]
push 0
mov edx, eax
and eax, 0xffff
shr edx, 0x10
push edx
push eax
push ebp
call dword [sym.imp.GDI32.dll_SetViewportExtEx]
mov ecx, dword [0x4d5a34]
mov eax, dword [esp + 0x3c]
cmp al, 0x80
jb 0x48c689
test ah, ah
je 0x48c689
test ecx, ecx
je 0x48c6e1
mov eax, dword [0x4d6ef8]
test eax, eax
jne 0x48c673
mov eax, dword [ecx + ebx*4]
mov ecx, dword [esp + 0x1c]
imul eax, ecx
mov esi, dword [0x4d5a44]
xor edx, edx
shr ecx, 1
add eax, ecx
mov ecx, ebx
shl ecx, 4
add ecx, ebx
div dword [esi + ecx*4 + 0x3c]
jmp 0x48c6e5
mov ebx, dword [ecx + ebx*4]
mov ecx, dword [esp + 0x1c]
mov eax, ebx
xor edx, edx
imul eax, ecx
shr ecx, 1
add eax, ecx
div ebx
jmp 0x48c6e5
mov edx, dword [0x4d5a38]
test edx, edx
jne 0x48c6bf
mov ecx, dword [0x4d5a44]
test ecx, ecx
je 0x48c6b6
mov edx, ebx
shl edx, 4
add edx, ebx
mov eax, dword [ecx + edx*4 + 4]
lea ecx, [ecx + edx*4]
imul eax, dword [esp + 0x1c]
cdq
idiv dword [ecx + 0x3c]
jmp 0x48c6ef
mov eax, dword [0x4d7394]
sar eax, 1
jmp 0x48c6ef
lea esi, [ebx*8]
and eax, 0xff
sub esi, ebx
shl esi, 5
add esi, eax
mov eax, dword [edx + esi*4 - 0x80]
imul eax, dword [esp + 0x1c]
cdq
idiv dword [ecx + ebx*4]
jmp 0x48c6e5
mov eax, dword [esp + 0x1c]
cmp eax, 1
jae 0x48c6ef
mov eax, 1
mov edi, dword [esp + 0x2c]
mov ecx, dword [esp + 0x24]
mov byte [0x4d3380], 0
add ecx, eax
cmp word [edi], 0
mov dword [esp + 0x24], ecx
jne 0x48c353
mov eax, dword [esp + 0x34]
mov ebp, dword [esp + 0x128]
mov ebx, dword [esp + 0x120]
mov esi, dword [esp + 0x10]
mov dword [0x4d73a0], eax
mov byte [0x4d3380], 1
jmp 0x48c751
test al, al
je 0x48c751
mov edx, dword [esp + 0x14]
mov eax, dword [ebx + 4]
lea ecx, [esp + 0x18]
push 0
add edi, edx
push ecx
push edi
push esi
push eax
call fcn.00488280
add esp, 0x14
call fcn.0048ab50
mov edx, dword [0x4d733c]
mov ecx, dword [0x4d77d8]
add eax, edx
add esi, eax
mov eax, dword [esp + 0x40]
cmp ecx, eax
mov dword [esp + 0x10], esi
jb 0x48c236
mov edi, dword [esp + 0x124]
mov eax, dword [edi + 0x39]
test eax, eax
je 0x48c823
mov edx, dword [edi + 0x49]
push edx
push 1
push 0
call dword [sym.imp.GDI32.dll_CreatePen]
push eax
mov eax, dword [ebx + 4]
push eax
call dword [sym.imp.GDI32.dll_SelectObject]
mov ecx, dword [0x4d72c4]
mov dword [esp + 0x3c], eax
imul ecx, dword [0x4d72b4]
mov dword [esp + 0x34], ecx
fild dword [esp + 0x34]
fmul qword [0x4bdb50]
call fcn.00496fa4
mov edx, dword [esp + 0x30]
push 0
mov esi, dword [edx + 0x44]
mov edx, dword [ebp + 4]
sub esi, eax
mov eax, dword [edi + 0x28]
add esi, edx
lea ecx, [eax + eax*4]
lea edx, [eax + ecx*2]
mov eax, dword [edi + 0x95]
mov ecx, dword [eax + edx*4 - 0x14]
mov edx, dword [ebx + 4]
sub esi, ecx
mov ecx, dword [ebp]
inc esi
push esi
push ecx
push edx
call dword [sym.imp.GDI32.dll_MoveToEx]
mov eax, dword [ebp + 8]
mov ecx, dword [ebx + 4]
push esi
push eax
push ecx
call dword [sym.imp.GDI32.dll_LineTo]
mov edx, dword [esp + 0x3c]
mov eax, dword [ebx + 4]
push edx
push eax
call dword [sym.imp.GDI32.dll_SelectObject]
push eax
call dword [sym.imp.GDI32.dll_DeleteObject]
mov esi, dword [esp + 0x10]
mov eax, dword [esp + 0x48]
test eax, eax
je 0x48cf20
mov edx, dword [0x4d72b4]
mov eax, dword [esp + 0x14]
lea ecx, [esp + 0x18]
push 0
push ecx
mov ecx, dword [0x4d7394]
sub edx, ecx
mov byte [esp + 0x20], 0x2d
add edx, eax
mov eax, dword [ebx + 4]
push edx
push esi
push eax
jmp 0x48cf18
mov esi, dword [eax + 0x1c]
cmp ecx, 1
mov ecx, dword [ebp + 8]
jne 0x48c876
mov edx, dword [0x4d72b4]
sub ecx, esi
sub ecx, edx
inc ecx
mov dword [esp + 0x10], ecx
jmp 0x48c895
mov eax, dword [0x4d72b4]
mov edx, dword [edx + 0x95]
sub ecx, esi
sub ecx, eax
mov eax, dword [esp + 0x60]
mov edx, dword [edx + eax - 0x14]
lea eax, [ecx + edx + 1]
mov dword [esp + 0x10], eax
mov eax, dword [esp + 0x24]
test eax, eax
je 0x48c8ca
mov esi, dword [esp + 0x28]
mov ecx, dword [ebx + 4]
push 0x4d72b0
push esi
push ecx
call fcn.004875c0
mov edi, eax
mov ecx, dword [ebp + 4]
imul edi, dword [0x4d72d8]
mov eax, dword [esp + 0x38]
add edi, ecx
add edi, eax
mov dword [esp + 0x14], edi
jmp 0x48c8db
mov edi, dword [ebp + 4]
mov eax, dword [esp + 0x38]
mov esi, dword [esp + 0x28]
add edi, eax
mov dword [esp + 0x14], edi
mov eax, dword [0x4d72dc]
sub eax, 0
je 0x48c8ef
dec eax
jne 0x48c8fc
mov eax, dword [0x4d7304]
jmp 0x48c8f6
mov eax, dword [0x4d7304]
sar eax, 1
add edi, eax
mov dword [esp + 0x14], edi
mov edx, dword [0x4d7358]
mov eax, dword [0x4d7354]
mov ecx, dword [0x4d7350]
mov dword [0x4d734c], edx
mov edx, dword [0x4d77d8]
mov dword [0x4d7348], eax
mov eax, dword [esp + 0x40]
mov dword [0x4d7338], 0
cmp edx, eax
mov dword [0x4d7344], ecx
jae 0x48ce64
sub esp, 0x10
mov eax, ebp
mov ecx, esp
mov edx, dword [eax]
push 0
mov dword [ecx], edx
push 0
mov edx, dword [eax + 4]
push 0
mov dword [ecx + 4], edx
mov edx, dword [eax + 8]
mov dword [ecx + 8], edx
mov edx, dword [esp + 0x3c]
mov eax, dword [eax + 0xc]
mov dword [ecx + 0xc], eax
mov eax, dword [esp + 0x140]
lea ecx, [esp + 0x34]
push ecx
mov ecx, dword [esp + 0x64]
push edx
mov edx, dword [esp + 0x88]
push eax
mov eax, dword [ebx + 4]
push ecx
push edx
push esi
push eax
call fcn.00489870
mov al, byte [esp + 0x50]
add esp, 0x38
cmp al, 1
jne 0x48c9b7
mov ecx, dword [ebx + 4]
push ecx
call fcn.00487800
mov edx, dword [esp + 0x14]
mov eax, dword [esp + 0x24]
mov ecx, dword [ebx + 4]
push edi
push edx
push eax
push esi
push ecx
call fcn.004861c0
add esp, 0x18
jmp 0x48ce3f
cmp al, 2
jne 0x48c9de
mov edx, dword [ebx + 4]
push edx
call fcn.00487800
mov eax, dword [esp + 0x14]
mov ecx, dword [esp + 0x24]
push edi
push eax
push ecx
push esi
push ebx
call fcn.00488b20
add esp, 0x18
jmp 0x48ce3f
cmp al, 3
jne 0x48c9fc
mov edx, dword [esp + 0x10]
mov eax, dword [ebx + 4]
push esi
push 0x4d7178
push edi
push edx
push eax
call fcn.00487e70
jmp 0x48ce3f
cmp al, 4
jne 0x48ce23
mov ecx, dword [0x4d73a0]
mov edx, dword [0x4d0948]
cmp word [0x4d70b0], 0
mov dword [esp + 0x58], ecx
mov dword [0x4d73a0], edx
mov dword [esp + 0x24], edi
mov byte [0x4d3380], 1
je 0x48ce09
mov edi, 0x4d70b0
cmp edi, 0x4d7178
jge 0x48ce09
mov eax, dword [esp + 0x28]
mov ebp, dword [esp + 0x120]
mov ecx, dword [esp + 0x24]
mov edx, dword [esp + 0x10]
push eax
mov eax, dword [ebp + 4]
push edi
push ecx
push edx
push eax
call fcn.00488280
mov esi, dword [0x4d73a0]
mov ecx, dword [0x4d0948]
mov eax, dword [0x4d7394]
mov ebp, dword [ebp + 4]
xor ebx, ebx
add esp, 0x14
mov bx, word [edi]
add edi, 2
cmp esi, ecx
mov dword [esp + 0x1c], eax
mov dword [esp + 0x4c], ebx
mov dword [esp + 0x2c], edi
jne 0x48cad5
push esi
push ebp
call fcn.0048e8b0
push eax
push ebp
call fcn.0048eaa0
add esp, 0x10
lea ecx, [esp + 0x70]
push ecx
push ebx
push ebx
push ebp
call dword [sym.imp.GDI32.dll_GetCharWidthW]
push esi
push ebp
mov dword [0x4d73a0], esi
call fcn.0048e8b0
push eax
push ebp
call fcn.0048eaa0
mov eax, dword [esp + 0x80]
add esp, 0x10
jmp 0x48cde0
cmp dword [0x4d6ef8], 1
jne 0x48cba8
cmp bl, 0x20
jae 0x48caee
shr eax, 1
jmp 0x48cde0
jne 0x48caf7
sar eax, 1
jmp 0x48cde0
test bl, bl
jne 0x48cb02
xor eax, eax
jmp 0x48cde0
cmp bl, 0x39
ja 0x48cb13
cmp bl, 0x30
jb 0x48cb13
sar eax, 1
jmp 0x48cde0
cmp bl, 0x7b
ja 0x48cb24
cmp bl, 0x61
jb 0x48cb24
sar eax, 1
jmp 0x48cde0
cmp bl, 0x3d
jne 0x48cb38
test bh, bh
jne 0x48cbb4
sar eax, 1
jmp 0x48cde0
cmp bl, 0x3a
jne 0x48cb48
test bh, bh
jne 0x48cbb4
sar eax, 1
jmp 0x48cde0
cmp bl, 0x2e
jne 0x48cb58
test bh, bh
jne 0x48cbb4
sar eax, 1
jmp 0x48cde0
cmp bl, 0x2a
jne 0x48cb68
test bh, bh
jne 0x48cbb4
sar eax, 1
jmp 0x48cde0
cmp bl, 0x2c
jne 0x48cb78
test bh, bh
jne 0x48cbb4
sar eax, 1
jmp 0x48cde0
cmp bl, 0x2b
jne 0x48cb88
test bh, bh
jne 0x48cbb4
sar eax, 1
jmp 0x48cde0
cmp bl, 0x2d
jne 0x48cb98
test bh, bh
jne 0x48cbb4
sar eax, 1
jmp 0x48cde0
cmp bl, 0x28
jne 0x48cbb4
test bh, bh
jne 0x48cbb4
sar eax, 1
jmp 0x48cde0
cmp bl, 0x20
jae 0x48cbb4
shr eax, 1
jmp 0x48cde0
push esi
push ebp
call fcn.0048e8b0
mov ecx, dword [0x4d5a34]
add esp, 8
test ecx, ecx
mov ebx, eax
je 0x48cd10
cmp dword [ecx + ebx*4], 0
jne 0x48cd10
push 0
push ebp
call dword [sym.imp.GDI32.dll_GetWindowExtEx]
push 0
push ebp
mov dword [esp + 0x44], eax
call dword [sym.imp.GDI32.dll_GetViewportExtEx]
push 0
push 1
push 1
push ebp
mov dword [esp + 0x64], eax
call dword [sym.imp.GDI32.dll_SetWindowExtEx]
push 0
push 1
push 1
push ebp
call dword [sym.imp.GDI32.dll_SetViewportExtEx]
mov edx, dword [0x4d5a44]
mov eax, ebx
shl eax, 4
add eax, ebx
mov ecx, 0x10
shl eax, 2
lea edi, [esp + 0x7c]
mov dword [esp + 0x34], eax
lea esi, [eax + edx]
rep movsd dword es:[edi], dword [esi]
mov eax, dword [esp + 0xb8]
lea ecx, [esp + 0x7c]
xor edi, edi
push ecx
neg eax
mov dword [esp + 0x90], edi
mov dword [esp + 0x84], edi
mov dword [esp + 0x80], eax
call dword [sym.imp.GDI32.dll_CreateFontIndirectA]
push eax
push ebp
call dword [sym.imp.GDI32.dll_SelectObject]
mov esi, eax
mov eax, dword [0x4d5a38]
cmp eax, edi
je 0x48cc89
lea edx, [ebx*8]
sub edx, ebx
shl edx, 7
add edx, eax
push edx
push 0xff
push 0x20
push ebp
call dword [sym.imp.GDI32.dll_GetCharWidthA]
push 0
push 2
push 0x4d3590
push ebp
call dword [sym.imp.GDI32.dll_GetTextExtentPoint32A]
mov ecx, dword [0x4d5a34]
mov dword [ecx + ebx*4], eax
mov ecx, dword [0x4d5a34]
mov eax, dword [ecx + ebx*4]
test eax, eax
je 0x48ccb8
cmp eax, dword [esp + 0xb8]
jl 0x48ccc9
mov edx, dword [0x4d5a44]
mov eax, dword [esp + 0x34]
mov edx, dword [eax + edx + 0x3c]
mov dword [ecx + ebx*4], edx
push esi
push ebp
call dword [sym.imp.GDI32.dll_SelectObject]
push eax
call dword [sym.imp.GDI32.dll_DeleteObject]
mov eax, dword [esp + 0x3c]
push 0
mov ecx, eax
and eax, 0xffff
shr ecx, 0x10
push ecx
push eax
push ebp
call dword [sym.imp.GDI32.dll_SetWindowExtEx]
mov eax, dword [esp + 0x54]
push 0
mov edx, eax
and eax, 0xffff
shr edx, 0x10
push edx
push eax
push ebp
call dword [sym.imp.GDI32.dll_SetViewportExtEx]
mov ecx, dword [0x4d5a34]
mov eax, dword [esp + 0x4c]
cmp al, 0x80
jb 0x48cd76
test ah, ah
je 0x48cd76
cmp dword [esp + 0x28], 1
jne 0x48cd2c
mov eax, dword [esp + 0x1c]
jmp 0x48cddc
test ecx, ecx
je 0x48cdce
mov eax, dword [0x4d6ef8]
test eax, eax
jne 0x48cd60
mov eax, dword [ecx + ebx*4]
mov ecx, dword [esp + 0x1c]
imul eax, ecx
mov esi, dword [0x4d5a44]
xor edx, edx
shr ecx, 1
add eax, ecx
mov ecx, ebx
shl ecx, 4
add ecx, ebx
div dword [esi + ecx*4 + 0x3c]
jmp 0x48cdd2
mov ebx, dword [ecx + ebx*4]
mov ecx, dword [esp + 0x1c]
mov eax, ebx
xor edx, edx
imul eax, ecx
shr ecx, 1
add eax, ecx
div ebx
jmp 0x48cdd2
mov edx, dword [0x4d5a38]
test edx, edx
jne 0x48cdac
mov ecx, dword [0x4d5a44]
test ecx, ecx
je 0x48cda3
mov edx, ebx
shl edx, 4
add edx, ebx
mov eax, dword [ecx + edx*4 + 4]
lea ecx, [ecx + edx*4]
imul eax, dword [esp + 0x1c]
cdq
idiv dword [ecx + 0x3c]
jmp 0x48cddc
mov eax, dword [0x4d7394]
sar eax, 1
jmp 0x48cddc
lea esi, [ebx*8]
and eax, 0xff
sub esi, ebx
shl esi, 5
add esi, eax
mov eax, dword [edx + esi*4 - 0x80]
imul eax, dword [esp + 0x1c]
cdq
idiv dword [ecx + ebx*4]
jmp 0x48cdd2
mov eax, dword [esp + 0x1c]
cmp eax, 1
jae 0x48cddc
mov eax, 1
mov edi, dword [esp + 0x2c]
mov ecx, dword [esp + 0x24]
mov ebp, dword [esp + 0x128]
mov ebx, dword [esp + 0x120]
add ecx, eax
cmp word [edi], 0
mov dword [esp + 0x24], ecx
mov byte [0x4d3380], 0
jne 0x48ca38
mov eax, dword [esp + 0x58]
mov esi, dword [esp + 0x28]
mov edi, dword [esp + 0x14]
mov dword [0x4d73a0], eax
mov byte [0x4d3380], 1
jmp 0x48ce3f
test al, al
je 0x48ce3f
mov edx, dword [esp + 0x10]
mov eax, dword [ebx + 4]
lea ecx, [esp + 0x18]
push esi
push ecx
push edi
push edx
push eax
call fcn.00488280
add esp, 0x14
call fcn.0048ab50
mov edx, dword [0x4d733c]
mov ecx, dword [0x4d77d8]
add eax, edx
add edi, eax
mov eax, dword [esp + 0x40]
cmp ecx, eax
mov dword [esp + 0x14], edi
jb 0x48c93a
mov edx, dword [esp + 0x124]
mov eax, dword [edx + 0x39]
test eax, eax
je 0x48cef7
mov eax, edx
mov ecx, dword [eax + 0x49]
push ecx
push 1
push 0
call dword [sym.imp.GDI32.dll_CreatePen]
mov edx, dword [ebx + 4]
push eax
push edx
call dword [sym.imp.GDI32.dll_SelectObject]
mov edi, eax
mov eax, dword [0x4d72c4]
imul eax, dword [0x4d72b4]
mov dword [esp + 0x34], eax
fild dword [esp + 0x34]
fmul qword [0x4bf048]
call fcn.00496fa4
mov esi, dword [ebp + 8]
mov ecx, dword [esp + 0x30]
mov edx, dword [ebp + 4]
sub esi, eax
mov eax, dword [ecx + 0x44]
push 0
sub esi, eax
mov eax, dword [ebx + 4]
dec esi
push edx
push esi
push eax
call dword [sym.imp.GDI32.dll_MoveToEx]
mov ecx, dword [ebp + 0xc]
mov edx, dword [ebx + 4]
push ecx
push esi
push edx
call dword [sym.imp.GDI32.dll_LineTo]
mov eax, dword [ebx + 4]
push edi
push eax
call dword [sym.imp.GDI32.dll_SelectObject]
push eax
call dword [sym.imp.GDI32.dll_DeleteObject]
mov edi, dword [esp + 0x14]
mov eax, dword [esp + 0x48]
test eax, eax
je 0x48cf20
mov ecx, dword [esp + 0x28]
mov eax, dword [esp + 0x10]
lea edx, [esp + 0x18]
push ecx
mov ecx, dword [ebx + 4]
push edx
push edi
push eax
mov byte [esp + 0x28], 0x2d
push ecx
call fcn.00488280
add esp, 0x14
mov ecx, dword [esp + 0x5c]
mov eax, dword [esp + 0x30]
mov edx, dword [esp + 0x50]
inc ecx
add eax, 0x2c
cmp ecx, edx
mov dword [esp + 0x5c], ecx
mov dword [esp + 0x30], eax
jl 0x48bfbe
jmp 0x48cf49
mov eax, dword [esp + 0x5c]
mov dword [edx + 0x2c], eax
mov ecx, dword [esp + 0x110]
pop edi
pop esi
pop ebp
mov dword fs:[0], ecx
pop ebx
add esp, 0x10c
ret