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

Disassembly:
push ebp
mov ebp, esp
and esp, 0xffffffc0
sub esp, 0x2b4
push ebx
push esi
mov esi, ecx
mov eax, dword [esi + 0x144]
cmp eax, dword [esi + 0x148]
push edi
jne 0x4b5d78
cmp dword [esi + 0x58], 0
je 0x4b5d78
mov ebx, dword [ebp + 8]
push 3
push ebx
call dword [sym.imp.GDI32.dll_SetStretchBltMode]
cmp byte [esi + 0x100], 0
je 0x4b4f7f
mov ecx, dword [esi + 0x124]
xor eax, eax
cmp ecx, dword [esi + 0x128]
je 0x4b4f6e
mov eax, dword [esi + 0x1e4]
push 0xcc0020
push 0
lea edx, [esi + 0x1e0]
push edx
mov edx, dword [esi + 0x1e8]
push ecx
mov ecx, dword [esi + 0x58]
imul ecx, dword [esi + 0x50]
push edx
push eax
push 0
push 0
push ecx
push eax
push 0
push 0
push ebx
call dword [sym.imp.GDI32.dll_StretchDIBits]
mov eax, dword [esi + 0x58]
imul eax, dword [esi + 0x50]
mov edx, dword [esi + 0x58]
imul edx, dword [esi + 0x50]
mov ecx, dword [esi + 0x54]
push 0
push edx
push ecx
push eax
jmp 0x4b4f8f
mov edx, dword [esi + 0x58]
imul edx, dword [esi + 0x50]
mov eax, dword [esi + 0x54]
push 0
push edx
push eax
push 0
push 0
push ebx
call fcn.004b3b60
mov ecx, dword [ebp + 0xc]
mov edi, dword [ecx + 8]
mov eax, dword [esi + 0x6c]
mov ecx, dword [esi + 0x68]
add esp, 0x18
test eax, eax
mov dword [esp + 0x18], edi
mov dword [esp + 0x20], ecx
mov dword [esp + 0x24], eax
jl 0x4b50a8
jg 0x4b4fc4
test ecx, ecx
jb 0x4b50a8
fild qword [esp + 0x20]
fmul qword [esi + 0xb0]
fadd qword [esi + 0xa8]
fild qword [esi + 0xf0]
fsubp st(1)
fmul qword [esi + 0xe0]
fstp qword [esp + 0x20]
fld qword [esp + 0x20]
fist dword [esp + 0x1c]
fild dword [esp + 0x1c]
mov eax, dword [esp + 0x1c]
fsubp st(1)
fstp dword [esp + 0x1c]
cmp dword [esp + 0x1c], 0x80000001
adc eax, 0xffffffff
fild qword [esi + 0x70]
cdq
mov dword [esp + 0x20], eax
mov edi, edx
fmul qword [esi + 0xb0]
fadd qword [esi + 0xa8]
fild qword [esi + 0xf0]
fsubp st(1)
fmul qword [esi + 0xe0]
fstp qword [esp + 0x38]
fld qword [esp + 0x38]
fist dword [esp + 0x1c]
fild dword [esp + 0x1c]
mov eax, dword [esp + 0x1c]
fsubp st(1)
fstp dword [esp + 0x1c]
cmp dword [esp + 0x1c], 0x80000001
adc eax, 0xffffffff
cdq
mov dword [esp + 0x3c], edx
mov edx, dword [ebp + 0xc]
mov ecx, eax
mov eax, dword [edx + 8]
cdq
cmp edi, edx
jg 0x4b5072
jl 0x4b506a
cmp dword [esp + 0x20], eax
jae 0x4b5072
mov dword [esp + 0x20], eax
mov dword [esp + 0x24], edx
mov eax, dword [ebp + 0xc]
mov eax, dword [eax + 0x10]
cdq
cmp dword [esp + 0x3c], edx
jl 0x4b508b
jg 0x4b5085
cmp ecx, eax
jbe 0x4b508b
mov ecx, eax
mov dword [esp + 0x3c], edx
mov edi, dword [esp + 0x20]
cmp ecx, edi
mov dword [esp + 0x18], ecx
jne 0x4b50a0
add ecx, 1
mov dword [esp + 0x18], ecx
jmp 0x4b50a8
jge 0x4b50a8
xor edi, edi
mov dword [esp + 0x18], edi
mov ecx, dword [ebp + 0xc]
cmp edi, dword [ecx + 8]
jle 0x4b50ca
mov eax, dword [esi + 0x58]
imul eax, dword [esi + 0x50]
mov edx, dword [esi + 0x4c]
push 0
push edx
push edi
push eax
push 0
push ebx
call fcn.004b3b60
add esp, 0x18
cmp dword [esp + 0x18], edi
jle 0x4b50f0
mov eax, dword [esi + 0x58]
imul eax, dword [esi + 0x50]
mov ecx, dword [esi + 0x4c]
mov edx, dword [esp + 0x18]
push 0x7f7060
push ecx
push edx
push eax
push edi
push ebx
call fcn.004b3b60
add esp, 0x18
mov ecx, dword [ebp + 0xc]
mov eax, dword [ecx + 0x10]
cmp eax, dword [esp + 0x18]
jle 0x4b5119
mov edx, dword [esi + 0x4c]
mov ecx, dword [esp + 0x18]
push 0
push edx
push eax
mov eax, dword [esi + 0x58]
imul eax, dword [esi + 0x50]
push eax
push ecx
push ebx
call fcn.004b3b60
add esp, 0x18
cmp byte [esi + 0x100], 0
jne 0x4b5187
xor edi, edi
cmp dword [esi + 0x58], edi
jle 0x4b5187
mov dword [esp + 0x18], 1
mov eax, dword [esi + 0x50]
imul eax, dword [esp + 0x18]
mov ecx, dword [esi + 0x54]
sar eax, 1
mov dword [esp + 0x24], eax
push 0x608000
add eax, 1
push ebx
mov dword [esp + 0x28], 0
mov dword [esp + 0x30], ecx
mov dword [esp + 0x34], eax
call dword [sym.imp.GDI32.dll_SetBkColor]
push 0
push 0
lea edx, [esp + 0x28]
push edx
mov eax, edx
push eax
push 2
push 0
push 0
push ebx
call dword [sym.imp.GDI32.dll_ExtTextOutA]
add dword [esp + 0x18], 2
add edi, 1
cmp edi, dword [esi + 0x58]
jl 0x4b5131
mov eax, dword [ebp + 0xc]
mov edx, dword [eax + 8]
mov ecx, dword [eax + 0x10]
mov eax, dword [esi + 0xd8]
imul eax, edx
mov dword [esp + 0x1c], edx
cdq
add eax, dword [esi + 0xf0]
mov dword [esp + 0x18], ecx
adc edx, dword [esi + 0xf4]
mov dword [esp + 0x20], eax
mov dword [esp + 0x24], edx
fild qword [esp + 0x20]
fsub qword [esi + 0xa8]
fmul qword [esi + 0xc8]
fstp qword [esp + 0x38]
fld qword [esp + 0x38]
fld st(0)
fistp qword [esp + 0x20]
fild qword [esp + 0x20]
mov eax, dword [esp + 0x20]
mov edx, dword [esp + 0x24]
fsubrp st(1)
fstp dword [esp + 0x14]
cmp dword [esp + 0x14], 0x80000001
sbb eax, 0xffffffff
sbb edx, 0xffffffff
mov edi, eax
mov eax, dword [esi + 0xd8]
imul eax, ecx
cdq
add eax, dword [esi + 0xf0]
adc edx, dword [esi + 0xf4]
mov dword [esp + 0x20], eax
mov dword [esp + 0x24], edx
fild qword [esp + 0x20]
fsub qword [esi + 0xa8]
fmul qword [esi + 0xc8]
fstp qword [esp + 0x38]
fld qword [esp + 0x38]
fld st(0)
fistp qword [esp + 0x20]
fild qword [esp + 0x20]
mov eax, dword [esp + 0x20]
mov edx, dword [esp + 0x24]
fsubrp st(1)
fstp dword [esp + 0x14]
cmp dword [esp + 0x14], 0x80000001
sbb eax, 0xffffffff
sbb edx, 0xffffffff
mov ecx, dword [esi + 0x98]
cdq
mov dword [esp + 0x38], eax
mov eax, edi
mov dword [esp + 0x3c], edx
cdq
sub eax, 1
mov edi, edx
mov edx, dword [esi + 0x9c]
sbb edi, 0
cmp edi, edx
mov dword [esp + 0x50], eax
mov dword [esp + 0x54], edi
jg 0x4b528e
jl 0x4b5284
cmp eax, ecx
jae 0x4b528e
mov edi, edx
mov dword [esp + 0x50], ecx
mov dword [esp + 0x54], edi
mov eax, dword [esi + 0xa4]
cmp dword [esp + 0x3c], eax
mov ecx, dword [esi + 0xa0]
jl 0x4b52b0
jg 0x4b52a8
cmp dword [esp + 0x38], ecx
jbe 0x4b52b0
mov dword [esp + 0x38], ecx
mov dword [esp + 0x3c], eax
push 1
push ebx
call dword [sym.imp.GDI32.dll_SetBkMode]
push 0xffffff
push ebx
call dword [sym.imp.GDI32.dll_SetTextColor]
push 8
push ebx
call dword [sym.imp.GDI32.dll_SetTextAlign]
mov ecx, dword [esi + 0x38]
push ecx
push ebx
call dword [sym.imp.GDI32.dll_SelectObject]
cmp edi, dword [esp + 0x3c]
mov edx, dword [esp + 0x50]
mov dword [esp + 0x20], edx
mov dword [esp + 0x24], edi
jg 0x4b542d
jl 0x4b5300
mov eax, dword [esp + 0x38]
cmp edx, eax
jae 0x4b542d
lea ecx, [ecx]
fild qword [esp + 0x20]
fmul qword [esi + 0xc0]
fadd qword [esi + 0xa8]
fild qword [esi + 0xf0]
fsubp st(1)
fmul qword [esi + 0xe0]
fstp qword [esp + 0x78]
fld qword [esp + 0x78]
fist dword [esp + 0x14]
fild dword [esp + 0x14]
mov eax, dword [esp + 0x14]
fsubp st(1)
fstp dword [esp + 0x14]
cmp dword [esp + 0x14], 0x80000001
adc eax, 0xffffffff
mov ecx, dword [esi + 0xd4]
mov edx, dword [esp + 0x24]
push 0
push ecx
mov edi, eax
mov eax, dword [esp + 0x28]
push edx
push eax
call fcn.005f9f40
or eax, edx
jne 0x4b55d6
cmp byte [esi + 0x100], al
je 0x4b5590
mov edx, dword [esi + 0x124]
push 0xcc0020
push eax
mov eax, dword [esi + 0x1e8]
lea ecx, [esi + 0xe58]
push ecx
mov ecx, dword [esi + 0x58]
imul ecx, dword [esi + 0x50]
push edx
push eax
push 1
push 0
push edi
push ecx
push 1
push 0
push edi
push ebx
call dword [sym.imp.GDI32.dll_StretchDIBits]
mov ecx, dword [esp + 0x24]
mov edx, dword [esp + 0x20]
mov eax, dword [esi + 0xd0]
push ecx
push edx
push 0
push eax
call fcn.005f8550
push edx
push eax
lea eax, [esp + 0x88]
push 0x63fa50
push eax
call fcn.005f83e4
lea eax, [esp + 0x90]
add esp, 0x10
lea edx, [eax + 1]
mov edi, edi
mov cl, byte [eax]
add eax, 1
test cl, cl
jne 0x4b53e0
sub eax, edx
mov edx, dword [esi + 0x4c]
push eax
lea ecx, [esp + 0x84]
push ecx
sub edx, 4
push edx
push edi
push ebx
call dword [sym.imp.GDI32.dll_TextOutA]
add dword [esp + 0x20], 1
mov eax, dword [esp + 0x24]
adc eax, 0
cmp eax, dword [esp + 0x3c]
mov dword [esp + 0x24], eax
jl 0x4b5300
jg 0x4b542d
mov eax, dword [esp + 0x20]
cmp eax, dword [esp + 0x38]
jb 0x4b5300
mov ecx, dword [esi + 0x58]
imul ecx, dword [esi + 0x50]
mov edx, dword [ebp + 0xc]
cmp dword [edx + 0xc], ecx
jge 0x4b5660
mov ecx, dword [esi + 0x60]
mov edx, dword [esi + 0x64]
mov edi, dword [esi + 0xd0]
mov dword [esp + 0x20], ecx
mov ecx, dword [esp + 0x54]
push ecx
mov dword [esp + 0x28], edx
mov edx, dword [esp + 0x54]
push edx
xor eax, eax
push eax
push edi
call fcn.005f8550
cmp dword [esp + 0x24], edx
jl 0x4b5660
jg 0x4b547d
cmp dword [esp + 0x20], eax
jb 0x4b5660
mov eax, dword [esp + 0x3c]
mov ecx, dword [esp + 0x38]
push eax
push ecx
xor eax, eax
push eax
push edi
call fcn.005f8550
cmp dword [esp + 0x24], edx
jg 0x4b5660
jl 0x4b54a6
cmp dword [esp + 0x20], eax
jae 0x4b5660
fild qword [esp + 0x20]
fmul qword [esi + 0xb0]
fadd qword [esi + 0xa8]
fild qword [esi + 0xf0]
fsubp st(1)
fmul qword [esi + 0xe0]
fstp qword [esp + 0x20]
fld qword [esp + 0x20]
fist dword [esp + 0x14]
fild dword [esp + 0x14]
mov eax, dword [esp + 0x14]
fsubp st(1)
fstp dword [esp + 0x14]
cmp dword [esp + 0x14], 0x80000001
adc eax, 0xffffffff
mov edx, dword [esi + 0x60]
mov ecx, eax
mov eax, dword [esi + 0x64]
add edx, 1
adc eax, 0
mov dword [esp + 0x20], edx
mov dword [esp + 0x24], eax
fild qword [esp + 0x20]
fmul qword [esi + 0xb0]
fadd qword [esi + 0xa8]
fild qword [esi + 0xf0]
fsubp st(1)
fmul qword [esi + 0xe0]
fstp qword [esp + 0x20]
fld qword [esp + 0x20]
fist dword [esp + 0x14]
fild dword [esp + 0x14]
mov eax, dword [esp + 0x14]
fsubp st(1)
fstp dword [esp + 0x14]
cmp dword [esp + 0x14], 0x80000001
adc eax, 0xffffffff
cmp ecx, eax
jne 0x4b5549
add eax, 1
cmp byte [esi + 0x100], 0
je 0x4b5641
push 0xcc0020
push 0
lea edx, [esi + 0x608]
push edx
mov edx, dword [esi + 0x124]
push edx
mov edx, dword [esi + 0x610]
push edx
mov edx, dword [esi + 0x58]
imul edx, dword [esi + 0x50]
sub eax, ecx
push eax
push 0
push ecx
push edx
push eax
push 0
push ecx
push ebx
call dword [sym.imp.GDI32.dll_StretchDIBits]
jmp 0x4b5660
mov ecx, dword [ebp + 0xc]
mov eax, dword [ecx + 0x14]
mov ecx, dword [ecx + 0xc]
push 0x404040
lea edx, [edi + 1]
push ebx
mov dword [esp + 0x70], edi
mov dword [esp + 0x74], ecx
mov dword [esp + 0x78], edx
mov dword [esp + 0x7c], eax
call dword [sym.imp.GDI32.dll_SetBkColor]
push 0
push 0
lea eax, [esp + 0x70]
push eax
mov ecx, eax
push ecx
push 2
push 0
push 0
push ebx
call dword [sym.imp.GDI32.dll_ExtTextOutA]
jmp 0x4b53a5
mov eax, dword [esi + 0x58]
imul eax, dword [esi + 0x50]
mov edx, dword [ebp + 0xc]
mov ecx, dword [edx + 0xc]
cmp ecx, eax
jge 0x4b5403
cmp byte [esi + 0x100], 0
je 0x4b5627
mov edx, dword [esi + 0x124]
push 0xcc0020
push 0
lea ecx, [esi + 0xa30]
push ecx
mov ecx, dword [esi + 0x1e8]
push edx
push ecx
push 1
push 0
push edi
push eax
push 1
push 0
push edi
push ebx
call dword [sym.imp.GDI32.dll_StretchDIBits]
jmp 0x4b5403
push 0x202020
push eax
lea edx, [edi + 1]
push edx
push ecx
push edi
push ebx
call fcn.004b3b60
add esp, 0x18
jmp 0x4b5403
mov edx, dword [esi + 0x58]
imul edx, dword [esi + 0x50]
push 0x402000
push edx
push eax
mov eax, dword [ebp + 0xc]
mov edx, dword [eax + 0xc]
push edx
push ecx
push ebx
call fcn.004b3b60
add esp, 0x18
cmp byte [esi + 0x100], 0
je 0x4b5890
fld qword [esi + 0x90]
sub esp, 8
fmul qword [0x63fa48]
fst qword [esp + 0x70]
fild dword [esi + 0x50]
fst qword [esp + 0x58]
fild dword [esi + 0x40]
fst qword [esp + 0x40]
fdivrp st(1)
fmulp st(1)
fmul qword [0x63fa40]
fst qword [esp + 0x28]
fldlg2
fxch st(1)
fyl2x
fstp qword [esp]
call fcn.005f7250
fld qword [0x63fa38]
add esp, 8
fxch st(1)
call fcn.005fbb50
fld qword [esp + 0x20]
fdiv st(1)
fld qword [0x63fa30]
fcom st(1)
fnstsw ax
fld1
test ah, 5
fld qword [0x62c5b8]
jp 0x4b56e3
fstp st(3)
fstp st(1)
fld qword [0x63fa38]
jmp 0x4b5709
fcom st(3)
fnstsw ax
test ah, 5
jp 0x4b56f0
fstp st(3)
jmp 0x4b5707
fstp st(2)
fcom st(2)
fnstsw ax
test ah, 5
jp 0x4b5887
fstp st(2)
fld st(0)
fxch st(1)
fxch st(2)
fxch st(1)
fmulp st(3)
xor edi, edi
cmp dword [esi + 0x58], edi
fxch st(2)
mov dword [esp + 0x1c], edi
fmul qword [0x63fa28]
fstp qword [esp + 0x78]
fmul qword [esp + 0x38]
fdiv qword [esp + 0x50]
fsubp st(1)
fstp qword [esp + 0x38]
jle 0x4b5de9
push 8
push ebx
call dword [sym.imp.GDI32.dll_SetTextAlign]
fldz
fld st(0)
fst qword [esp + 0x20]
fld qword [esp + 0x38]
fcomp st(2)
fnstsw ax
fstp st(1)
test ah, 0x41
jne 0x4b57d3
fmul qword [0x63fa20]
sub esp, 8
lea eax, [esp + 0x88]
fstp qword [esp]
push str._.0f_Hz
push eax
call fcn.005f83e4
lea eax, [esp + 0x90]
add esp, 0x10
lea edx, [eax + 1]
mov cl, byte [eax]
add eax, 1
test cl, cl
jne 0x4b5783
fld1
sub eax, edx
fsub qword [esp + 0x20]
push eax
lea ecx, [esp + 0x84]
push ecx
sub esp, 8
fimul dword [esi + 0x50]
fstp qword [esp]
call fcn.00519e42
add esp, 8
add eax, edi
push eax
push 4
push ebx
call dword [sym.imp.GDI32.dll_TextOutA]
fld qword [esp + 0x20]
fadd qword [esp + 0x78]
fst qword [esp + 0x20]
fld qword [esp + 0x38]
fcomp st(1)
fnstsw ax
test ah, 0x41
je 0x4b5758
push 0
fstp st(0)
push ebx
call dword [sym.imp.GDI32.dll_SetTextAlign]
fld qword [esp + 0x68]
sub esp, 8
fstp qword [esp]
lea edx, [esp + 0x88]
push str._.0f_Hz
push edx
call fcn.005f83e4
lea eax, [esp + 0x90]
add esp, 0x10
lea ecx, [eax + 1]
mov dl, byte [eax]
add eax, 1
test dl, dl
jne 0x4b5807
sub eax, ecx
push eax
lea eax, [esp + 0x84]
push eax
lea ecx, [edi + 4]
push ecx
push 4
push ebx
call dword [sym.imp.GDI32.dll_TextOutA]
add edi, dword [esi + 0x50]
mov eax, dword [esi + 0x54]
push 0x608000
lea edx, [edi - 1]
push ebx
mov dword [esp + 0x58], 0
mov dword [esp + 0x5c], edx
mov dword [esp + 0x60], eax
mov dword [esp + 0x64], edi
call dword [sym.imp.GDI32.dll_SetBkColor]
push 0
push 0
lea ecx, [esp + 0x58]
push ecx
mov edx, ecx
push edx
push 2
push 0
push 0
push ebx
call dword [sym.imp.GDI32.dll_ExtTextOutA]
mov eax, dword [esp + 0x1c]
add eax, 1
cmp eax, dword [esi + 0x58]
mov dword [esp + 0x1c], eax
jl 0x4b5734
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 8
fxch st(1)
fxch st(2)
jmp 0x4b5709
push 0xff
push 0
push 0
call dword [sym.imp.GDI32.dll_CreatePen]
mov edi, eax
test edi, edi
mov dword [esp + 0x20], edi
je 0x4b5de9
push edi
push ebx
call dword [sym.imp.GDI32.dll_SelectObject]
test eax, eax
mov dword [esp + 0x38], eax
je 0x4b5d68
mov eax, dword [esi + 0x50]
sub eax, 1
cmp byte [esi + 0x102], 0
mov dword [esp + 0x68], eax
fild dword [esp + 0x68]
fmul dword [0x63a05c]
fstp dword [esp + 0x68]
je 0x4b5c3a
cmp byte [esi + 0x101], 0
je 0x4b5b29
mov edi, dword [esi + 0x58]
mov byte [esi + 0x101], 0
mov eax, dword [esi + 0x128]
sub eax, dword [esi + 0x124]
xor edx, edx
div edi
mov ecx, dword [esi + 0xd8]
lea edx, [ecx - 1]
not edx
lea edi, [esi + 0x134]
and eax, edx
mov dword [esp + 0x4c], eax
xor edx, edx
div ecx
mov ecx, edi
imul eax, dword [esi + 0x58]
add eax, eax
push eax
call fcn.004b4b50
cmp dword [esp + 0x4c], 0
je 0x4b5b29
xor edx, edx
xor eax, eax
cmp dword [esi + 0x58], edx
mov dword [esp + 0x14], edx
jbe 0x4b5b29
fld dword [0x63c1f0]
fld dword [esp + 0x68]
mov ecx, dword [esi + 0x124]
add ecx, edx
mov dword [esp + 0x34], ecx
mov ecx, dword [esi + 0x50]
imul ecx, edx
cmp dword [esp + 0x4c], 0
mov dword [esp + 0x64], 0
mov dword [esp + 0x60], ecx
mov dword [esp + 0x44], eax
mov dword [esp + 0x48], 0
jbe 0x4b5a69
mov ecx, dword [esi + 0xd8]
mov ebx, dword [esp + 0x34]
or dl, 0xff
test ecx, ecx
mov byte [esp + 0x43], dl
mov byte [esp + 0x33], 0
jbe 0x4b59dd
mov ecx, dword [esi + 0xd8]
mov dword [esp + 0x34], ecx
mov cl, byte [ebx]
mov dl, byte [esp + 0x43]
add ebx, dword [esi + 0x58]
cmp dl, cl
jbe 0x4b59c8
mov dl, cl
mov byte [esp + 0x43], dl
cmp byte [esp + 0x33], cl
jae 0x4b59d2
mov byte [esp + 0x33], cl
sub dword [esp + 0x34], 1
jne 0x4b59b5
mov dword [esp + 0x34], ebx
mov ebx, dword [edi]
mov ecx, dword [esp + 0x64]
movzx edx, dl
mov dword [esp + 0x68], edx
mov dword [ebx + eax*8], ecx
fild dword [esp + 0x68]
mov ebx, dword [esp + 0x60]
add eax, 2
fmul st(1)
fadd st(2)
fstp dword [esp + 0x78]
mov edx, dword [esp + 0x78]
lea edx, [edx + ebx - 0x4b400000]
mov ebx, dword [edi]
mov dword [ebx + eax*8 - 0xc], edx
mov edx, dword [edi]
mov dword [edx + eax*8 - 8], ecx
add ecx, 1
mov dword [esp + 0x64], ecx
movzx ecx, byte [esp + 0x33]
mov dword [esp + 0x68], ecx
mov ecx, dword [esp + 0x60]
fild dword [esp + 0x68]
fmul st(1)
fadd st(2)
fstp dword [esp + 0x50]
mov edx, dword [esp + 0x50]
lea edx, [edx + ecx - 0x4b3fffff]
mov ecx, dword [edi]
mov dword [ecx + eax*8 - 4], edx
mov edx, dword [esp + 0x48]
mov ecx, dword [esi + 0xd8]
add edx, ecx
cmp edx, dword [esp + 0x4c]
mov dword [esp + 0x48], edx
jb 0x4b5997
mov ebx, dword [ebp + 8]
mov edx, dword [esp + 0x14]
mov ecx, dword [esp + 0x44]
add ecx, 2
cmp ecx, eax
jae 0x4b5b15
mov dword [esp + 0x68], ecx
add ecx, ecx
add ecx, ecx
add ecx, ecx
mov dword [esp + 0x44], ecx
mov edx, dword [edi]
lea edx, [ecx + edx - 0x10]
mov dword [esp + 0x34], edx
mov edx, dword [edi]
lea edx, [ecx + edx - 8]
mov dword [esp + 0x60], edx
mov edx, dword [edi]
add edx, ecx
mov dword [esp + 0x48], edx
mov edx, dword [edi]
lea ecx, [edx + ecx + 8]
mov edx, dword [esp + 0x60]
mov dword [esp + 0x64], ecx
mov ecx, dword [edx + 4]
mov edx, dword [esp + 0x48]
mov edx, dword [edx + 4]
cmp ecx, edx
jge 0x4b5acf
add ecx, edx
mov edx, dword [esp + 0x48]
sar ecx, 1
mov dword [edx + 4], ecx
mov edx, dword [esp + 0x60]
jmp 0x4b5af0
mov ecx, dword [esp + 0x34]
mov edx, dword [esp + 0x64]
mov ecx, dword [ecx + 4]
mov edx, dword [edx + 4]
cmp ecx, edx
jle 0x4b5af3
add ecx, edx
mov edx, dword [esp + 0x64]
sar ecx, 1
mov dword [edx + 4], ecx
mov edx, dword [esp + 0x34]
mov dword [edx + 4], ecx
mov edx, dword [esp + 0x68]
mov ecx, dword [esp + 0x44]
add edx, 2
add ecx, 0x10
cmp edx, eax
mov dword [esp + 0x44], ecx
mov dword [esp + 0x68], edx
jb 0x4b5a86
mov edx, dword [esp + 0x14]
add edx, 1
cmp edx, dword [esi + 0x58]
mov dword [esp + 0x14], edx
jb 0x4b595c
fstp st(1)
fstp st(0)
mov eax, dword [esi + 0x138]
sub eax, dword [esi + 0x134]
mov ecx, dword [esi + 0x58]
sar eax, 3
shr eax, 1
cdq
idiv ecx
mov edx, eax
cmp dword [esp + 0x18], edx
jle 0x4b5b4c
mov dword [esp + 0x18], edx
cmp dword [esi + 0x58], 0
mov ecx, 0x80
mov eax, 2
lea edi, [esp + 0xc0]
rep stosd dword es:[edi], eax
mov dword [esp + 0x68], 0
jle 0x4b5d58
mov eax, dword [esp + 0x1c]
shl edx, 4
shl eax, 4
mov dword [esp + 0x44], edx
mov dword [esp + 0x34], eax
jmp 0x4b5b90
mov eax, dword [esp + 0x18]
cmp dword [esp + 0x1c], eax
jge 0x4b5c19
mov ecx, dword [esp + 0x34]
mov edi, eax
sub edi, dword [esp + 0x1c]
mov dword [esp + 0x50], 0x80
mov eax, edi
add edi, 0xffffffff
shr edi, 7
mov dword [esp + 0x4c], eax
mov dword [esp + 0x14], ecx
add edi, 1
jmp 0x4b5bd4
mov eax, dword [esp + 0x4c]
mov dword [esp + 0x78], eax
cmp eax, 0x80
lea eax, [esp + 0x50]
jg 0x4b5be7
lea eax, [esp + 0x78]
mov edx, dword [eax]
mov ecx, dword [esi + 0x134]
add ecx, dword [esp + 0x14]
push edx
lea eax, [esp + 0xc4]
push eax
push ecx
push ebx
call dword [sym.imp.GDI32.dll_PolyPolyline]
add dword [esp + 0x14], 0x800
sub dword [esp + 0x4c], 0x80
sub edi, 1
jne 0x4b5bd0
mov eax, dword [esp + 0x68]
mov edx, dword [esp + 0x44]
add dword [esp + 0x34], edx
add eax, 1
cmp eax, dword [esi + 0x58]
mov dword [esp + 0x68], eax
jl 0x4b5b90
jmp 0x4b5d58
cmp byte [esi + 0x101], 0
je 0x4b5d58
mov byte [esi + 0x101], 0
mov eax, dword [esi + 0x128]
sub eax, dword [esi + 0x124]
xor edx, edx
div dword [esi + 0x58]
lea edi, [esi + 0x134]
mov ecx, edi
push eax
mov dword [esp + 0x1c], eax
call fcn.004b4b50
cmp dword [esp + 0x18], 1
jbe 0x4b5d58
cmp dword [esi + 0x58], 0
mov dword [esp + 0x1c], 0
jbe 0x4b5d58
mov edi, edi
mov ecx, dword [esp + 0x1c]
fld dword [0x63c1f0]
mov eax, dword [esi + 0x124]
add eax, ecx
mov dword [esp + 0x44], eax
mov eax, dword [esi + 0x50]
imul eax, ecx
mov dword [esp + 0x50], eax
xor eax, eax
cmp dword [esp + 0x18], eax
jbe 0x4b5d30
fild dword [esp + 0x50]
fld dword [esp + 0x68]
mov ecx, eax
test ecx, ecx
mov dword [esp + 0x50], ecx
fild dword [esp + 0x50]
jge 0x4b5cd8
fadd qword [0x628518]
fmul qword [esi + 0xe0]
mov ecx, dword [edi]
fadd st(3)
fstp dword [esp + 0x78]
mov edx, dword [esp + 0x78]
add edx, 0xb4c00000
mov dword [ecx + eax*8], edx
mov edx, dword [esi + 0x58]
mov ecx, dword [esp + 0x44]
imul edx, eax
movzx edx, byte [edx + ecx]
mov dword [esp + 0x50], edx
mov edx, dword [edi]
fild dword [esp + 0x50]
add eax, 1
fmul st(1)
fadd st(2)
fadd st(3)
fstp dword [esp + 0x48]
mov ecx, dword [esp + 0x48]
add ecx, 0xb4c00000
cmp eax, dword [esp + 0x18]
mov dword [edx + eax*8 - 4], ecx
jb 0x4b5cc4
fstp st(2)
fstp st(0)
mov eax, dword [esp + 0x18]
fstp st(0)
add eax, 0xffffffff
push eax
mov eax, dword [edi]
push eax
push ebx
call dword [sym.imp.GDI32.dll_Polyline]
mov eax, dword [esp + 0x1c]
add eax, 1
cmp eax, dword [esi + 0x58]
mov dword [esp + 0x1c], eax
jb 0x4b5c90
mov ecx, dword [esp + 0x38]
push ecx
push ebx
call dword [sym.imp.GDI32.dll_SelectObject]
mov edi, dword [esp + 0x20]
push edi
call dword [sym.imp.GDI32.dll_DeleteObject]
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 8
mov eax, dword [esi + 4]
lea edx, [esp + 0x20]
push edx
push eax
call dword [sym.imp.USER32.dll_GetClientRect]
test eax, eax
je 0x4b5de9
mov ecx, dword [esi + 0x38]
mov edi, dword [ebp + 8]
push ecx
push edi
call dword [sym.imp.GDI32.dll_SelectObject]
push 2
push edi
call dword [sym.imp.GDI32.dll_SetBkMode]
push 0xf
call dword [sym.imp.USER32.dll_GetSysColor]
push eax
push edi
call dword [sym.imp.GDI32.dll_SetBkColor]
push 0x10
lea edx, [esp + 0x24]
push edx
push edi
call dword [sym.imp.USER32.dll_FillRect]
mov ecx, dword [esi + 0x148]
sub ecx, dword [esi + 0x144]
mov edx, dword [esi + 0x144]
push 0x815
lea eax, [esp + 0x24]
push eax
sar ecx, 1
push ecx
push edx
push edi
call fcn.00519445
add esp, 0x14
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 8