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

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0x1e4
push ebx
mov ebx, dword [ebp + 8]
push esi
mov esi, dword [ebp + 0xc]
mov eax, dword [ebx + 0x20]
mov ecx, dword [ebx + 0x18]
sub eax, ecx
mov ecx, dword [ebx + 0x14]
cdq
xor eax, edx
push edi
sub eax, edx
mov edi, dword [ebx + 0xee]
mov dword [esp + 0x14], eax
mov eax, dword [ebx + 0x1c]
sub eax, ecx
imul edi, dword [ebx + 0xf2]
cdq
xor eax, edx
push 1
sub eax, edx
push esi
mov dword [esp + 0x30], 0
mov dword [esp + 0x34], 0x40dfffc0
mov dword [esp + 0x48], 0
mov dword [esp + 0x4c], 0xc0dfffc0
mov dword [esp + 0x50], eax
call dword [sym.imp.GDI32.dll_SetBkMode]
test edi, edi
jle 0x40c33a
mov ecx, dword [ebx + 0xfe]
fld qword [esp + 0x40]
fcom qword [ecx]
fnstsw ax
test ah, 1
je 0x40c318
fstp st(0)
fld qword [ecx]
fld qword [ecx]
fcomp qword [esp + 0x28]
fnstsw ax
test ah, 1
je 0x40c332
mov eax, dword [ecx]
mov edx, dword [ecx + 4]
mov dword [esp + 0x28], eax
mov dword [esp + 0x2c], edx
add ecx, 8
dec edi
jne 0x40c30b
jmp 0x40c33e
fld qword [esp + 0x40]
fld st(0)
fsub qword [esp + 0x28]
fmul qword [0x4bd0c8]
fld qword [esp + 0x28]
fcomp qword [0x4bcfe8]
fnstsw ax
test ah, 1
jne 0x40c380
fld qword [esp + 0x28]
fsub st(1)
fcomp qword [0x4bcfe8]
fnstsw ax
test ah, 1
je 0x40c380
mov dword [esp + 0x28], 0
mov dword [esp + 0x2c], 0
jmp 0x40c38a
fld qword [esp + 0x28]
fsub st(1)
fstp qword [esp + 0x28]
faddp st(1)
xor edi, edi
lea eax, [esp + 0x160]
mov dword [esp + 0x10], edi
mov dword [esp + 0x34], eax
fsub qword [esp + 0x28]
fst qword [esp + 0x40]
fmul qword [0x4bd358]
fstp qword [esp + 0x100]
fild dword [esp + 0x10]
mov ecx, dword [esp + 0x34]
sub esp, 8
fmul qword [esp + 0x108]
fadd qword [esp + 0x30]
fstp qword [esp]
push str._6.0f
push ecx
call fcn.0049712c
mov ecx, dword [esp + 0x44]
add esp, 0x10
inc edi
add ecx, 0xc
cmp edi, 7
mov dword [esp + 0x10], edi
mov dword [esp + 0x34], ecx
jl 0x40c3b2
mov edx, dword [ebx + 0xca]
push edx
call dword [sym.imp.GDI32.dll_CreateSolidBrush]
push eax
push esi
call dword [sym.imp.GDI32.dll_SelectObject]
mov ecx, dword [ebx + 0x1c]
mov edx, dword [ebx + 0x18]
mov edi, eax
mov eax, dword [ebx + 0x20]
push eax
mov eax, dword [ebx + 0x14]
push ecx
push edx
push eax
push esi
call dword [sym.imp.GDI32.dll_Rectangle]
push edi
push esi
call dword [sym.imp.GDI32.dll_SelectObject]
push eax
call dword [sym.imp.GDI32.dll_DeleteObject]
mov eax, dword [ebx + 0x18]
mov ecx, dword [ebx + 0x14]
mov dword [esp + 0x94], eax
mov eax, 0x66666667
imul dword [esp + 0x14]
sar edx, 2
mov eax, edx
mov edi, dword [ebx + 0x1c]
shr eax, 0x1f
add edx, eax
mov eax, dword [ebx + 0x18]
mov dword [esp + 0x14], edx
add edx, eax
mov eax, 0x66666667
mov dword [esp + 0x9c], edx
imul dword [esp + 0x48]
sar edx, 2
mov eax, edx
mov dword [esp + 0x90], ecx
shr eax, 0x1f
add edx, eax
mov dword [esp + 0xb0], ecx
mov dword [esp + 0x80], edx
push 1
lea eax, [edx + ecx]
mov dword [esp + 0x9c], edi
mov dword [esp + 0x50], eax
mov eax, dword [esp + 0xa0]
mov dword [esp + 0x54], eax
mov eax, edi
sub eax, edx
mov edx, dword [esp + 0x18]
mov dword [esp + 0x58], eax
mov eax, dword [ebx + 0x20]
sub eax, edx
mov dword [esp + 0xac], edi
mov dword [esp + 0x5c], eax
mov eax, dword [ebx + 0x20]
mov dword [esp + 0xc0], eax
sub eax, edx
mov dword [esp + 0x18], eax
mov dword [esp + 0xb8], eax
mov eax, dword [esp + 0x4c]
cdq
sub eax, edx
sar eax, 1
mov dword [esp + 0x10c], eax
lea edx, [eax + ecx - 5]
lea eax, [eax + ecx + 5]
mov ecx, dword [esp + 0x18]
mov dword [esp + 0xbc], edx
mov dword [esp + 0xa4], eax
mov eax, dword [ebx + 0x20]
lea edx, [esp + 0xa4]
mov dword [esp + 0xb0], eax
push edx
mov dword [esp + 0xac], ecx
call fcn.00409c60
push 1
lea eax, [esp + 0x58]
push eax
call fcn.00409c60
lea ecx, [esp + 0xc0]
push 1
push ecx
call fcn.00409c60
lea edx, [esp + 0xb8]
push 1
push edx
call fcn.00409c60
add esp, 0x20
mov ecx, dword [esp + 0x90]
lea eax, [ebx + 0x24]
mov edx, dword [esp + 0x94]
push 0
push eax
sub esp, 0x10
mov eax, esp
push esi
mov dword [eax], ecx
mov ecx, dword [esp + 0xb4]
mov dword [eax + 4], edx
mov edx, dword [esp + 0xb8]
mov dword [eax + 8], ecx
mov dword [eax + 0xc], edx
call fcn.00409a70
add esp, 0x1c
mov dword [esp + 0x38], eax
mov ecx, dword [esp + 0xb0]
lea eax, [ebx + 0x4d]
push 0
push eax
mov edx, dword [esp + 0xbc]
sub esp, 0x10
mov eax, esp
push esi
mov dword [eax], ecx
mov ecx, dword [esp + 0xd4]
mov dword [eax + 4], edx
mov edx, dword [esp + 0xd8]
mov dword [eax + 8], ecx
mov dword [eax + 0xc], edx
call fcn.00409a70
add esp, 0x1c
mov dword [esp + 0x24], eax
mov ecx, dword [esp + 0xa0]
lea eax, [ebx + 0x9f]
push 0
push eax
mov edx, dword [esp + 0xac]
sub esp, 0x10
mov eax, esp
push esi
mov dword [eax], ecx
mov ecx, dword [esp + 0xc4]
mov dword [eax + 4], edx
mov edx, dword [esp + 0xc8]
mov dword [eax + 8], ecx
mov dword [eax + 0xc], edx
call fcn.00409a70
mov ecx, 0xf
mov esi, 0x4d5968
lea edi, [esp + 0xdc]
add esp, 0x1c
rep movsd dword es:[edi], dword [esi]
mov dword [esp + 0x14], eax
mov eax, dword [esp + 0x38]
lea ecx, [esp + 0xc0]
mov dword [esp + 0xc0], eax
push ecx
mov dword [esp + 0xc8], 0
call dword [sym.imp.GDI32.dll_CreateFontIndirectA]
mov esi, dword [ebp + 0xc]
mov edi, dword [sym.imp.GDI32.dll_SelectObject]
push eax
push esi
call edi
mov dword [esp + 0x18], eax
push 0x25
lea edx, [esp + 0x94]
push edx
lea eax, [ebx + 0x24]
push 0xffffffffffffffff
push eax
push esi
call dword [sym.imp.USER32.dll_DrawTextA]
mov eax, dword [esp + 0x18]
push eax
push esi
call edi
push eax
call dword [sym.imp.GDI32.dll_DeleteObject]
mov ecx, dword [esp + 0x14]
lea edx, [esp + 0xc0]
push edx
mov dword [esp + 0xc4], ecx
mov dword [esp + 0xc8], 0
call dword [sym.imp.GDI32.dll_CreateFontIndirectA]
push eax
push esi
call edi
mov dword [esp + 0x18], eax
lea eax, [esp + 0xa0]
push 0x24
push eax
lea eax, [ebx + 0x9f]
push 0xffffffffffffffff
push eax
push esi
call dword [sym.imp.USER32.dll_DrawTextA]
mov ecx, dword [esp + 0x18]
push ecx
push esi
call edi
push eax
call dword [sym.imp.GDI32.dll_DeleteObject]
mov edx, dword [esp + 0x24]
lea eax, [esp + 0xc0]
push eax
mov dword [esp + 0xc4], edx
mov dword [esp + 0xc8], 0
call dword [sym.imp.GDI32.dll_CreateFontIndirectA]
push eax
push esi
call edi
lea ecx, [esp + 0xb0]
mov dword [esp + 0x18], eax
push 0x26
push ecx
lea eax, [ebx + 0x4d]
push 0xffffffffffffffff
push eax
push esi
call dword [sym.imp.USER32.dll_DrawTextA]
mov edx, dword [esp + 0x18]
push edx
push esi
call edi
push eax
call dword [sym.imp.GDI32.dll_DeleteObject]
fld qword [0x4bd0c0]
fsqrt
mov eax, dword [esp + 0x54]
mov edi, dword [esp + 0x4c]
sub eax, edi
mov ecx, dword [esp + 0x50]
cdq
sub eax, edx
mov esi, eax
mov eax, dword [esp + 0x58]
sar esi, 1
mov dword [esp + 0x30], esi
sub eax, ecx
mov dword [esp + 0x24], eax
cdq
sub eax, edx
fld qword [0x4bd320]
fsin
fmul st(1)
fild dword [esp + 0x30]
fmul st(1)
sar eax, 1
mov dword [esp + 0x14], eax
fild dword [esp + 0x14]
fcompp
fnstsw ax
test ah, 1
je 0x40c786
fild dword [esp + 0x24]
fxch st(1)
fadd st(0), st(0)
fdivp st(1)
call fcn.00496fa4
mov dword [esp + 0x30], eax
mov esi, eax
jmp 0x40c788
fstp st(0)
mov ecx, dword [ebx + 0x18]
mov eax, dword [ebx + 0x20]
sub eax, ecx
mov dword [esp + 0x100], ecx
mov ecx, dword [esp + 0x94]
cdq
sub eax, edx
mov edx, dword [esp + 0x9c]
sar eax, 1
sub eax, edx
add eax, ecx
mov dword [esp + 0x14], eax
fild dword [esp + 0x14]
fmul st(1)
call fcn.00496fa4
mov edi, eax
mov eax, 0x88888889
imul esi
fstp st(0)
add edx, esi
mov ecx, dword [ebp + 8]
sar edx, 3
mov eax, edx
push 0
shr eax, 0x1f
add edx, eax
mov eax, dword [esp + 0x5c]
mov ebx, edx
mov edx, dword [ecx + 0x14]
mov ecx, dword [esp + 0x54]
mov dword [esp + 0x124], edx
add eax, ecx
mov ecx, dword [ebp + 0xc]
cdq
sub eax, edx
mov edx, dword [esp + 0x58]
sar eax, 1
push eax
mov eax, dword [esp + 0x54]
add eax, edx
mov dword [esp + 0x3c], edi
cdq
sub eax, edx
sar eax, 1
push eax
push ecx
call dword [sym.imp.GDI32.dll_SetViewportOrgEx]
mov edx, dword [ebp + 0xc]
push edx
push ebx
push edi
push esi
push esi
call fcn.00408780
mov eax, dword [ebp + 0xc]
add esp, 0x14
push eax
push 7
sub esp, 0xc
mov ecx, esp
sub esp, 0xc
mov edx, esp
sub esp, 0xc
mov dword [ecx], ebx
mov eax, esp
sub esp, 0xc
mov dword [ecx + 4], ebx
mov dword [ecx + 8], ebx
mov dword [edx], ebx
mov ecx, esp
mov dword [edx + 4], edi
mov dword [edx + 8], ebx
mov dword [eax], ebx
mov dword [eax + 4], ebx
mov dword [eax + 8], esi
mov dword [ecx], ebx
mov dword [ecx + 4], edi
mov dword [ecx + 8], esi
call fcn.00408b40
mov edx, dword [ebp + 0xc]
add esp, 0x38
push edx
push 7
sub esp, 0xc
mov eax, esp
sub esp, 0xc
mov ecx, esp
sub esp, 0xc
mov dword [eax], esi
mov edx, esp
sub esp, 0xc
mov dword [eax + 4], edi
mov dword [eax + 8], ebx
mov dword [ecx], esi
mov eax, esp
mov dword [ecx + 4], ebx
mov dword [ecx + 8], ebx
mov dword [edx], ebx
mov dword [edx + 4], edi
mov dword [edx + 8], ebx
mov dword [eax], ebx
mov dword [eax + 4], ebx
mov dword [eax + 8], ebx
call fcn.00408b40
mov edx, dword [ebp + 0xc]
add esp, 0x38
xor ecx, ecx
xor eax, eax
push edx
push 7
sub esp, 0xc
mov edx, esp
sub esp, 0xc
mov dword [edx], ebx
mov dword [edx + 4], edi
mov dword [edx + 8], esi
mov edx, esp
sub esp, 0xc
mov dword [edx], ebx
mov dword [edx + 4], ebx
mov dword [edx + 8], esi
mov edx, esp
sub esp, 0xc
mov dword [edx], ecx
mov ecx, esp
mov dword [edx + 4], edi
mov dword [edx + 8], esi
mov dword [ecx], eax
mov dword [ecx + 4], ebx
mov dword [ecx + 8], esi
call fcn.00408b40
mov edx, dword [ebp + 0xc]
add esp, 0x38
xor ecx, ecx
xor eax, eax
push edx
push 7
sub esp, 0xc
mov edx, esp
sub esp, 0xc
mov dword [edx], esi
mov dword [edx + 4], edi
mov dword [edx + 8], ebx
mov edx, esp
sub esp, 0xc
mov dword [edx], esi
mov dword [edx + 4], ebx
mov dword [edx + 8], ebx
mov edx, esp
sub esp, 0xc
mov dword [edx], esi
mov dword [edx + 4], edi
mov dword [edx + 8], ecx
mov ecx, esp
mov dword [ecx], esi
mov dword [ecx + 4], ebx
mov dword [ecx + 8], eax
call fcn.00408b40
mov edx, dword [ebp + 0xc]
mov eax, dword [ebp + 8]
add esp, 0x38
push edx
mov ecx, dword [eax + 0xf2]
inc ecx
push ecx
sub esp, 0xc
mov edx, esp
sub esp, 0xc
mov eax, esp
sub esp, 0xc
mov dword [edx], ebx
mov ecx, esp
sub esp, 0xc
mov dword [edx + 4], ebx
mov dword [edx + 8], ebx
mov dword [eax], ebx
mov edx, esp
mov dword [eax + 4], ebx
mov dword [eax + 8], esi
mov dword [ecx], ebx
mov dword [ecx + 4], edi
mov dword [ecx + 8], esi
mov dword [edx], ebx
mov dword [edx + 4], edi
mov dword [edx + 8], ebx
call fcn.00408b40
mov ecx, dword [ebp + 8]
mov eax, dword [ebp + 0xc]
add esp, 0x38
mov edx, dword [ecx + 0xee]
inc edx
push eax
push edx
sub esp, 0xc
mov eax, esp
sub esp, 0xc
mov ecx, esp
sub esp, 0xc
mov dword [eax], esi
mov edx, esp
sub esp, 0xc
mov dword [eax + 4], ebx
mov dword [eax + 8], ebx
mov dword [ecx], ebx
mov eax, esp
mov dword [ecx + 4], ebx
mov dword [ecx + 8], ebx
mov dword [edx], esi
mov dword [edx + 4], edi
mov dword [edx + 8], ebx
mov dword [eax], ebx
mov dword [eax + 4], edi
mov dword [eax + 8], ebx
call fcn.00408b40
add esp, 0x2c
xor eax, eax
mov ecx, esp
lea edx, [esp + 0x28]
push edx
mov dword [ecx], eax
mov dword [ecx + 4], edi
mov dword [ecx + 8], esi
call fcn.00408710
mov eax, dword [esp + 0x30]
mov ecx, dword [esp + 0x2c]
mov dword [esp + 0x70], eax
mov eax, dword [esp + 0x58]
mov dword [esp + 0x74], ecx
lea edx, [eax + eax*2]
mov eax, 0x66666667
imul edx
sar edx, 2
mov eax, edx
shr eax, 0x1f
add edx, eax
xor eax, eax
sub ecx, edx
add esp, 4
mov dword [esp + 0x98], ecx
mov ecx, esp
mov dword [esp + 0x20], edx
mov dword [ecx], eax
mov dword [ecx + 4], ebx
lea edx, [esp + 0x28]
mov dword [ecx + 8], esi
push edx
call fcn.00408710
mov eax, dword [esp + 0x30]
add esp, 4
mov ecx, esp
mov dword [esp + 0x74], eax
lea edx, [esp + 0x28]
xor eax, eax
mov dword [ecx], esi
push edx
mov dword [ecx + 4], edi
mov dword [ecx + 8], eax
call fcn.00408710
mov eax, dword [esp + 0x30]
mov ecx, dword [esp + 0x24]
add esp, 4
mov dword [esp + 0x120], eax
mov eax, dword [esp + 0x28]
mov edx, esp
mov dword [esp + 0x11c], eax
add eax, ecx
mov dword [edx], esi
mov dword [esp + 0x108], eax
mov dword [esp + 0x78], eax
xor eax, eax
mov dword [edx + 4], ebx
mov dword [edx + 8], eax
lea eax, [esp + 0x28]
push eax
call fcn.00408710
mov ecx, dword [esp + 0x30]
add esp, 4
mov edx, esp
xor eax, eax
mov dword [esp + 0x128], ecx
xor ecx, ecx
mov dword [edx], esi
mov dword [edx + 4], eax
lea eax, [esp + 0x28]
push eax
mov dword [edx + 8], ecx
call fcn.00408710
add esp, 4
mov ecx, dword [esp + 0x2c]
mov edx, esp
xor eax, eax
mov dword [esp + 0x20], ecx
mov dword [edx], esi
mov dword [edx + 4], eax
lea eax, [esp + 0x28]
push eax
mov dword [edx + 8], esi
call fcn.00408710
mov eax, dword [esp + 0x30]
mov ecx, dword [esp + 0x24]
sub eax, ecx
mov ecx, dword [ebp + 8]
mov dword [esp + 0x24], eax
add esp, 0x10
cdq
idiv dword [ecx + 0xee]
cmp eax, 0x10
mov dword [esp + 0x3c], eax
jle 0x40cb01
mov dword [esp + 0x3c], 0x10
mov eax, dword [esp + 0x14]
cdq
idiv dword [ecx + 0xf2]
cmp eax, 0x10
mov dword [esp + 0x14], eax
jle 0x40cb1d
mov dword [esp + 0x14], 0x10
sub esp, 0xc
lea edx, [esp + 0x28]
mov ecx, esp
xor eax, eax
push edx
mov dword [ecx], esi
mov dword [ecx + 4], edi
mov dword [ecx + 8], eax
call fcn.00408710
add esp, 4
mov edi, dword [esp + 0x2c]
mov ecx, esp
lea edx, [esp + 0x28]
xor eax, eax
push edx
mov dword [ecx], esi
mov dword [ecx + 4], ebx
mov dword [ecx + 8], eax
call fcn.00408710
mov ecx, dword [esp + 0x30]
mov eax, 0x2aaaaaab
sub ecx, edi
add esp, 0x10
imul ecx
mov eax, edx
shr eax, 0x1f
add edx, eax
cmp edx, 0x10
jle 0x40cb74
mov edx, 0x10
lea ecx, [esp + 0xc0]
xor esi, esi
push ecx
mov dword [esp + 0xc4], edx
mov dword [esp + 0xc8], esi
call dword [sym.imp.GDI32.dll_CreateFontIndirectA]
mov edx, dword [ebp + 0xc]
push eax
push edx
call dword [sym.imp.GDI32.dll_SelectObject]
mov ecx, dword [esp + 0x68]
mov dword [esp + 0x18], eax
mov eax, dword [esp + 0x60]
lea edi, [esp + 0x130]
sub ecx, eax
mov eax, 0x2aaaaaab
imul ecx
mov eax, edx
mov dword [esp + 0x6c], ecx
shr eax, 0x1f
add edx, eax
mov dword [esp + 0x24], 7
mov ecx, edx
lea edx, [esp + 0x160]
mov dword [esp + 0x10c], ecx
mov dword [esp + 0x10], edx
jmp 0x40cbe9
mov ecx, dword [esp + 0x10c]
mov eax, 0x2aaaaaab
push 0x26
imul esi
mov eax, edx
shr eax, 0x1f
add edx, eax
mov eax, dword [esp + 0x6c]
sub eax, edx
mov edx, dword [esp + 0x90]
mov dword [esp + 0x74], edx
mov edx, eax
mov dword [edi], eax
sub edx, ecx
add eax, ecx
mov ecx, dword [esp + 0x14]
mov dword [esp + 0x78], edx
mov edx, dword [esp + 0x68]
mov dword [esp + 0x80], eax
lea eax, [esp + 0x74]
mov dword [esp + 0x7c], edx
mov edx, dword [ebp + 0xc]
push eax
push 0xffffffffffffffff
push ecx
push edx
call dword [sym.imp.USER32.dll_DrawTextA]
mov eax, dword [esp + 0x6c]
mov ecx, dword [esp + 0x10]
add esi, eax
mov eax, dword [esp + 0x24]
add edi, 4
add ecx, 0xc
dec eax
mov dword [esp + 0x10], ecx
mov dword [esp + 0x24], eax
jne 0x40cbe2
mov ecx, dword [esp + 0x11c]
mov edi, dword [esp + 0x114]
sub ecx, edi
mov eax, 0x2aaaaaab
imul ecx
mov eax, edx
mov dword [esp + 0x8c], ecx
shr eax, 0x1f
add edx, eax
xor esi, esi
mov ecx, edx
lea edx, [esp + 0x130]
mov dword [esp + 0x6c], ecx
xor edi, edi
mov dword [esp + 0x10], edx
jmp 0x40cc9a
mov ecx, dword [esp + 0x6c]
mov eax, 0x2aaaaaab
imul edi
mov eax, edx
shr eax, 0x1f
add edx, eax
mov eax, dword [esp + 0x11c]
sub eax, edx
mov edx, dword [esp + 0x10]
mov dword [edx], eax
mov edx, dword [esp + 0x110]
mov dword [esp + 0x70], edx
mov edx, eax
sub edx, ecx
add eax, ecx
mov dword [esp + 0x74], edx
mov edx, dword [esp + 0xfc]
lea ecx, [esp + esi + 0x160]
mov dword [esp + 0x78], edx
mov dword [esp + 0x7c], eax
xor eax, eax
cmp byte [ecx], 0x20
jne 0x40ccf3
mov dl, byte [eax + ecx + 1]
inc eax
cmp dl, 0x20
je 0x40cce9
lea edx, [esi + eax]
lea ecx, [esp + 0x70]
push 0x24
push ecx
mov ecx, dword [ebp + 0xc]
lea eax, [esp + edx + 0x168]
push 0xffffffffffffffff
push eax
push ecx
call dword [sym.imp.USER32.dll_DrawTextA]
mov eax, dword [esp + 0x8c]
mov edx, dword [esp + 0x10]
add esi, 0xc
add edi, eax
add edx, 4
cmp esi, 0x54
mov dword [esp + 0x10], edx
jl 0x40cc96
mov edx, dword [esp + 0x18]
mov eax, dword [ebp + 0xc]
push edx
push eax
call dword [sym.imp.GDI32.dll_SelectObject]
push eax
call dword [sym.imp.GDI32.dll_DeleteObject]
mov ecx, dword [esp + 0x60]
mov eax, 1
mov dword [esp + 0x60], ecx
mov ecx, dword [esp + 0x108]
mov edx, dword [esp + 0x80]
sub eax, ecx
mov ecx, 0xf
mov esi, 0x4d5968
lea edi, [esp + 0xc0]
mov dword [esp + 0x5c], eax
rep movsd dword es:[edi], dword [esi]
mov esi, dword [ebp + 8]
add eax, edx
mov dword [esp + 0x64], eax
mov al, byte [esi + 0x76]
lea edi, [esi + 0x76]
test al, al
je 0x40cf03
cmp byte [edi], 0x80
jae 0x40ce5d
mov eax, dword [esp + 0x38]
lea ecx, [esp + 0xc0]
push ecx
mov dword [esp + 0xcc], 0xa8c
mov dword [esp + 0xc8], 0
mov dword [esp + 0xc4], eax
call dword [sym.imp.GDI32.dll_CreateFontIndirectA]
mov edx, dword [ebp + 0xc]
push eax
push edx
call dword [sym.imp.GDI32.dll_SelectObject]
mov edx, dword [esp + 0x64]
mov ecx, dword [esp + 0x5c]
mov dword [esp + 0x18], eax
mov eax, dword [esp + 0x60]
push 1
push edi
push eax
sub edx, ecx
mov eax, 0x66666667
imul edx
sar edx, 2
mov eax, edx
shr eax, 0x1f
add edx, eax
add edx, ecx
mov ecx, dword [esp + 0xcc]
add edx, ecx
mov ecx, dword [ebp + 0xc]
push edx
push ecx
call dword [sym.imp.GDI32.dll_TextOutA]
mov edx, dword [esp + 0x18]
mov eax, dword [ebp + 0xc]
push edx
push eax
call dword [sym.imp.GDI32.dll_SelectObject]
push eax
call dword [sym.imp.GDI32.dll_DeleteObject]
mov eax, dword [esp + 0xc0]
cdq
sub eax, edx
sar eax, 1
mov dword [esp + 0x80], eax
fild dword [esp + 0x80]
fmul qword [0x4bd340]
call fcn.00496fa4
mov ecx, dword [esp + 0x60]
add ecx, eax
inc edi
mov dword [esp + 0x60], ecx
jmp 0x40cefa
mov ecx, dword [esp + 0x38]
lea edx, [esp + 0xc0]
xor eax, eax
push edx
mov dword [esp + 0xcc], eax
mov dword [esp + 0xc4], ecx
mov dword [esp + 0xc8], eax
call dword [sym.imp.GDI32.dll_CreateFontIndirectA]
push eax
mov eax, dword [ebp + 0xc]
push eax
call dword [sym.imp.GDI32.dll_SelectObject]
mov ecx, dword [esp + 0x60]
mov edx, dword [esp + 0x64]
push 2
push edi
push ecx
mov ecx, dword [esp + 0x68]
mov dword [esp + 0x24], eax
sub edx, ecx
mov eax, 0x66666667
imul edx
sar edx, 2
mov eax, edx
shr eax, 0x1f
add edx, eax
add edx, ecx
mov ecx, dword [ebp + 0xc]
push edx
push ecx
call dword [sym.imp.GDI32.dll_TextOutA]
mov edx, dword [esp + 0x18]
mov eax, dword [ebp + 0xc]
push edx
push eax
call dword [sym.imp.GDI32.dll_SelectObject]
push eax
call dword [sym.imp.GDI32.dll_DeleteObject]
fild dword [esp + 0xc0]
fmul qword [0x4bd340]
call fcn.00496fa4
mov ecx, dword [esp + 0x60]
add ecx, eax
add edi, 2
mov dword [esp + 0x60], ecx
cmp byte [edi], 0
jne 0x40cd92
mov ecx, dword [esp + 0x3c]
lea edx, [esp + 0xc0]
xor edi, edi
push edx
mov dword [esp + 0xcc], edi
mov dword [esp + 0xc4], ecx
mov dword [esp + 0xc8], edi
call dword [sym.imp.GDI32.dll_CreateFontIndirectA]
push eax
mov eax, dword [ebp + 0xc]
push eax
call dword [sym.imp.GDI32.dll_SelectObject]
mov ecx, dword [esi + 0xee]
mov dword [esp + 0x10], edi
cmp ecx, edi
mov edi, dword [esp + 0x30]
mov dword [esp + 0x18], eax
jle 0x40d00a
mov eax, edi
mov dword [esp + 0x38], 0
sub eax, ebx
mov dword [esp + 0x30], eax
mov eax, 0x66666667
imul dword [esp + 0x48]
sar edx, 1
mov eax, edx
shr eax, 0x1f
add edx, eax
mov dword [esp + 0x24], edx
mov eax, dword [esp + 0x30]
sub esp, 0xc
cdq
idiv ecx
mov edx, esp
xor ecx, ecx
imul eax, dword [esp + 0x1c]
add eax, ebx
mov dword [edx], eax
lea eax, [esp + 0x28]
push eax
mov dword [edx + 4], ecx
mov dword [edx + 8], edi
call fcn.00408710
mov ecx, dword [esp + 0x2c]
mov edx, dword [esp + 0x4c]
add esp, 0x10
lea eax, [ecx - 1]
mov ecx, dword [esp + 0x24]
mov dword [esp + 0x78], eax
sub eax, ecx
mov dword [esp + 0x70], eax
mov eax, dword [esp + 0x20]
mov ecx, dword [esp + 0x38]
mov dword [esp + 0x74], eax
add eax, edx
mov edx, dword [ebp + 0xc]
mov dword [esp + 0x7c], eax
lea eax, [esp + 0x70]
push 0x26
push eax
mov eax, dword [esi + 0xf6]
push 0xffffffffffffffff
add ecx, eax
push ecx
push edx
call dword [sym.imp.USER32.dll_DrawTextA]
mov ecx, dword [esp + 0x38]
mov eax, dword [esp + 0x10]
add ecx, 0x14
inc eax
mov dword [esp + 0x38], ecx
mov ecx, dword [esi + 0xee]
cmp eax, ecx
mov dword [esp + 0x10], eax
jl 0x40cf77
mov eax, dword [esp + 0x18]
mov ecx, dword [ebp + 0xc]
push eax
push ecx
call dword [sym.imp.GDI32.dll_SelectObject]
push eax
call dword [sym.imp.GDI32.dll_DeleteObject]
mov edx, dword [esp + 0x14]
lea eax, [esp + 0xc0]
push eax
mov dword [esp + 0xc4], edx
mov dword [esp + 0xc8], 0
call dword [sym.imp.GDI32.dll_CreateFontIndirectA]
mov ecx, dword [ebp + 0xc]
push eax
push ecx
call dword [sym.imp.GDI32.dll_SelectObject]
mov ecx, dword [esi + 0xf2]
mov dword [esp + 0x18], eax
test ecx, ecx
mov dword [esp + 0x10], 0
jle 0x40d125
mov eax, edi
mov dword [esp + 0x3c], 0
sub eax, ebx
mov dword [esp + 0x30], eax
mov eax, 0x66666667
imul dword [esp + 0x48]
sar edx, 1
mov eax, edx
shr eax, 0x1f
add edx, eax
mov dword [esp + 0x24], edx
mov eax, dword [esp + 0x30]
sub esp, 0xc
cdq
idiv ecx
mov edx, esp
xor ecx, ecx
mov dword [edx], edi
mov dword [edx + 4], ecx
imul eax, dword [esp + 0x1c]
add eax, ebx
mov dword [edx + 8], eax
lea eax, [esp + 0x28]
push eax
call fcn.00408710
mov ecx, dword [esp + 0x2c]
mov edx, dword [esp + 0x34]
add esp, 0x10
lea eax, [ecx + 1]
mov ecx, dword [esp + 0x14]
mov dword [esp + 0x70], eax
add edx, eax
mov eax, dword [esp + 0x20]
mov dword [esp + 0x78], edx
mov dword [esp + 0x74], eax
add eax, ecx
mov ecx, dword [ebp + 0xc]
lea edx, [esp + 0x70]
push 0x24
mov dword [esp + 0x80], eax
mov eax, dword [esp + 0x40]
push edx
mov edx, dword [esi + 0xfa]
push 0xffffffffffffffff
add eax, edx
push eax
push ecx
call dword [sym.imp.USER32.dll_DrawTextA]
mov ecx, dword [esp + 0x3c]
mov eax, dword [esp + 0x10]
add ecx, 0x14
inc eax
mov dword [esp + 0x3c], ecx
mov ecx, dword [esi + 0xf2]
cmp eax, ecx
mov dword [esp + 0x10], eax
jl 0x40d08f
mov edx, dword [esp + 0x18]
mov eax, dword [ebp + 0xc]
push edx
push eax
call dword [sym.imp.GDI32.dll_SelectObject]
push eax
call dword [sym.imp.GDI32.dll_DeleteObject]
mov al, byte [esi + 0xc9]
test al, al
mov eax, dword [esi + 0xee]
jne 0x40d2d0
imul eax, dword [esi + 0xf2]
lea ecx, [eax + eax*2]
shl ecx, 2
push ecx
call fcn.004970a0
add esp, 4
mov dword [0x4d5920], eax
mov edx, dword [esi + 0xf2]
mov eax, dword [esi + 0xee]
push edx
push eax
push ebx
sub esp, 0xc
mov ecx, esp
sub esp, 0xc
mov edx, esp
sub esp, 0xc
mov dword [ecx], edi
mov eax, esp
mov dword [ecx + 4], ebx
mov dword [ecx + 8], ebx
mov dword [edx], ebx
mov dword [edx + 4], ebx
mov dword [edx + 8], ebx
mov dword [eax], ebx
mov dword [eax + 4], ebx
mov dword [eax + 8], edi
call fcn.004090d0
mov eax, dword [0x4d59e4]
xor ecx, ecx
add esp, 0x30
cmp eax, ecx
mov dword [esp + 0x10], ecx
jle 0x40d5be
mov eax, dword [esp + 0x34]
mov dword [esp + 0x14], ecx
sub eax, ebx
mov dword [esp + 0x80], eax
fild dword [esp + 0x80]
fstp qword [esp + 0x80]
mov ecx, dword [0x4d5920]
mov edx, dword [esp + 0x14]
add edx, ecx
sub esp, 0xc
mov eax, esp
mov ecx, dword [edx]
mov dword [eax], ecx
mov ecx, dword [edx + 4]
mov dword [eax + 4], ecx
mov edx, dword [edx + 8]
mov dword [eax + 8], edx
lea eax, [esp + 0x28]
push eax
call fcn.00408710
mov ecx, dword [esp + 0x5c]
mov edx, dword [esp + 0x64]
add esp, 0x10
lea eax, [edx + ecx]
mov ecx, dword [esp + 0x1c]
cdq
sub eax, edx
mov edx, dword [esp + 0x58]
sar eax, 1
add ecx, eax
mov eax, dword [esp + 0x50]
add eax, edx
push 0
cdq
sub eax, edx
mov dword [esp + 0x20], ecx
mov edx, eax
mov eax, dword [esp + 0x24]
sar edx, 1
add eax, edx
mov dword [esp + 0x24], eax
push eax
mov eax, dword [ebp + 0xc]
push ecx
push eax
call dword [sym.imp.GDI32.dll_SetViewportOrgEx]
mov ecx, dword [ebp + 0xc]
mov ebx, dword [esi + 0xf2]
push ecx
mov ecx, dword [esp + 0x14]
mov eax, ecx
cdq
idiv ebx
mov edx, dword [eax*4 + 0x4d5924]
mov eax, dword [esi + 0xfe]
push edx
push 0
fld qword [eax + ecx*8]
fsub qword [esp + 0x34]
push 0
fmul qword [esp + 0x90]
fdiv qword [esp + 0x50]
call fcn.00496fa4
push eax
mov eax, edi
cdq
lea ecx, [ebx + ebx]
idiv ecx
mov ecx, dword [esi + 0xee]
shl ecx, 1
push eax
mov eax, edi
cdq
idiv ecx
push eax
push 1
call fcn.004092f0
mov eax, dword [esp + 0x30]
mov edx, dword [esp + 0x34]
mov ecx, dword [0x4d59e4]
add esp, 0x20
inc eax
add edx, 0xc
mov dword [esp + 0x10], eax
mov dword [esp + 0x14], edx
cmp eax, ecx
jl 0x40d1da
jmp 0x40d5be
imul eax, dword [esi + 0xf2]
lea eax, [eax + eax*2]
shl eax, 2
push eax
call fcn.004970a0
add esp, 4
mov dword [0x4d5920], eax
mov ecx, dword [esi + 0xf2]
mov edx, dword [esi + 0xee]
push ecx
push edx
push ebx
sub esp, 0xc
mov eax, esp
sub esp, 0xc
mov ecx, esp
sub esp, 0xc
mov dword [eax], edi
mov edx, esp
mov dword [eax + 4], ebx
mov dword [eax + 8], ebx
mov dword [ecx], ebx
mov dword [ecx + 4], ebx
mov dword [ecx + 8], ebx
mov dword [edx], ebx
mov dword [edx + 4], ebx
mov dword [edx + 8], edi
call fcn.004091d0
mov ecx, dword [0x4d59e4]
xor eax, eax
add esp, 0x30
cmp ecx, eax
mov dword [esp + 0x10], eax
jle 0x40d5be
mov dword [esp + 0x14], eax
mov eax, dword [0x4d5920]
mov ecx, dword [esp + 0x14]
add ecx, eax
sub esp, 0xc
mov edx, esp
mov eax, dword [ecx]
mov dword [edx], eax
mov eax, dword [ecx + 4]
mov dword [edx + 4], eax
mov ecx, dword [ecx + 8]
mov dword [edx + 8], ecx
lea edx, [esp + 0x28]
push edx
call fcn.00408710
mov eax, dword [esp + 0x5c]
mov ecx, dword [esp + 0x64]
add eax, ecx
mov ecx, dword [esp + 0x2c]
cdq
sub eax, edx
mov edx, dword [esp + 0x60]
sar eax, 1
add ecx, eax
mov eax, dword [esp + 0x68]
add eax, edx
add esp, 0x10
cdq
sub eax, edx
push 0
mov edx, eax
mov eax, dword [esp + 0x24]
sar edx, 1
add eax, edx
mov dword [esp + 0x20], ecx
mov dword [esp + 0x24], eax
push eax
mov eax, dword [ebp + 0xc]
push ecx
push eax
call dword [sym.imp.GDI32.dll_SetViewportOrgEx]
mov al, byte [esi + 0xc9]
cmp al, 1
jne 0x40d457
mov eax, dword [esp + 0x34]
mov edx, dword [ebp + 0xc]
mov ecx, dword [esi + 0xf2]
sub eax, ebx
mov dword [esp + 0x18], eax
mov eax, dword [esp + 0x10]
push edx
cdq
fild dword [esp + 0x1c]
idiv ecx
mov eax, dword [eax*4 + 0x4d5924]
push eax
mov eax, 0x66666667
imul dword [esp + 0x20]
sar edx, 3
mov eax, edx
shr eax, 0x1f
add edx, eax
mov eax, dword [esi + 0xfe]
push edx
mov edx, dword [esp + 0x1c]
add ecx, edx
fld qword [eax + ecx*8]
fsub qword [esp + 0x34]
fmul st(1)
fdiv qword [esp + 0x4c]
call fcn.00496fa4
mov ecx, dword [esp + 0x1c]
push eax
mov eax, dword [esi + 0xfe]
fld qword [eax + ecx*8]
fsub qword [esp + 0x38]
fmul st(1)
fdiv qword [esp + 0x50]
call fcn.00496fa4
push eax
mov eax, dword [esi + 0xf2]
fstp st(0)
lea ecx, [eax + eax]
mov eax, edi
cdq
idiv ecx
push eax
mov eax, edi
cdq
idiv dword [esi + 0xee]
push eax
push 2
jmp 0x40d594
cmp al, 2
jne 0x40d4f8
mov eax, dword [esp + 0x34]
mov edx, dword [ebp + 0xc]
mov ecx, dword [esi + 0xf2]
sub eax, ebx
mov dword [esp + 0x18], eax
mov eax, dword [esp + 0x10]
push edx
cdq
fild dword [esp + 0x1c]
idiv ecx
mov eax, dword [eax*4 + 0x4d5924]
push eax
mov eax, 0x66666667
imul dword [esp + 0x20]
sar edx, 3
mov eax, edx
shr eax, 0x1f
add edx, eax
mov eax, dword [esi + 0xfe]
push edx
mov edx, dword [esp + 0x1c]
add ecx, edx
fld qword [eax + ecx*8]
fsub qword [esp + 0x34]
fmul st(1)
fdiv qword [esp + 0x4c]
call fcn.00496fa4
mov ecx, dword [esp + 0x1c]
push eax
mov eax, dword [esi + 0xfe]
fld qword [eax + ecx*8]
fsub qword [esp + 0x38]
fmul st(1)
fdiv qword [esp + 0x50]
call fcn.00496fa4
push eax
mov eax, dword [esi + 0xf2]
fstp st(0)
lea ecx, [eax + eax]
mov eax, edi
cdq
idiv ecx
push eax
mov eax, edi
cdq
idiv dword [esi + 0xee]
push eax
push 3
jmp 0x40d594
cmp al, 3
jne 0x40d59c
mov eax, dword [esp + 0x34]
mov edx, dword [ebp + 0xc]
mov ecx, dword [esi + 0xf2]
sub eax, ebx
mov dword [esp + 0x18], eax
mov eax, dword [esp + 0x10]
push edx
cdq
fild dword [esp + 0x1c]
idiv ecx
mov eax, dword [eax*4 + 0x4d5924]
push eax
mov eax, 0x66666667
imul dword [esp + 0x20]
sar edx, 3
mov eax, edx
shr eax, 0x1f
add edx, eax
mov eax, dword [esi + 0xfe]
push edx
mov edx, dword [esp + 0x1c]
add ecx, edx
fld qword [eax + ecx*8]
fsub qword [esp + 0x34]
fmul st(1)
fdiv qword [esp + 0x4c]
call fcn.00496fa4
mov ecx, dword [esp + 0x1c]
push eax
mov eax, dword [esi + 0xfe]
fld qword [eax + ecx*8]
fsub qword [esp + 0x38]
fmul st(1)
fdiv qword [esp + 0x50]
call fcn.00496fa4
push eax
mov eax, dword [esi + 0xf2]
fstp st(0)
lea ecx, [eax + eax]
mov eax, edi
cdq
idiv ecx
push eax
mov eax, edi
cdq
idiv dword [esi + 0xee]
push eax
push 4
call fcn.004092f0
add esp, 0x20
mov eax, dword [esp + 0x10]
mov edx, dword [esp + 0x14]
mov ecx, dword [0x4d59e4]
inc eax
add edx, 0xc
cmp eax, ecx
mov dword [esp + 0x10], eax
mov dword [esp + 0x14], edx
jl 0x40d341
mov edx, dword [0x4d5920]
push edx
call fcn.00496fcb
mov eax, dword [esp + 0x104]
mov ecx, dword [esp + 0x124]
mov edx, dword [ebp + 0xc]
add esp, 4
push 0
push eax
push ecx
push edx
call dword [sym.imp.GDI32.dll_SetViewportOrgEx]
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret